5

I am setting a document with Chinese pinyin. I use \- to separate syllables in pinyin phrases (eg. zhong\-wen). This not only allows for proper hyphenation, but also allows spell check in Emacs/AUCtex. A problem occurs with the hyphen for such words as Chang'an or Xi'an. Entering these words as Chang'\-an or Xi'\-an would retain the apostrophe even if hyphenated at the end of the line. Is there a way to make the apostrophe drop if the word is hyphenated, but kept otherwise?

1 Answer 1

6

\- is defined via the \discretionary primitive, so you should be able to go

Xi\discretionary{-}{}{'}an

where the arguments are the text to use before a break, after a break, or if no break.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .