ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with Russian letters in itemize
@ 2017-02-13  9:24 Vladimir Lomov
  2017-02-13 13:16 ` Ulrike Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Lomov @ 2017-02-13  9:24 UTC (permalink / raw)
  To: General mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with Russian letters in itemize
  2017-02-13  9:24 Problem with Russian letters in itemize Vladimir Lomov
@ 2017-02-13 13:16 ` Ulrike Fischer
  2017-02-13 18:13   ` Jean-Pierre Delange
  2017-02-14  3:31   ` Vladimir Lomov
  0 siblings, 2 replies; 6+ messages in thread
From: Ulrike Fischer @ 2017-02-13 13:16 UTC (permalink / raw)
  To: ntg-context

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/

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with Russian letters in itemize
  2017-02-13 13:16 ` Ulrike Fischer
@ 2017-02-13 18:13   ` Jean-Pierre Delange
  2017-02-14  3:31   ` Vladimir Lomov
  1 sibling, 0 replies; 6+ messages in thread
From: Jean-Pierre Delange @ 2017-02-13 18:13 UTC (permalink / raw)
  To: news3, mailing list for ConTeXt users

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" <news3@nililand.de>
À: ntg-context@ntg.nl
Envoyé: Lundi 13 Février 2017 14:16:52
Objet: Re: [NTG-context] Problem with Russian letters in itemize

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/

___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with Russian letters in itemize
  2017-02-13 13:16 ` Ulrike Fischer
  2017-02-13 18:13   ` Jean-Pierre Delange
@ 2017-02-14  3:31   ` Vladimir Lomov
  2017-02-14 12:10     ` Hans Hagen
  2017-02-14 13:24     ` Ulrike Fischer
  1 sibling, 2 replies; 6+ messages in thread
From: Vladimir Lomov @ 2017-02-14  3:31 UTC (permalink / raw)
  To: ntg-context

Hello,
** Ulrike Fischer [2017-02-13 14:16:52 +0100]:

> 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 

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.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with Russian letters in itemize
  2017-02-14  3:31   ` Vladimir Lomov
@ 2017-02-14 12:10     ` Hans Hagen
  2017-02-14 13:24     ` Ulrike Fischer
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2017-02-14 12:10 UTC (permalink / raw)
  To: Vladimir Lomov, ntg-context

On 2/14/2017 4:31 AM, Vladimir Lomov wrote:
> Hello,
> ** Ulrike Fischer [2017-02-13 14:16:52 +0100]:
>
>> 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
>
> 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.

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with Russian letters in itemize
  2017-02-14  3:31   ` Vladimir Lomov
  2017-02-14 12:10     ` Hans Hagen
@ 2017-02-14 13:24     ` Ulrike Fischer
  1 sibling, 0 replies; 6+ messages in thread
From: Ulrike Fischer @ 2017-02-14 13:24 UTC (permalink / raw)
  To: ntg-context

Am Tue, 14 Feb 2017 11:31:01 +0800 schrieb Vladimir Lomov:

> 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.

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/

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-14 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  9:24 Problem with Russian letters in itemize Vladimir Lomov
2017-02-13 13:16 ` Ulrike Fischer
2017-02-13 18:13   ` Jean-Pierre Delange
2017-02-14  3:31   ` Vladimir Lomov
2017-02-14 12:10     ` Hans Hagen
2017-02-14 13:24     ` Ulrike Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).