Add a "Force CSS Hyphenation" feature
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kobo Touch Extended Driver |
Fix Released
|
High
|
Joel Goguen |
Bug Description
The current "Hyphenate file" feature of the extended driver doesn't work on the Kobo, since the firmware seems to mess up the display when it finds soft-hyphens in the epub code.
As an alternative, you coud add a single line to the epub CSS (or may be add a brand new, possibly customizable, CSS file...) in order to enable the native hyphenation feature of the ACCESS rendering engine:
* { -webkit-hyphens: auto; }
with this line, every paragraph with a justified text alignment will be hyphenated by the ACCESS engine.
The language used for hyphenation is the one specified in the <dc:language> element of the content.opf. (I think that this can be locally overriden with the 'lang' attribute).
This line is present in libnickel.so, and I guess that it is used when the user selects "justified" in font options dialog.
This feature could replace the current "Hyphenate file" feature or be added as an extra option.
description: | updated |
Changed in calibre-kobo-driver: | |
status: | Triaged → Fix Committed |
Changed in calibre-kobo-driver: | |
status: | Fix Committed → Fix Released |
Given that the current hyphenation is just broken, through no fault of the hyphenation library in use, I would be inclined to replace the current hyphenation code with this. The hyphenation may not be as good, but at least the book is displayed properly.