[NTG-context] Russia (cyrillic letters)

Rob Ermers r.ermers at hccnet.nl
Sun Feb 13 11:39:18 CET 2005


Thanks Mikael for your advise.

However, I have a 1000 page document which I have been typesetting in 
Latex thusfar, and I am considering shifting to Context.

There are some other things to say about this project, but the first 
step would be to get koi8 working.

I have attached my sample file.

Kind regards,

Robert

Mikael Persson wrote:
> 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...
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

-------------- next part --------------

\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:

ÂÌÁÇÏÓÌÏ×ÉÔ áÌÌÁÈ ÅÇÏ É ÅÇÏ ÂÌÉÖÎÉÈ ÂÌÁÇÏÒÏÄÎÅÊÛÅÇÏ ÐÒÏÉÓÈÏÖÄÅÎÉÑ É ÄÁÒÕÅÔ ÉÍ ÍÉÒ

%Ìèå êàæåòñÿ, ÷òî Êàòÿ ïëîõî ó÷èòñÿ.
\stoptext


More information about the ntg-context mailing list