[XeTeX] Follow-up to previous mail about hyphenation

Bruno Le Floch blflatex at gmail.com
Thu Mar 25 17:30:01 CET 2021


Check \the\catcode"200D perhaps, it does not seem to be set in your example
document.  Note that the LaTeX format might reset that catcode.

The other mystery is why Arabic words seem to only be hyphenated once.

On 3/25/21 5:17 PM, Yannis Haralambous wrote:
> Well it is neither polyglossia nor fontspec, because I have ran the following file:
> 
> \documentclass{article}
> \textwidth1mm
> \begin{document}
> \font\arabicfont="[./Amiri-Regular.ttf]"
> 
> \lefthyphenmin1
> \righthyphenmin1
> 
> \makeatletter\language\l at arabic
> \arabicfont
> 
> ^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643
> ^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643
> ^^^^0643^^^^0643^^^^0643^^^^0643^^^^0643
> ^^^^0643^^^^0643^^^^0643^^^^0643^^^^0643
> 
> \end{document}
> 
> and still get that odd behavior: between ^^^^0643 I get flawless hyphenation but
> not between ^^^^200d
> 
> My patterns are \patterns{^^^^0643^^^^200d1^^^^200d^^^^0643
> ^^^^06431^^^^0643
> ^^^^200d1^^^^200d
> }
> 
> I'm attaching my xelatex.log file, do you see any file that can have affected
> the behavior of ^^^^200d?
> 
> 
> 
>> Le 25 mars 2021 à 12:55, Jonathan Kew <jfkthame at gmail.com
>> <mailto:jfkthame at gmail.com>> a écrit :
>>
>> On 25/03/2021 11:37, Yannis Haralambous wrote:
>>> OK, this may be a bug, but it doesn't explain why in polyglossia+fontspec I
>>> get no hyphenation at all. I should get at least one hyphenation in each
>>> word, no?
>>
>> My guess is that polyglossia (or something else in latex?) thinks it knows
>> best how to handle U+200D and is getting in your way.
> 
> IMT Atlantique <http://www.imt-atlantique.fr>	
> *Yannis HARALAMBOUS*
> Professor
> Computer Science Department
> UMR CNRS 6285 Lab-STICC
> Site web IMT Atlantique
> <http://perso.telecom-bretagne.eu/yannisharalambous/>Twitter IMT Atlantique
> <https://twitter.com/y_haralambous>LinkedIn IMT Atlantique
> <https://www.linkedin.com/in/yannis-haralambous-5529073?trk=hp-identity-name>
> Technopôle Brest-Iroise CS 83818
> 29238 Brest Cedex 3, France
> Une école de l'IMT <http://www.imt.fr>
> 
> /Pour le spectateur — et particulièrement pour l'historien de la peinture —
> distinguer les couleurs mates des couleurs brillantes est indispensable.
> Or comment repérer, simplement repérer, les couleurs mates sur l'écran d'un
> ordinateur?/     (Michel Pastoureau)
> 
> 



More information about the XeTeX mailing list.