minimal example for Cyrillic
Hello! I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e. \enableregime[utf] \useencoding[cyr] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext does transliterate Russian characters. I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice? I persistently claimed that "it must work!" :-) Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------
Am 2008-04-28 um 09:16 schrieb Gour:
I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e.
\enableregime[utf] \useencoding[cyr]
\definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a]
\setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext
does transliterate Russian characters.
I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice?
I persistently claimed that "it must work!" :-)
Since I just adapted a ConTeXt based business card generator to work with cyrillic type, I can assure that it's possible - with XeTeX or LuaTeX. There you just need to encode your sources in UTF-8 and use OpenType fonts that contain cyrillic glyphs, like TeX Gyre. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
"Henning" == Henning Hraban Ramm
writes:
Henning> Since I just adapted a ConTeXt based business card generator to Henning> work with cyrillic type, I can assure that it's possible - with Henning> XeTeX or LuaTeX. That's my conviction as well... Henning> There you just need to encode your sources in UTF-8 and use Henning> OpenType fonts that contain cyrillic glyphs, like TeX Gyre. ...however an (working) example or two would help. The guy tried example (which I posted here) from Contextgarden and based on that concluded that ConTeXt does not support Cyrillic. Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------
On Tue, Apr 29, 2008 at 8:23 AM, Gour
"Henning" == Henning Hraban Ramm
writes: Henning> Since I just adapted a ConTeXt based business card generator to Henning> work with cyrillic type, I can assure that it's possible - with Henning> XeTeX or LuaTeX.
That's my conviction as well... Henning> There you just need to encode your sources in UTF-8 and use Henning> OpenType fonts that contain cyrillic glyphs, like TeX Gyre.
...however an (working) example or two would help.
The guy tried example (which I posted here) from Contextgarden and based on that concluded that ConTeXt does not support Cyrillic.
% engine=luatex \usetypescript[palatino] \setupbodyfont[palatino] \starttext Мама и Папа % Some Russian characters \stoptext Wolfgang
"Wolfgang" ==
writes:
Wolfgang> You could also write Wolfgang> % engine=xetex Wolfgang> or Wolfgang> texexec --xtx myfile Thanks. I know about that and checked that it works with both xetex and luatex, although I'm mostly interested in luatex. Wolfgang> As Hraban told you need a font with the symbols. Right. Therefore it would be nice to have working example on wiki. Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------
On Tue, Apr 29, 2008 at 12:22 PM, Gour
"Wolfgang" ==
writes: Wolfgang> You could also write
Wolfgang> % engine=xetex
Wolfgang> or
Wolfgang> texexec --xtx myfile
Thanks. I know about that and checked that it works with both xetex and luatex, although I'm mostly interested in luatex.
Wolfgang> As Hraban told you need a font with the symbols.
Right. Therefore it would be nice to have working example on wiki.
Gour, Indeed. I was the one creating that page. This was before XeTeX/LuaTeX became popular. I then installed the cm-super fonts where cyrillic letters are available and used them more or less as is explained there. Please update it with the current example. I think everybody agree that the solution from this thread is the way to go. Best regards, Micke P
"Mikael" == Mikael Persson
writes:
Mikael> Please update it with the current example. I think everybody Mikael> agree that the solution from this thread is the way to go. I can update the wiki, but the question is what about those users not using MKIV or XeTeX? Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------
"Wolfgang" ==
writes:
Wolfgang> You could also write Wolfgang> % engine=xetex Wolfgang> or Wolfgang> texexec --xtx myfile Thanks. I know about that and checked that it works with both xetex and luatex, although I'm mostly interested in luatex. Wolfgang> As Hraban told you need a font with the symbols. Right. Therefore it would be nice to have working example on wiki. Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------
\usetypescript[modern-base][t2a] \setupbodyfont[modern] Should work in MkII if you have cm-super font package installed, but doesn't work for me, so I personally use my own typescript with custom fonts. Maybe someone can help me figure out why ConTeXt doesn't try to generate .tfm's for cm-super? Is there some command to increase verbosity? Gour wrote:
Hello!
I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e.
\enableregime[utf] \useencoding[cyr]
\definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a]
\setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext
does transliterate Russian characters.
I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice?
I persistently claimed that "it must work!" :-)
Sincerely, Gour
------------------------------------------------------------------------
___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Best Regards, Oleg Kolosov
Some time ago this example used to work: \enableregime[utf] \usetypescript[modern-base][t2a] \setupbodyfont[modern] \starttext Немного текста. \stopbuffer This requires cm-super package. Unfortunately after some update this stopped working. If someone puts me on a right way to start debugging font loading mechanism I'll try to sort this out. Problem is that map files seem to be loaded, fonts are installed in right places but ConTeXt doesn't try to generate tfm. It just always uses default fonts (LM ones with ec encoding). I've tried varous combinations (\setupencoding, fiddling with typescripts) with no difference. Tried this on MkII, as MkIV seem to require even more tuning. Gour wrote:
Hello!
I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e.
\enableregime[utf] \useencoding[cyr]
\definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a]
\setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext
does transliterate Russian characters.
I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice?
I persistently claimed that "it must work!" :-)
Sincerely, Gour
------------------------------------------------------------------------
___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Best Regards, Oleg Kolosov
Hi, Radhelorn wrote:
Some time ago this example used to work:
\enableregime[utf]
\usetypescript[modern-base][t2a] \setupbodyfont[modern]
\starttext Немного текста. \stopbuffer
This requires cm-super package. Unfortunately after some update this stopped working.
Here is a patched version of type-one.tex that should make this work once again. Please report back, so Hans will know if it is safe to replace the file in the distribution. Best wishes, Taco
participants (7)
-
Gour
-
Henning Hraban Ramm
-
Mikael Persson
-
Oleg Kolosov
-
Radhelorn
-
Taco Hoekwater
-
Wolfgang Schuster