127 points · by hammock · 14y ago · 60 comments
(oh, and tap Shift key 2 times, not 4)
Take a look at the Source on Github which has been updated from the original I wrote for the NYT. It also now uses jQuery (NYT was dependent on PrototypeJS)
https://github.com/NYTimes/Emphasis
Its a nifty project to contribute to and I welcome updates and discussion.
Timing matters.
The NYTimes open sourced it: http://open.blogs.nytimes.com/2011/01/11/emphasis-update-and... https://github.com/NYTimes/Emphasis
I wonder... for all the different articles on NYTimes, and the different configurations of words across paragraphs, is this unique enough such that you won't get duplicate paragraph IDs in any given article?
Not it!
That was too much for the water district’s attorney.
And:
They were torn apart by angry ducks.
Will both hash to “TwtTwt”. One-sentence paragraphs are probably deprecated in the NYT’s style guide anyway, but I imagine it might still come up.
More info here: http://scripting.com/stories/2010/11/30/winerlinksAndOutline...
Note, that on his blog, he uses a simple, tiny # character after each paragraph to allow direct linking. No shift key required.
... which is really annoying.
(edit) What I don't understand why he wouldn't show these # on hover over a respective paragraph.
Personally, I'd be more inclined to link to his article in my own because it's that much easier.
Works in Firefox 11, however. Also works in Safari 4 (an old version).
[0]: http://www.obdev.at/resources/launchbar/help/InstantSend.htm... [1]: http://www.obdev.at/resources/launchbar/help/ModifierTaps.ht...
http://www.newsobserver.com/2012/03/31/1969051/apple-plans-n...
It's a great idea, and a great implementation, but it has no affordance whatsoever to promote discovery.
EDIT: It looks like an odd CSS issue: the first line of each paragraph is being hidden.
Nice to finally find out what on earth that was!
Quite easy to do as a 'tic' when you notice this undiscoverable 'feature'.
As you do this it updates the URL so you can share it.
They Keys to identify the text are generated dynamically and tolerant to change (so if a Paragraph is modified or moved later on - rare) it will still link tot he correct one within a given tolerance.