How to do discretionary/soft hyphens? #1716
-
I'm typesetting a book, and trying to fix the hyphenation in a paragraph. I've tried inserting soft-hyphen Unicode characters (U+00AD), as well as adding a custom hyphenation exception... but neither is working. Is it because the word I'm trying to hyphenation (Christchurch) a proper name? If so, is there any way to force this hyphenation? (That's what I tried with the soft-hyphen initially.) Or a setting to tweak? EDIT: Sorry, I should have been more clear about the soft-hyphen: it actually does break the word, but doesn't add an actual hyphen character. See 2nd paragraph, below. Here's my most recent try, with the exceptions (in XML):
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
The pattern system used by the hyphenator uses only lower-case patterns, but later uses a case-insensitive matcher to map to words from the input. Try this: <hyphenator:add-exceptions>christ-church</hyphenator:add-exceptions> |
Beta Was this translation helpful? Give feedback.
-
Aha! That worked. Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Any idea why the soft-hyphen doesn't work as (I) expected, though? |
Beta Was this translation helpful? Give feedback.
The pattern system used by the hyphenator uses only lower-case patterns, but later uses a case-insensitive matcher to map to words from the input. Try this: