Here is my code:
\documentclass{article}
\usepackage{polyglossia,fontspec}
\setdefaultlanguage{arabic}
\newfontfamily{\arabicfont}[Script=Arabic,Extension=.ttf,Scale=1.2]{Amiri-Regular}
\textwidth1cm
\begin{document}
\large
\lefthyphenmin1
\righthyphenmin1
^^^^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
^^^^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
^^^^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
^^^^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
^^^^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
^^^^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
^^^^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
^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a
\end{document}
and the patterns I have loaded for Arabic are
\catcode"200D=11
\lccode"200D="200D
\patterns{
^^^^200d1^^^^200d
}
I don't get any hyphenation at all. When I remove the ^^^^200d and try a
pattern between Arabic characters it works just fine,
so it is not a problem inherent in Arabic script.
<http://www.imt-atlantique.fr/> Yannis HARALAMBOUS
Professor
Computer Science Department
UMR CNRS 6285 Lab-STICC
<http://perso.telecom-bretagne.eu/yannisharalambous/>
<https://twitter.com/y_haralambous>
<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/>
Final exercise: Find all of the lies in this book,
and all of the jokes. (Donald E. Knuth)