[XeTeX] hyphenation problem

Jonathan Kew jonathan at jfkew.plus.com
Fri Sep 26 21:02:24 CEST 2008


On 26 Sep 2008, at 7:20 PM, Mehdi Omidali wrote:

> 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?

That's what the line

   \lccode"200C="200C

does.

JK



More information about the XeTeX mailing list