<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="">I posted a question on <a href="http://tex.stackexchange.com" class="">tex.stackexchange.com</a>, let us see if somebody can give us more input:<div class=""><br class=""></div><div class=""><a href="https://tex.stackexchange.com/questions/588952/zwj-not-working-in-hyphenation-patterns-in-xelatex" class="">https://tex.stackexchange.com/questions/588952/zwj-not-working-in-hyphenation-patterns-in-xelatex</a><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 25 mars 2021 à 17:30, Bruno Le Floch <blflatex@gmail.com> a écrit :</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><span style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">Check \the\catcode"200D perhaps, it does not seem to be set in your example</span><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">document. Note that the LaTeX format might reset that catcode.</span><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">The other mystery is why Arabic words seem to only be hyphenated once.</span><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">On 3/25/21 5:17 PM, Yannis Haralambous wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class=""><blockquote type="cite" style="font-family: HelveticaNeue; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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;" class="">Well it is neither polyglossia nor fontspec, because I have ran the following file:<br class=""><br class="">\documentclass{article}<br class="">\textwidth1mm<br class="">\begin{document}<br class="">\font\arabicfont="[./Amiri-Regular.ttf]"<br class=""><br class="">\lefthyphenmin1<br class="">\righthyphenmin1<br class=""><br class="">\makeatletter\language\l@arabic<br class="">\arabicfont<br class=""><br class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643<br class="">^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643^^^^200d^^^^200d^^^^0643<br class="">^^^^0643^^^^0643^^^^0643^^^^0643^^^^0643<br class="">^^^^0643^^^^0643^^^^0643^^^^0643^^^^0643<br class=""><br class="">\end{document}<br class=""><br class="">and still get that odd behavior: between ^^^^0643 I get flawless hyphenation but<br class="">not between ^^^^200d<br class=""><br class="">My patterns are \patterns{^^^^0643^^^^200d1^^^^200d^^^^0643<br class="">^^^^06431^^^^0643<br class="">^^^^200d1^^^^200d<br class="">}<br class=""><br class="">I'm attaching my xelatex.log file, do you see any file that can have affected<br class="">the behavior of ^^^^200d?<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">Le 25 mars 2021 à 12:55, Jonathan Kew <jfkthame@gmail.com<br class=""><<a href="mailto:jfkthame@gmail.com" class="">mailto:jfkthame@gmail.com</a>>> a écrit :<br class=""><br class="">On 25/03/2021 11:37, Yannis Haralambous wrote:<br class=""><blockquote type="cite" class="">OK, this may be a bug, but it doesn't explain why in polyglossia+fontspec I<br class="">get no hyphenation at all. I should get at least one hyphenation in each<br class="">word, no?<br class=""></blockquote><br class="">My guess is that polyglossia (or something else in latex?) thinks it knows<br class="">best how to handle U+200D and is getting in your way.<br class=""></blockquote><br class="">IMT Atlantique <<a href="http://www.imt-atlantique.fr/" class="">http://www.imt-atlantique.fr</a>><span class="Apple-tab-span" style="white-space: pre;"> </span><br class="">*Yannis HARALAMBOUS*<br class="">Professor<br class="">Computer Science Department<br class="">UMR CNRS 6285 Lab-STICC<br class="">Site web IMT Atlantique<br class=""><<a href="http://perso.telecom-bretagne.eu/yannisharalambous/" class="">http://perso.telecom-bretagne.eu/yannisharalambous/</a>>Twitter IMT Atlantique<br class=""><<a href="https://twitter.com/y_haralambous" class="">https://twitter.com/y_haralambous</a>>LinkedIn IMT Atlantique<br class=""><<a href="https://www.linkedin.com/in/yannis-haralambous-5529073?trk=hp-identity-name" class="">https://www.linkedin.com/in/yannis-haralambous-5529073?trk=hp-identity-name</a>><br class="">Technopôle Brest-Iroise CS 83818<br class="">29238 Brest Cedex 3, France<br class="">Une école de l'IMT <<a href="http://www.imt.fr/" class="">http://www.imt.fr</a>><br class=""><br class="">/Pour le spectateur — et particulièrement pour l'historien de la peinture —<br class="">distinguer les couleurs mates des couleurs brillantes est indispensable.<br class="">Or comment repérer, simplement repérer, les couleurs mates sur l'écran d'un<br class="">ordinateur?/ (Michel Pastoureau)</blockquote></div></blockquote></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="">Ceux qui négligent de relire s'obligent à lire partout la même histoire.</i> (Roland Barthes)<br class=""><br class=""></p></div></div>
</div><br class=""></div></body></html>