1

I am currently using xeCJK for Chinese/Japanese/Korean languages. Using Polyglossia for Thai, with the line break setting:

\XeTeXlinebreaklocale "th"

I've seen several people discuss the use of the line break locale command, mostly referencing Thai and Myanmar, and specific codes for each. What I have yet to find however is a list of these locales to use with them. For example the two character code 'th' meaning Thai. Where does this come from?

I am currently trying to handle Khmer in my document, but it is just running off of the page. Rather than simply get "Use XX for the locale" I'd rather be taught to fish instead and know where to get the proper codes.

  • After complaining to my wife, she investigated standards and practices which ended up being where these come from. I was searching Xetex specific documentation. – Clefevre Nov 20 '14 at 19:46
4

It's apparently the ISO 639-1 code that is used. For Khmer the two-letter code is "km" (official source: Language codes - ISO 639).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.