Problem with Russian letters in itemize
Hello, I'm trying to use Russian (Cyrillic) letters for itemize list but without luck. This is small example to show a problem: ---------------------- 8< --------------------- \mainlanguage[ru] \setupbodyfont[cambria] % \setupbodyfont[computer-modern-unicode] % \setupbodyfont[dejavu] \starttext \startitemize[a] \item первый \item второй \stopitemize \stoptext ---------------------- 8< --------------------- Compilation (typesetting) of the example by context (curr. ver. 2017.01.27) gives a PDF file with Latin letters. According to 'language-mkiv.pdf' (found in texmf-context/doc/context/documents/general/manuals) The \type{alphabetic} converter adapts to the current main language. When a language has no special alphabet, the regular 26 characters are used. the use of Latin letters is expected behaviour if current language has not special alphabet. But Russian alphabet (based on Cyrillic) has differences with Latin one. Did I face a bug or I misunderstand the documentation and I have to use (add?) another command to obtain Russian letters for item? Also, it is possible that I incorrectly use 'setupbodyfont' but I tested all cases shown above and they work fine, expect the fact that 'cambria' case gives me italic variant of font while 'computer-modern-unicode' and 'dejavu' use "roman" font. Thank you in advance, Vladimir Lomov -- Trying to define yourself is like trying to bite your own teeth. -- Alan Watts
Am Mon, 13 Feb 2017 17:24:19 +0800 schrieb Vladimir Lomov:
I'm trying to use Russian (Cyrillic) letters for itemize list but without luck.
Imho there is no predefined conversion, but you can define your own: http://wiki.contextgarden.net/User-Defined_Enumerations -- Ulrike Fischer http://www.troubleshooting-tex.de/
Hi Vladimir,
You may try the '\definefallbackfamily' command if you are written in another language than Russian;
if the whole text is in Cyrillic, I don't have any idea how you can't achieve the itemize purpose.
Since I guess you are aware about what kind of font match with cyrillic, there is something to clear with the itemizing setting.
If your document is written in another language than English, test this MWE (in which I don't understand either why the numbering is not in Russian!) :
definefallbackfamily [mainface] [serif] [AGGaramondCyr] [range=cyrillic]
\definefontfamily [mainface] [serif] [AGGaramondCyr]
\setupbodyfont[mainface]
\setuplanguage[en,ru][patterns={fr, de, ru}]
\starttext
A sentence in Russian :
Традиционная систематика лишайников оказывается во многом условна и
\startitemize[a]
\item первый
\item второй
\stopitemize
\stoptext
----- Mail original -----
De: "Ulrike Fischer"
I'm trying to use Russian (Cyrillic) letters for itemize list but without luck.
Imho there is no predefined conversion, but you can define your own: http://wiki.contextgarden.net/User-Defined_Enumerations -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hello, ** Ulrike Fischer [2017-02-13 14:16:52 +0100]:
Thank you, I saw this page but was confused by other page about Enumerations (http://wiki.contextgarden.net/Enumerations) that mentions two special examples: Slovenian and Spain (and some alphabetic thing). I tried to make custom conversion command and it works, but my point was that I expected that \items will give Russian letters if I use '\mainlanguage[ru]'. I tried with 'sl' and 'es' and both give special letters. Still 'ar', 'gr' and 'kr' don't give me other than Latin letters in \items as I would expect (examples with 'sl' and 'es' work!). So I conclude that either I'm doing something wrong (in wrong way) or something still missing in context regarging usage of other alphabets letters as \items. --- WBR, Vladimir Lomov -- Science may someday discover what faith has always known.
On 2/14/2017 4:31 AM, Vladimir Lomov wrote:
it's a matter of completion .. in core-con.lua we need to add a vector for russian in local counters = allocate { ... so you can make one and sent it to me ... then we needs an entry in core-con.mkiv just see how slovenian is done Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am Tue, 14 Feb 2017 11:31:01 +0800 schrieb Vladimir Lomov:
There are hundreds and thousands scripts and languages in the world. So I'm certain that quite a lot is still missing in context and think you shouldn't wonder too much. Simply sent an example of what you have done and ask that it gets added to the core if you think it would be usefull. -- Ulrike Fischer http://www.troubleshooting-tex.de/
participants (4)
-
Hans Hagen
-
Jean-Pierre Delange
-
Ulrike Fischer
-
Vladimir Lomov