View Single Post
Old 11-04-2013, 01:18 PM   #88
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Psymon View Post
Anyone have another solution, for either selectively allowing hyphenation on certain words, or else to insert something similar to * within the words?
There is a unicode character called a "soft hyphen". Just imagine it as telling the rendering software that this is where an "optional hyphen" can go.

https://en.wikipedia.org/wiki/Soft_hyphen

You can stick it in your EPUB using the HTML named entity (remove the space between "& s"):

Code:
& shy;
But this has a few disadvantages:
  • Breaks searching in many readers
  • If the user's font does not include the "soft hyphen" character, it will turn into a "missing character" glyph.
  • I personally think it makes very ugly and harder to maintain code.

Best bet is to just leave hyphenation up to the limitations of the reading program/dictionary. This is again one of those where you weigh the pros/cons of maintainability. You build a compliant EPUB, and you hope they update/make better hyphenation in readers in the future.

Last edited by Tex2002ans; 11-04-2013 at 01:20 PM.
Tex2002ans is offline   Reply With Quote