[XeTeX] Follow-up to previous mail about hyphenation
Bruno Le Floch
blflatex at gmail.com
Thu Mar 25 12:18:51 CET 2021
>> So what am I missing in my code, Jonathan ? I have added a \hyphenchar,
>> removed the pointless (and dysfunctional) \showhyphens), but still get no
>> hyphenation —
>>
>> % !TeX Program=Ini-XeTeX
>>
>> \catcode `\ = 10
>> \catcode `\ = 10
>> \catcode `\{ = 1
>> \catcode `\} = 2
>> \catcode `\^ = 7
>>
>> \tracingonline = 1
>> \tracinglostchars = 2
>>
>> \font \tenrm = "Amiri"
>> \tenrm
>> \hyphenchar \font = `\‐
>>
>> \lccode "200D = "200D
>> \catcode "200D = 11
>> \patterns {^^^^200d1^^^^200d}
>>
>> \hsize = 0 pt
>> bla^^^^200d^^^^200dbla
>>
>> \end
Pushing some more in this direction, my code below (with Amiri-Regular.ttf being
in the same directory) hyphenates the second and third "blabla" (consistent with
Yannis' reminder that the first word is not hyphenated) but only hyphenates in a
single place (the first one) in the sequence of ^^^^xyzt afterwards.
% !TeX Program=Ini-XeTeX
\catcode `\ = 10
\catcode `\ = 10
\catcode `\{ = 1
\catcode `\} = 2
\catcode `\^ = 7
\catcode"200D=11
\lccode "200D = "200D
\patterns {^^^^200d1^^^^200d}
\font \tenrm = [./Amiri-Regular.ttf]
\tenrm
\hyphenchar\tenrm=`-
\tracingonline 1
\tracinglostchars 2
\vsize=23cm
bla^^^^200d^^^^200dbla
bla^^^^200d^^^^200dbla
bla^^^^200d^^^^200dbla
\lefthyphenmin1
\righthyphenmin1
X
^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a%
^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a%
X
\end
More information about the XeTeX
mailing list.