View Single Post
Old 09-21-2022, 11:41 AM   #248
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Do the hyphenation settings in the KoboTouchExtended driver override the the settings in the hyphenation dictionary?
This is what's in the hyphenation dictionary.
Code:
COMPOUNDLEFTHYPHENMIN 2
COMPOUNDRIGHTHYPHENMIN 3
To the best of my knowledge the KTE driver works by adding an extra hyphenation.css file to the kepub during creation. It uses webkit CSS such as this:
Code:
-webkit-hyphens: auto;
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-lines: 2;
-webkit-hyphenate-limit-chars: 6;
where you can use KTE config to set those values. You can see for yourself by looking at file css/hyphenation.css.tmpl inside the KTE plugin zip file.

My technical knowledge of hyphenation stuff is sketchy at best but my observation is that in kepub this CSS will override whatever values exist in hyph_en.dic such as
Code:
LEFTHYPHENMIN 2
RIGHTHYPHENMIN 2
at least for CSS properties -webkit-hyphenate-limit-after and -webkit-hyphenate-limit-before.

I'm not convinced that property -webkit-hyphenate-limit-chars is supported at all by kepubs. I don't know why KTE includes it ... but maybe I'm wrong.

I never use -webkit-hyphenate-limit-lines myself. I figure kepubs need all the help they can get without applying a consecutive lines limit. I've no reason to believe it doesn't work if you want to use it.
jackie_w is offline   Reply With Quote