Quote:
Originally Posted by Psymon
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"):
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.