0 votes
In my current typesetting project, the possible hyphenation points are determined primarily by syllable boundaries, not by hyphenatedWords.txt. Such points are most easily defined using a series of regex replacement rules.

I remember a few years ago seeing that it was possible to introduce soft hyphens uses changes.txt rules (as can also be done in Publishing Assistant), but in PTXprint, some additional settings were needed in the ptxprint-mods.tex file. But nothing I've tried has worked.

I see that under Hyphenation > Import List, there is a grayed-out option for "Add syllable-based hyphenated words", but I can find no documentation on how to enable and make use of that feature.
PTXprint by (110 points)

1 Answer

0 votes
Best answer
On the Fonts&Scripts tab, enable hyphenation. This will disable intercharacter spacing for technical reasons (hyphenation doesn't work with intercharacter spacing turned on, although it might with rule based hyphenation)

In your changes.txt add rules that include a \SFTHYPHEN or U+00AD (they are equivalent) at the possible hyphenation point. E.g.

'([bcdfghjklmnpqrstvwxz])([bcdfghjklmnpqrstvwxz])' > '\1\\SFTHYPHEN \2'

or

'([bcdfghjklmnpqrstvwxz])([bcdfghjklmnpqrstvwxz])' > '\1\u00AD\2'

and print away.
by (656 points)
selected by
Thank you, Martin! These things had I done, except with '\u00ad' in my changes rule instead of with '\\SFTHYPHEN'. After making that change, I'm getting hyphens!!! Thanks so much!
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And over all these virtues put on love, which binds them all together in perfect unity.
Colossians 3:14
3,033 questions
5,988 answers
5,654 comments
2,020 users