Silly of me, when adding the \lccode information also in the TeX file… it works. And not only once
in a word, but for all hyphenation points. I was persuaded having done so, but apparently I didn't. Anyway,
now everything suddenly seems to work. Totally weird…

\documentclass{article}
\usepackage{polyglossia,fontspec}
\setdefaultlanguage{arabic}
\newfontfamily{\arabicfont}[Script=Arabic,Extension=.ttf,Scale=1.2]{Amiri-Regular}
\textwidth1mm
\begin{document}

\catcode"200D=11 %JOINER
\lccode"200D="200D
\lefthyphenmin1
\righthyphenmin1

\makeatletter\language8
\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

blabla
blabla
bla^^^^200d^^^^200dbla
bla^^^^200d^^^^200dbla

\the\catcode"200D

\end{document}

with patterns \patterns{
^^^^06431^^^^0643
^^^^200d1^^^^200d
}

gives the attached PDF

Attachment: test-idea.pdf
Description: Adobe PDF document


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

Ceux qui négligent de relire s'obligent à lire partout la même histoire.     (Roland Barthes)


Reply via email to