Quote:
Originally Posted by spruitje
Your title implies that hyphenation does not work at all in kepubs. My experience is that Dutch text in kepubs is not hyphenated according to the Dutch hyphenation rules that I supplied. In some more detail: - without supplying a Dutch hyphenation file there is no hyphenation in epub or kepub;
- with a valid /usr/local/Kobo/hyphenDicts/hyph_nl.dic hyphenation works correctly in epub, but hyphens appear in arbitrary places, often incorrect, in kepub: uitg-esproken, ziekenh-uis, wasm-achine, tanda-rts;
- test cases have proper language code nl in dc:language element of opf and in xml:lang attribute on html element of xhtml;
- the presence of a symbolic link /usr/share/hyphen/hyph_nl_NL.dic does not seem to make a difference.
|
Yes, hyphenation does work with epubs and not with kepubs.
Quote:
Also, RMSDK only supplies hyphenation dictionaries for English, French, German, Italian, Brazilian Portuguese, and Spanish. Customers may add their own hyphenation dictionaries for other languages. Hyphenation dictionaries are in the same format as the ones used in OpenOffice. Customers need to be aware that many of the non-Adobe hyphenation dictionaries available might support only a subset of the required functionalities.
|
I use a Dutch hyphenation dictionary file
- source: Open Taal (hyph_nl_NL.dic)
- complies to Dutch hyphenation rules, so there is no incorrect hyphenation.
- hyphenation dictionary is in OpenOffice format (and UTF-8)
- to define the default language for an XHTML document the language attributes need to be attached to the root html element. The language code should match the language code specified in a dc:language element in the package document's metadata section.
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
- adding CSS properties, doesn't seem to make any difference for kepubs. Regardless of whether these properties are required or not as the default settings of these properties are "auto", or "normal". I tried:
- -adobe-hyphenate:explicit; (only for Adobe RMSDK)
- -epub-hyphens:auto;
- -webkit-hyphens:auto;
- hyphens:auto;
- text-wrap:normal;
- overflow-wrap:break-word;
All I had to do is to build a patch to load the Dutch hyphenation dictionary on to the Kobo. Containing:
Code:
.\usr\local\Kobo\hyphenDicts\hyph_nl.dic
.\usr\share\hyphen\hyph_nl_NL.dic