codicille / edsa

Web-based and multi-devices e-book reader.
Other
7 stars 0 forks source link

Improving text rendering (justify, hyphenate, widow, etc) #23

Open j15e opened 11 years ago

j15e commented 11 years ago

https://github.com/jolicode/JoliTypo https://code.google.com/p/typogrify/ http://davecardwell.co.uk/javascript/jquery/plugins/jquery-widont/ http://www.shauninman.com/archive/2006/08/22/widont_wordpress_plugin

http://stackoverflow.com/questions/13700054/parsing-html-to-fix-microtypography-glyph-issues

renaudleo commented 11 years ago

Il existe une propriété CSS pour les hyphens (https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens).

Le support est pas idéal encore, mais vraiment pas si pire non plus (Firefox, Safari, IE10). Ça serait surprenant que Chrome/Opera suive pas avant longtemps.

Démo ici: https://developer.mozilla.org/samples/cssref/hyphens.html

renaudleo commented 11 years ago

fd90e0e9e02c6048ad95de87f94e0c5747b499cc

renaudleo commented 11 years ago

Better text justification: https://github.com/bramstein/typeset

Might be a start for something that would fit our needs.