[XeTeX] Follow-up to previous mail about hyphenation

Yannis Haralambous yannis1962 at gmail.com
Thu Mar 25 18:50:55 CET 2021


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

 <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/>
Ceux qui négligent de relire s'obligent à lire partout la même histoire.     (Roland Barthes)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210325/1f241c97/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-idea.pdf
Type: application/pdf
Size: 4627 bytes
Desc: not available
URL: <https://tug.org/pipermail/xetex/attachments/20210325/1f241c97/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210325/1f241c97/attachment-0003.html>


More information about the XeTeX mailing list.