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 |
test-idea.pdf
Description: Adobe PDF document