3 ms·
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 l
by shiven 15y ago
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 http://news.ycombinator.com/item?id=1974963
- tastefulwords 15y agoYou'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.
- bramstein 15y agoAuthor 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/. http://www.treesaverjs.com/.) For hyphenation you might also want to check out my Hypher project (https://github.com/bramstein/Hypher 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.)
- tastefulwords 15y agoThanks for the info, Bram. I'll be sure to hit you up if/when I have any questions.