<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Here is my code:</div><div class=""><br class=""></div><div class=""><div class="">\documentclass{article}</div><div class="">\usepackage{polyglossia,fontspec}</div><div class="">\setdefaultlanguage{arabic}</div><div class="">\newfontfamily{\arabicfont}[Script=Arabic,Extension=.ttf,Scale=1.2]{Amiri-Regular}</div><div class="">\textwidth1cm</div><div class="">\begin{document}</div><div class="">\large</div><div class="">\lefthyphenmin1</div><div class="">\righthyphenmin1</div><div class=""><br class=""></div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a^^^^0643^^^^200d^^^^200d^^^^0643^^^^062a</div><div class=""><br class=""></div><div class="">\end{document}</div></div><div class=""><br class=""></div><div class="">and the patterns I have loaded for Arabic are </div><div class=""><br class=""></div><div class=""><div class="">\catcode"200D=11</div><div class="">\lccode"200D="200D</div><div class="">\patterns{</div><div class="">^^^^200d1^^^^200d</div><div class="">}</div></div><div class=""><br class=""></div><div class="">I don't get any hyphenation at all. When I remove the ^^^^200d and try a pattern between Arabic characters it works just fine,</div><div class="">so it is not a problem inherent in Arabic script.</div><div class=""><br class=""></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><table style="background-color: rgb(241, 241, 241); border: 1px solid rgb(221, 221, 221);" class=""><tbody class=""><tr class=""><td colspan="3" class=""></td></tr><tr class=""><td class=""><a href="http://www.imt-atlantique.fr" target="_blank" class=""><img src="http://img.mines-telecom.fr/signature-mail/logos/logo-imta.png" title="Site web IMT Atlantique" alt="IMT Atlantique" style="padding: 4px 0px 4px 4px;" class=""></a></td><td class=""><div style="float: left; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 13px; line-height: 1.5; font-family: sans-serif; color: rgb(85, 85, 85); padding: 8px 15px;" class=""><strong class="">Yannis HARALAMBOUS</strong><br class="">Professor<br class="">Computer Science Department<br class="">UMR CNRS 6285 Lab-STICC<br class=""><a href="http://perso.telecom-bretagne.eu/yannisharalambous/" target="_blank" style="text-decoration: none;" class=""><img src="https://img.mines-telecom.fr/signature-mail/social/web.png" title="Site web IMT Atlantique" alt="Site web IMT Atlantique" style="padding: 3px 10px 4px 0px;" class=""></a><a href="https://twitter.com/y_haralambous" target="_blank" style="text-decoration: none;" class=""><img src="https://img.mines-telecom.fr/signature-mail/social/twitter.png" title="Twitter IMT Atlantique" alt="Twitter IMT Atlantique" style="padding: 3px 10px 4px 0px;" class=""></a><a href="https://www.linkedin.com/in/yannis-haralambous-5529073?trk=hp-identity-name" target="_blank" style="text-decoration: none;" class=""><img src="https://img.mines-telecom.fr/signature-mail/social/linkedin.png" title="LinkedIn IMT Atlantique" alt="LinkedIn IMT Atlantique" style="padding: 3px 10px 4px 0px;" class=""></a></div><div style="float: left; font-style: normal; font-variant-caps: normal; font-weight: bold; font-stretch: normal; font-size: 11px; line-height: 1.5; font-family: sans-serif; color: rgb(136, 136, 136); padding: 8px 15px;" class="">Technopôle Brest-Iroise CS 83818<br class="">29238 Brest Cedex 3, France<br class="">Une école de<span class="Apple-converted-space"> </span><a href="http://www.imt.fr" target="_blank" class="">l'IMT</a></div></td></tr><tr class=""><td colspan="3" class=""><div style="float: left; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: 1.5; font-family: sans-serif; color: rgb(85, 85, 85); padding: 8px 15px;" class=""></div></td></tr></tbody></table><p class=""><i class=""><span class="">Final exercise: Find all of the lies in this book,<br class="">
and all of the jokes.</span></i> (Donald E. Knuth)<br class=""><br class=""></p></div></div>
</div><br class=""></body></html>