Armenian hyphenation
David Carlisle
d.p.carlisle at gmail.com
Mon Jun 17 13:25:09 CEST 2024
This is unrelated to polyglossia the latex format does
\ifx\XeTeXcharclass\@undefined
\DeclareRobustCommand\showhyphens[1]{%
....
\else
\DeclareRobustCommand\showhyphens[1]{%
\setbox0\vbox{%
\usefont{TU}{lmr}{m}{n}%
% Xe\TeX\ version. When using system fonts Xe\TeX\ reports consecutive
% runs of characters as a single item in box logging, which means the
% standard |\showhyphens| does not work. This version typesets the
% text into a narrow box to force hyphenation and then reconstructs a
% horizontal list with explicit hyphens to generate the display. Note
% that the |lmr| OpenType font is forced, this works even if the
% characters are not in the font as hyphenation is attempted due to
% the width of the space and hyphen character. It may generate
% spurious Missing Character warnings in the log, these are however
% suppressed from the terminal output by ensuring that
% |\tracingonline| is locally zero.
%
That last line seems no longer true as the warnings are emitted, I'll
check.... (latex2e github issue would be easier place to track any changes
than this list but no matter really)
david
On Mon, 17 Jun 2024 at 12:16, David Carlisle <d.p.carlisle at gmail.com> wrote:
> I get no missing character warning with lualatex but xelatex is using
> latin modern in show hyphens so warns all the characters are missing
>
> On Mon, 17 Jun 2024 at 12:01, Zdenek Wagner <zdenek.wagner at gmail.com>
> wrote:
>
>> Hi all,
>>
>> TeX Live contains Armenian hyphenation patterns in hyph-hy (Armenian in
>> Armenian is hayeren) but they are not used in polyglossia. Is there any
>> reason? In addition, \showhyphens report missing characters although my
>> default font contains them. MWE is below
>>
>> \documentclass[12pt]{article}
>> \usepackage{polyglossia}
>> \setdefaultlanguage{armenian}
>> \setmainfont{FreeSans}
>> \begin{document}
>> Բարև՛ Ձեզ
>>
>> \showhyphens{ինչու ինչպես որտեղ հիվանդանոց հիվանդանոցում Երևան Երևանում
>> Նամակ Երևանիս ԵՐԵՎԱՆ
>> ԵՐԵՎԱՆՈՒՄ ԵՐԵՎԱՆԻՍ շնորհակալություն անպայման այրվել անգին անձրևանոց
>> ԱՆՁՐԵՎԱՆՈՑ հիվանդանոցու՞մ}
>>
>> ինչու ինչպես որտեղ հիվանդանոց հիվանդանոցում Երևան Երևանում Նամակ Երևանիս
>> ԵՐԵՎԱՆ
>> ԵՐԵՎԱՆՈՒՄ ԵՐԵՎԱՆԻՍ շնորհակալություն անպայման այրվել անգին անձրևանոց
>> ԱՆՁՐԵՎԱՆՈՑ հիվանդանոցու՞մ
>> \end{document}
>>
>> Zdeněk Wagner
>> https://www.zdenek-wagner.eu/
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20240617/de6d2c94/attachment.htm>
More information about the tex-live
mailing list.