I am typesetting a document in Chinese with spaces between words, for the purpose of making it easier for learners. Because of this, I am typesetting most of my document with no line-breaks between words. Because Chinese words are generally pretty short, this will generally not cause any big problems.
However, in some parts of my document, I will need to use Chinese line breaks, as defined by \XeTeXlinebreaklocale "zh" (or similar) to avoid over-filled boxes. Basically, those are regular paragraphs of Chinese text, which will not break at all without this option turned on. However, this appears to be a document specific parameter that I can not easily change in only parts of the document.
Any ideas for how I can deal with this problem?
I added to my comment below that I would like to type Chinese text without spaces, as "我喜欢学中文", in which case line breaks would use a Chinese locale, as well as space delimited Chinese (non-standard) "我 喜欢 学 中文", in which case no line breaks are allowed in the middle of words (or possibly only allowed with very high tolerance).
If I just turn on \XeTeXlinebreaklocale "zh" (or use a CJK package, I believe), all words will be broken according to Chinese rules, in which case I risk getting the "中文" in "我 喜欢 学 中文" broken over two lines.