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

Attachment: xelatex.log
Description: Binary data


Le 25 mars 2021 à 12:55, Jonathan Kew <jfkth...@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
Yannis HARALAMBOUS
Professor
Computer Science Department
UMR CNRS 6285 Lab-STICC
Site web IMT AtlantiqueTwitter IMT AtlantiqueLinkedIn IMT Atlantique
Technopôle Brest-Iroise CS 83818
29238 Brest Cedex 3, France
Une école de l'IMT

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)


Reply via email to