From 0306460893735e8e65de70f3034e1202de77a6e1 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 13 Jun 2011 23:37:09 +0100 Subject: Add CSS hyphenation (not well supported). Note that previous commit also included ligatures, which is neat --- TODO | 3 --- simplyread.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/TODO b/TODO index 9a53ca2..57a1765 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,3 @@ -core: - it would be nice to do hyphenation. http://code.google.com/p/hyphenator/ is nice, but heavyish (around 2000 LOC). most of that is just unneeded config options etc, though, the core looks reasonable; see hyphenate and hyphenateWord functions. note that it's lgpl. - gecko: test with firefox 4.0, and update version info http://blog.mozilla.com/addons/2010/11/11/making-add-on-compatible-firefox-4/ diff --git a/simplyread.js b/simplyread.js index d841e0a..4aa85c8 100755 --- a/simplyread.js +++ b/simplyread.js @@ -65,7 +65,7 @@ function simplyread() doc.body.innerHTML = "
" + + " text-rendering:optimizeLegibility; hyphens:auto;\">" + "

"+doc.title+"

" + fresh.innerHTML + "
"; -- cgit v1.2.3