[XeTeX] hyphenation problem

Mehdi Omidali mehdioa at gmail.com
Fri Sep 26 20:20:20 CEST 2008

Jonathan Kew <jonathan at ...> writes:

> To fix this, you can set its \lccode before trying to give  
> \hyphenation entries that require this character:
>    \lccode"200C="200C
>    \hyphenation{می‌-بینم}
Thanks Jonathan
The above declaration worked perfect. I have now hyphenation in the 
correct point. 

> I'm a little surprised that you'd want this, actually; most Persian  
> users I have known insist on keeping these kind of prefixes and  
> suffixes attached to the root word, not allowing a line break. 

People sometimes write می‌بینم as می بینم with a real space between
 می ans بینم
which is not correct (maybe because their 
keyboard have no zero-width character or ZWNJ). 
By saying "keep prefixes attached to their root" people mean not to
break as above. But it is not bad to break the line after می.

>But if  
> you do want hyphenation here, it should work once you set the \lccode  
> of the ZWNJ character appropriately.

1- How can I set the \lccode of the ZWNJ appropriately?

More information about the XeTeX mailing list