[XeTeX] Uppercase in Armenian

2022-04-30 Thread Zdenek Wagner
Hi all, first I should mention that I do not know Armenian at all and can just recognize a few characters. Anyway I came across a problem which probably cannot be solved by the standard \lccode / \uccode method. What I mean is Yerevan which is written as Երևան but YEREVAN (all caps) is ԵՐԵՎԱՆ beca

Re: [XeTeX] Uppercase in Armenian

2022-04-30 Thread David Carlisle
Something like this, I think. [image: image.png] \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{armenian} \setmainfont{DejaVu Sans} \ExplSyntaxOn \let\tuppercase\text_uppercase:n \ExplSyntaxOff \pagestyle{empty} \begin{document} Երևան $\rightarrow$ \uppercase{Երևան} Երևան

Re: [XeTeX] Uppercase in Armenian

2022-04-30 Thread Zdenek Wagner
Yes, it looks better but the uppercase version should contain ԵՎ, not ԵՒ. Վ is capital vew (U+54E) while Ւ is capital yiwn (U+552). Zdeněk Wagner http://ttsm.icpf.cas.cz/team/wagner.shtml ne 1. 5. 2022 v 0:53 odesílatel David Carlisle napsal: > Something like this, I think. > > [image: image.p

Re: [XeTeX] Uppercase in Armenian

2022-04-30 Thread David Carlisle
the input uses a ligature character which has no corresponding uppercase, you need to decompose the ligature before uppercasing, which \uppercase can't do, you see the same in Latin script ff ligature \uppercase{diff diff} looks like DIFF DIff as the second one uses U+FB00 which has no uppercase.