Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reutenauer opened this issue Apr 18, 2020 · 3 comments

Comments

@reutenauer
Copy link
Member

See reutenauer/polyglossia#407 (comment) for context and description.

@jbezos
Copy link
Contributor

jbezos commented Apr 18, 2020

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
Copy link
Member Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants