TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble getting Myanmar text to break at the end of lines properly. The previous question How do I wrap text that doesn't use SPACE character to segment word would appear to solve my problem. However, it is not working for me.

I am on Linux Mint. XeTeX version is 0.9995.

Here is what my document looks like (font source: Padauk SIL Font):

\documentclass{article} % save as utf-8, run with xelatex
\XeTeXlinebreaklocale "my"
\XeTeXlinebreakskip = 0pt plus 0.1pt

လၢထံးလၢသီန့ၣ်ယွၤတ့လီၤမူခိၣ်ဒီးဟီၣ်ခိၣ်လီၤ ... (multiple paragraphs of text)

Running this through XeLaTeX, I get an error: Undefined control sequence \XeTeXlinebreaklocale, etc.. It appears that the compiler knows nothing about the \XeTeXlinebreaklocale - do I need to include some additional package? If I remove the \XeTeXlinebreaklocale and \XeTeXlinebreakskip lines, my document compiles very nicely... with Myanmar text breaking only on spaces (but, unfortunately, not even on zero width spaces).

So, the basic question is, what am I doing wrong here. How do I get the 'my' line breaking local to work? OR How do I get XeLaTeX to break lines on zero width spaces? OR What is the correct way to typeset Myanmar text?

Note: This is actually not Myanmar, it's Sgaw Karen - which is implemented in Unicode as a subset of Myanmar. It's rules are much simpler than Myanmar: a line may break directly before a set of 25 characters. Is there an easy way to do that? If so, that would be the very best solution.

share|improve this question

closed as off-topic by Joseph Wright Dec 22 '15 at 22:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Joseph Wright
If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! The post you're linking to mentions \XeTeXlinebreaklocale, with an e at the end. Is that the issue? (I can't test because I don't have the font Padauk.) – doncherry Oct 28 '12 at 16:32
No, that's not it. Sorry about the typo though. – Ben Sharon Oct 28 '12 at 16:41
@BenSharon When responding to another user's comment, don't forget to address them with @username so that they'll get a notification. Please edit your question to get rid of the typo. – doncherry Oct 28 '12 at 16:51
@BenSharon The most recent version of XeTeX is .9998. But this behaviour seems to depend on the font. Have you tried putting \sloppy in your document? That seems to solve the problem for me. – Alan Munn Jun 1 '13 at 22:19
This is 'works for me' with XeTeX 0.99992: without further information I suspect it needs a binary update (so off-topic). – Joseph Wright Dec 22 '15 at 22:25