hyphenation / tex-hyphen

Hyphenation patterns for TeX
53 stars 20 forks source link

Make patterns for Kannada that only break before and after 3 grapheme clusters #46

Open reutenauer opened 4 years ago

reutenauer commented 4 years ago

See https://github.com/reutenauer/polyglossia/issues/407#issuecomment-615879308 for context and description.

jbezos commented 4 years ago

I wonder if the OP is referring to the fact in Kannada words are “hyphenated” showing no hyphens - the words are just broken. I couldn't find a way to get rid of hyphens in XeTeX.

reutenauer commented 4 years ago

No, he clearly expects a hyphen, but would like something with the equivalent effect of \lefthyphenmin=3\righthyphenmin=3, which doesn’t work well in the Kannada (or other Indic) script because we would need to take grapheme clusters into account, not characters. I said I would make patterns that mimic that effect. I think it would be an interesting experiment.

In the mean time the OP said he was happy with horrible space stretching like Word does :-(

alaymari commented 1 year ago

Just adding a comment here. In Kannada, hyphens are 'disabled', but words are broken. jbezos is right. I have this snippet in my kannada tex files:

\def\-{\discretionary{}{}{}}

This gets rid of the -, and I can use \- to force hyphenation. It avoids all the bad spacing issues.