Live data from Hacker News

I wish I could read Wikipedia like this

blog.assaflavie.com

51–60 of 68 posts

Re: I wish I could read Wikipedia like this

#51
post #39

While the suggested feature would be a improvement, the real goal imho should be that each Wikipedia article can be read and understood by itself, without the need to go on a recursive yak shaving expedition through other articles first.

I don't see how that is feasible. Upvoting the analogy though.

Re: I wish I could read Wikipedia like this

#52
post #45

Earlier quoted context omitted.

Implementing it in HTML/CSS/JS certainly poses an interesting problem because, as far as I know, one cannot directly access individual, dynamically broken lines of text. One would probably have to wrap each word in a container and keep track of the absolute positions.

Very true. I got a rough POC of this, implemented using the technique in this answer: http://stackoverflow.com/a/22816419/11208 (just with divs instead of images) It's very brittle though. It relies on knowing the line-height, calculating the line in which the highlighted word sits, accounting for the existence of vertical scroll-bars... not trivial.

Ah, that was surprisingly easy: http://jsfiddle.net/5p92U/

Or am I missing something?

Edit: Yes, I do. It does not work together with images on the right side: http://jsfiddle.net/Nup2F/

Re: I wish I could read Wikipedia like this

#54

Wish granted: http://wikiballoons.tomodo.me/wiki/Main_Page I also made a (by no means complete) POC more simmiliar to your animation which you're welcome to fork and improve: http://en.wikimore.tomodo.me/wiki/Main_Page In general, whenever you want to improve a website - Tomodo is the place to go ( http://tomodo.com/ )

Is it based on hover? Doesn't seem to be working for me (iPad)

Re: I wish I could read Wikipedia like this

#55
post #46

I thought this was a really interesting idea and tried implementing it. You can check out the demo here: http://xuanji.appspot.com/static/wikipedia.html Note that the "sinusoidal wave" link isn't working, as it redirects to "sine wave"...gotta work around that :( If you want to read/modify the code send a pull request to github.com/zodiac/xuanji.appspot.com/, the commit which implemented this is https://github.com/zo…

It works well until you get too deep. Then it becomes unreadable.

Http://i.imgur.com/9lSpyxb.png

Re: I wish I could read Wikipedia like this

#56

Since my primary language is Dutch, it's easy for me: If I want a short article, read the Dutch version. If I want too many details, read the English version :)

I have Dutch as a second language and can vouch for this - when an English article is convoluted and misses the point, I click on the Dutch link for a simpler version.

Re: I wish I could read Wikipedia like this

#58

Wish granted: http://wikiballoons.tomodo.me/wiki/Main_Page I also made a (by no means complete) POC more simmiliar to your animation which you're welcome to fork and improve: http://en.wikimore.tomodo.me/wiki/Main_Page In general, whenever you want to improve a website - Tomodo is the place to go ( http://tomodo.com/ )

Hmm. Your example doesn't work for me (Arch Linux Chromium 28). Tomodo is also broken in general when I tried to use it.

Re: I wish I could read Wikipedia like this

#59
Neat idea, but the article also made me discover Basic English and its 850 words. Didn't know about that, I think that should be mentioned when you learn English.

Does anyone know of similar general purpose word sets for other languages?

Re: I wish I could read Wikipedia like this

#60
post #7

Wikipedia currently has a Beta feature name Hovercards You can enable it here https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsec...

I prefer Chrome's extension called Google dictionary. Every time I highlight a word, it pulls up a definition. Anywhere on the web.
Post reply on HN