Re: [NTG-context] Does ConTeXt really support russian language?
So far I have tried using pdfetex: Sample 1: \enableregime[utf] \usemodule[lang-cyr] \mainlanguage[ru] \usetypescript[postscript][t2a] \setupbodyfont[postscript, 12pt] This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters. Sample 2: \enableregime[utf] \mainlanguage[ru] \usetypescript[antykwa-torunska][t2a] \setupbodyfont[antykwa, 12pt] Works on ConTeXt Minimals, but does not work on TeX Live 2008 and teTeX 3.0. Latin transliteration instead of Cyrillic letters. Sample 3: \enableregime[utf] \mainlanguage[ru] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont [russian] This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters. In there a solution that will work on every of three distributions?
Dear Andrey and All, On Thu, 25 Dec 2008, Andrey Riabushenko wrote:
Works on ConTeXt Minimals, but does not work on TeX Live 2008 and teTeX 3.0.
In there a solution that will work on every of three distributions?
teTeX is abandoned by te and is considered obsolete, is not it? Is really teTeX compatibility desired or required anywhere? Sincerely, Michail
Andrey Riabushenko wrote:
In there a solution that will work on every of three distributions?
If anything at all works on tetex, it is accidental and unsupported. Tetex itself is abandoned, and even in the old days the context support in it was suboptimal. Best wishes, Taco
On Thu, Dec 25, 2008 at 10:01 AM, Andrey Riabushenko wrote:
So far I have tried using pdfetex:
Sample 1: \enableregime[utf] \usemodule[lang-cyr]
\mainlanguage[ru]
\usetypescript[postscript][t2a] \setupbodyfont[postscript, 12pt]
This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters.
Just this (isn't lang-cyr already loaded by the format?): \enableregime[utf-8] \mainlanguage[ru] \usetypescript[postscript][t2a] \setupbodyfont[postscript,12pt] Just to make it clear: - you need to forget about trying to make it work on teTeX unless you are willing to handle *lots* of issues on your own - you can make most examples work on TeX Live 2008, but you might need to update ConTeXt - minimals don't include cm-super fonts, but if you add them yoursef, they should work - there might be some patches needed in ConTeXt - very few people use Cyrillic with ConTeXt, thus it's not too well tested, but this can be changed within hours or days; if you use minimals, you can update almost instantly To make this example work, you need to change the following definitions: In type-one.tex ([minimals or /usr/local/texlive/2008/texmf-dist]/tex/context/base/type-one.tex) change this line: \starttypescript [postscript] [texnansi,ec,qx,t5,8r,t2a] % add t2a \definetypeface [postscript] [rm] [serif] [times] [default] [encoding=\typescripttwo] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9,encoding=\typescripttwo] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1,encoding=\typescripttwo] \definetypeface [postscript] [mm] [math] [times] [default] \usemathcollection[default] \quittypescriptscanning \stoptypescript then run "texexec --make en". This will still give you some problems like this one: ! Font \*postscript7ptrmscrm*:=t2a-qtmr-sc at 7.0pt not loadable: Metric (TFM) file not found. (You may ignore those messages.) Hans/Taco, where's the best place to fix Small Caps mapping for Cyrillic?
Sample 2:
\enableregime[utf] \mainlanguage[ru]
\usetypescript[antykwa-torunska][t2a] \setupbodyfont[antykwa, 12pt]
Works on ConTeXt Minimals, but does not work on TeX Live 2008 and teTeX 3.0. Latin transliteration instead of Cyrillic letters.
You may forget teTeX. I'm impressed that it fails on TeX Live 2008. It works here, but I updated ConTeXt at some point (quite a while ago). Can you send me the log?
Sample 3: \enableregime[utf] \mainlanguage[ru] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont [russian]
This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters.
This needs to be fixed in ConTeXt core.
In there a solution that will work on every of three distributions?
It can be made to work on minimals and TeX Live 2008, but you need to keep one thing in mind: if the issues get fixed, you need to update ConTeXt. From that point of view you can automatically fetch updates if you are using minimals, while you need to update ConTeXt semi-manually on TeX Live. (The problem of LaTeX is that such fixes would not be updated for a long time. The problem of ConTeXt is that if you need updates, these updates get into the core rather quickly, but if you want to convince other people to use your code you need to convince them to update first.) Mojca
Am 25.12.2008 um 13:21 schrieb Mojca Miklavec:
Sample 3: \enableregime[utf] \mainlanguage[ru] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont [russian]
This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters.
This needs to be fixed in ConTeXt core.
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files). Wolfgang
On Thu, Dec 25, 2008 at 1:46 PM, Wolfgang Schuster wrote:
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files).
I didn't plan to add cm-super. Is cm-unicode the same as cm-super, but without opticals and in other format? Mojca
Am 25.12.2008 um 14:31 schrieb Mojca Miklavec:
On Thu, Dec 25, 2008 at 1:46 PM, Wolfgang Schuster wrote:
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files).
I didn't plan to add cm-super. Is cm-unicode the same as cm-super, but without opticals and in other format?
More or less, the are converted from the original CM fonts in MetaFont to OpenType with mftrace. The package has what Latin Modern lacks, support for cyrillic and the Concrete and CM Bright fonts in OpenType format. Wolfgang
Mojca Miklavec wrote:
On Thu, Dec 25, 2008 at 1:46 PM, Wolfgang Schuster wrote:
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files).
I didn't plan to add cm-super. Is cm-unicode the same as cm-super, but without opticals and in other format?
Be warned that adding otfs doesn't help mkii at all. Best wishes, Taco
Am 25.12.2008 um 14:52 schrieb Taco Hoekwater:
Mojca Miklavec wrote:
On Thu, Dec 25, 2008 at 1:46 PM, Wolfgang Schuster wrote:
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files). I didn't plan to add cm-super. Is cm-unicode the same as cm-super, but without opticals and in other format?
Be warned that adding otfs doesn't help mkii at all.
I made also tfm files for t2a encoding and pfb files to reduce the file size of the document. If one of you want the files I can send you them. Wolfgang
On Thu, Dec 25, 2008 at 4:12 PM, Wolfgang Schuster wrote:
Am 25.12.2008 um 14:52 schrieb Taco Hoekwater:
Mojca Miklavec wrote:
On Thu, Dec 25, 2008 at 1:46 PM, Wolfgang Schuster wrote:
I think it's better to use Computer Modern Unicode before you add the cm-super fonts to the minimals, I wrote typescripts for MkIV and also one for MKII with t2a encoding. I can send you the files if you need them, the font files can be downloaded from http://canopus.iacp.dvo.ru/~panov/cm-unicode/ (you need the otf files).
I didn't plan to add cm-super. Is cm-unicode the same as cm-super, but without opticals and in other format?
Be warned that adding otfs doesn't help mkii at all.
I made also tfm files for t2a encoding and pfb files to reduce the file size of the document. If one of you want the files I can send you them.
I'm still curious: what's the difference between cm-super and cm-unicode (apart from size and different format)? One thing that I would like to see preserved within minimals is "full compatibility" in the sense that what works in minimals should also work on TeX Live and MikTeX. Maybe not today because TeX Live is outdated and MikTeX dropped support for ConTeXt for some unpredictable amount of time, but a year later or if someone updates ConTeXt in TeX Live.) In the old ConTeXt distribution there were lots of files that were not present anywhere else, so what worked in the ConTeXt distribution did not work in TeX Live or Minimals which is a pity. Such incompatibilities should be solved in other ways. So I would prefer to add packages that are on CTAN (or are planned to go there) and have some potential to become part of MikTeX and TeX Live. Is anyone working on cm-unicode being added to CTAN (preferrably in TDS-compliant way)? Does that make sense? Mojca
Am 25.12.2008 um 16:49 schrieb Mojca Miklavec:
I'm still curious: what's the difference between cm-super and cm-unicode (apart from size and different format)?
cm-super: type1 cm-unicode: opentype Their main purpose is to create free good quality fonts for use in X applications supporting many languages. (cm unicode [1])
One thing that I would like to see preserved within minimals is "full compatibility" in the sense that what works in minimals should also work on TeX Live and MikTeX. Maybe not today because TeX Live is outdated and MikTeX dropped support for ConTeXt for some unpredictable amount of time, but a year later or if someone updates ConTeXt in TeX Live.)
In the old ConTeXt distribution there were lots of files that were not present anywhere else, so what worked in the ConTeXt distribution did not work in TeX Live or Minimals which is a pity. Such incompatibilities should be solved in other ways.
So I would prefer to add packages that are on CTAN (or are planned to go there) and have some potential to become part of MikTeX and TeX Live. Is anyone working on cm-unicode being added to CTAN (preferrably in TDS-compliant way)? Does that make sense?
I can make a package and put it on CTAN but the question is, do you want them in the minimals, do we need type1 files and if yes for which encodings, only t2a or more. [1] http://canopus.iacp.dvo.ru/%7Epanov/cm-unicode/ Wolfgang
Wolfgang Schuster wrote:
Am 25.12.2008 um 16:49 schrieb Mojca Miklavec:
I'm still curious: what's the difference between cm-super and cm-unicode (apart from size and different format)?
cm-super: type1 cm-unicode: opentype
Their main purpose is to create free good quality fonts for use in X applications supporting many languages. (cm unicode [1])
One thing that I would like to see preserved within minimals is "full compatibility" in the sense that what works in minimals should also work on TeX Live and MikTeX. Maybe not today because TeX Live is outdated and MikTeX dropped support for ConTeXt for some unpredictable amount of time, but a year later or if someone updates ConTeXt in TeX Live.)
In the old ConTeXt distribution there were lots of files that were not present anywhere else, so what worked in the ConTeXt distribution did not work in TeX Live or Minimals which is a pity. Such incompatibilities should be solved in other ways.
So I would prefer to add packages that are on CTAN (or are planned to go there) and have some potential to become part of MikTeX and TeX Live. Is anyone working on cm-unicode being added to CTAN (preferrably in TDS-compliant way)? Does that make sense?
I can make a package and put it on CTAN but the question is, do you want them in the minimals, do we need type1 files and if yes for which encodings, only t2a or more.
the problem with cmsuper is that as soon as we start adding that the minimals get bloated; for that reason some time ago we had only a small subset ... only 10 pt sized for cmsuper and cbgreek (and then one should use the generic 10 pt design size typescript instead of the cm scaled ones); after all, the traces are suboptimal anyway however, the best would be - to add cyrillic to lm and all gyre fonts - but for that to happen we need to have the proper shapes now, for gyre there is some support but its suboptimal (as it seems hard to get cytillic users organized to support this development and do the needed QA) for lm i can imagine that we try to 'launch' a project that makes it happen but this can only be done if there is some real input from the cyrillic user community so, the bottom line is: if you want cyrillic in these fonts, then get organized and it might happen Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thu, Dec 25, 2008 at 1:21 PM, Mojca Miklavec wrote:
On Thu, Dec 25, 2008 at 10:01 AM, Andrey Riabushenko wrote:
Sample 3: \enableregime[utf] \mainlanguage[ru] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont [russian]
This one doesn't work on any of three systems described earlier. Latin transliteration instead of Cyrillic letters.
This needs to be fixed in ConTeXt core.
I'm sorry. Misinformation. You either need to add the fonts to minimals or update ConTeXt in TeX Live and then it will work. You can run this command for example (single line, you might need to be root to be able to do it): rsync -av rsync://contextgarden.net/minimals/current/context/beta/ /usr/local/texlive/2008/texmf-dist/ Mojca
participants (6)
-
Andrey Riabushenko
-
Hans Hagen
-
Michail Vidiassov
-
Mojca Miklavec
-
Taco Hoekwater
-
Wolfgang Schuster