View Single Post
Old 07-17-2020, 11:04 PM   #21
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jackie_w View Post
Yes, you did. It can be seen in kepubs. For example, if you have included this CSS in your kepub
Code:
    -webkit-hyphenate-limit-before: 2;
    -webkit-hyphenate-limit-after: 3;
you may see something like this:
Code:
Strange hyphenati-
on.
For reasons best known to whoever wrote the kepub rendering app the punctuation seems to count as one of the characters.

For this reason I never have -webkit-hyphenate-limit-after set to anything less than 3.
That's annoying and makes me happy with my ragged-right preference

The interesting thing is that the punctuation probably should be considered when deciding to split the word, but, it shouldn't be included when deciding where to put the split. I wonder if this is one of those cases where the programmer/designer/whoever decided to fix it later when they had time to think about it properly and that time has never arrived.
davidfor is offline   Reply With Quote