[NTG-context] Russia (cyrillic letters)
Mikael Persson
mickep at gmail.com
Sun Feb 13 10:40:25 CET 2005
On Sun, 13 Feb 2005 10:34:22 +0100, Rob Ermers <r.ermers at hccnet.nl> wrote:
> Dear Contexers,
>
> I am still struggling with a Russian text in koi8.
> The sample below, which I partially copied (from Mikael Persson's site)
> does not work.
>
> Can anyone help me out?
>
> Kind regards
>
> Robert Ermers
>
> -----------
>
> \enableregime[koi8-r]
> \useencoding[cyr]
>
> \definetypeface [russian]
> [rm] [serif] [computer-modern] [default] [encoding=t2a]
>
> \definetypeface [swedish]
> [rm] [serif] [latin-modern] [default] [encoding=texnansi]
>
> \setupbodyfont[russian]
>
> \starttext
> Some swedish text:
>
> {\switchtobodyfont[swedish]Jag tycker att Katja studerar d\aring ligt.}
>
> Some russian text:
>
> ÂÌÁÇÏÓÌÏ×ÉÔ áÌÌÁÈ ÅÇÏ É ÅÇÏ ÂÌÉÖÎÉÈ ÂÌÁÇÏÒÏÄÎÅÊÛÅÇÏ ÐÒÏÉÓÈÏÖÄÅÎÉÑ É
> ÄÁÒÕÅÔ ÉÍ ÍÉÒ
>
> %this sample works, but it's not koi8: Ìèå êàæåòñÿ, ÷òî Êàòÿ ïëîõî ó÷èòñÿ.
> \stoptext
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
Hm, there seems to be a problem somewhere, saving a file on my
computer, uploading it to the web-server, downloading it to your place
and opening it. It is probably the web server that tells it is not
koi8-r but iso8859-1 or something. However, the koi8-r is not yet
working. What is working is the Windows-1251 encoding, as in the
example (ok, type your own russian characters and be sure to save the
file in Windows-1251 encoding). I would recommend though, to use utf-8
as described at http://contextgarden.net/Russian . I should probably
remove my page and refer to the one at contextgarden instead.
I had a conversation with Hans about adding support for koi8r aswell,
but I don't know exactly what to do. If somebody tells me, then I'll
do it.
/Micke P
PS I spoke to another russian I know, who is a Windows person. She
told me that they use the Windows-1251 encoding at her department,
contrary to the first russian I asked who said koi8r was the most
common...
More information about the ntg-context
mailing list