Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thank you for the clarification, I was unaware of the details you just mentioned.

Talking of algorithms, does Readable use something like the Knuth and Plass line break algo used by LaTeX? A Javascript implementation was mentioned a while ago on HN[1].

Good luck with Readable, anything that helps reduce clutter (in any part of life) is a great gift. Thanks for sharing!

[1]http://news.ycombinator.com/item?id=1974963



You're very welcome.

No; Readable doesn't use anything like the Knuth and Plass algorithm.

But I did thoroughly check out the JS implementation you mentioned; and Readable will probably use a part of the Knuth algorithm in the future -- as I am planning to support hanging quotation marks, hyphenation, as well as better (typographic) justification.


Author of the JS implementation here. Let me know if you have any questions about the implementation or problems integrating it. I was hoping someone would pick it up and integrate it with Readability-like service. (I've slowly been working to add support for it to Treesaver http://www.treesaverjs.com/.)

For hyphenation you might also want to check out my Hypher project (https://github.com/bramstein/Hypher) which is a minimal hyphenation engine written in JavaScript. In my benchmarks it is about 4 times faster than Hyphenator.js (and a lot smaller.)


Thanks for the info, Bram. I'll be sure to hit you up if/when I have any questions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: