ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Installing Cyrillic font
       [not found] <mailman.0.1167056120.20293.ntg-context@ntg.nl>
@ 2006-12-25 14:27 ` Taco Hoekwater
  2006-12-26 22:56   ` Vyatcheslav Yatskovsky
  0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2006-12-25 14:27 UTC (permalink / raw)


Hi Vyatcheslav,

(I intercepted your message because it was a bit too big for the list)


 From Vyatcheslav Yatskovsky <yatskovsky@gmail.com>:
> 
> This is the INF file for my Times-Roman:
> 
> FontName (Times-Roman)
> FullName (Times Roman)
> AppleName (Times)
> AppleFONDID 20
> FamilyName (Times)
> version (001.007)
> isFixedPitch false
> CharacterSet (isoadobe)
> Encoding (StandardEncoding)
> ItalicAngle 0
> CapHeight 662
> UnderlinePosition -100
> UnderlineThickness 50
> StemWidth 84
> Serif true
> Pi false
> SuperiorBaseline 270
> MSMenuName (Times)
> VPMenuName (Times Roman)
> WORDMenuName (Times)
> VPTypefaceID 14
> VPStyle (N)
> PCFileNamePrefix (TIR__)
> PCLTypefaceID 20485
> PCLStrokeWeight 0
> PCLStyle 0

I am sorry to say that this really looks like the INF of the standard
Times-Roman font that does not have cyrillic glyphs (and the same was
true of your log file).

Can you explain to the people on the list how you could successfully
use cyrillic, what operating system you are using, and in which
previewer exactly?

I myself am lost as to what is going wrong exactly, but I find it
hard to believe that the previewer is using tir_____.pfb, from the
information you have provided so far.

Best, Taco

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

* Re: Installing Cyrillic font
  2006-12-25 14:27 ` Installing Cyrillic font Taco Hoekwater
@ 2006-12-26 22:56   ` Vyatcheslav Yatskovsky
  2006-12-27  0:06     ` Mojca Miklavec
  0 siblings, 1 reply; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-26 22:56 UTC (permalink / raw)


> I am sorry to say that this really looks like the INF of the standard
> Times-Roman font that does not have cyrillic glyphs (and the same was
> true of your log file).

Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed Cyrillic text in a font preview mode (probably, substituted?). The font (tir_____.pfb) itself doesn't contain any Cyrillic glyphs, indeed. Thanks a lot for your point. 

I've abandon the Adobe font and installed Times-Roman from the  collection located at at http://freshmeat.net/projects/urw-fonts-cyrillic. Texfont has performed its job excellent and now I'm able to typeset Russian. (The filenames for Times-Roman are n021003l.afm, n021004l.afm, n021023l.afm and n021024l.afm)

However, now that Russian seems OK I have stuck with Ukrainian. Despite the fact that this font DOES contain all Ukrainian-specific glyphs (Ie, I, and Yi; if you never saw them then see http://www.alanwood.net/demos/wgl4.html), They cause errors and are replaced by wrong symbols in the output pdf file.

My test script is the following
...........................................

\loadmapfile[t2a-urw-timescyr.map]

\font\myfirstfont=t2a-n021003l
\myfirstfont

\starttext

 Hello world!

 Привет, мир!

 Добрий день, свiтове! 
 
 Ukrainian-specific letter are {ЄєIiЇї}

% \showcharacters

\stoptext


And the log file is
....................................
This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=cont-en 2006.12.25)  27 DEC 2006 00:50
entering extended mode
**test7timescyr.tex \emergencyend
(test7timescyr.tex

ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials        : loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials        : loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are disabled
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems         : begin file test7timescyr at line 12
Missing character: There is no ? in font t2a-n021003l!
Missing character: There is no к in font t2a-n021003l!
Missing character: There is no ? in font t2a-n021003l!
fonts           : resetting map file list
fonts           : using map file: lm-texnansi
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
fonts           : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems         : end file test7timescyr at line 24
system          : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <


Best regards, Vyatcheslav
(A happy user of MikTeX 2.5.)

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Installing Cyrillic font
  2006-12-26 22:56   ` Vyatcheslav Yatskovsky
@ 2006-12-27  0:06     ` Mojca Miklavec
       [not found]       ` <286732239.20061227023101@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2006-12-27  0:06 UTC (permalink / raw)


On 12/26/06, Vyatcheslav Yatskovsky wrote:
> > I am sorry to say that this really looks like the INF of the standard
> > Times-Roman font that does not have cyrillic glyphs (and the same was
> > true of your log file).
>
> Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed Cyrillic text in a font preview mode (probably, substituted?). The font (tir_____.pfb) itself doesn't contain any Cyrillic glyphs, indeed. Thanks a lot for your point.
>
> I've abandon the Adobe font and installed Times-Roman from the  collection located at at http://freshmeat.net/projects/urw-fonts-cyrillic. Texfont has performed its job excellent and now I'm able to typeset Russian. (The filenames for Times-Roman are n021003l.afm, n021004l.afm, n021023l.afm and n021024l.afm)
>
> However, now that Russian seems OK I have stuck with Ukrainian. Despite the fact that this font DOES contain all Ukrainian-specific glyphs (Ie, I, and Yi; if you never saw them then see http://www.alanwood.net/demos/wgl4.html), They cause errors and are replaced by wrong symbols in the output pdf file.
>
> My test script is the following
> ...........................................
>
> \loadmapfile[t2a-urw-timescyr.map]
>
> \font\myfirstfont=t2a-n021003l
> \myfirstfont
>
> \starttext
>
>  Hello world!
>
>  Привет, мир!
>
>  Добрий день, свiтове!
>
>  Ukrainian-specific letter are {ЄєIiЇї}
>
> % \showcharacters
>
> \stoptext

I might have missed the point completely, but do you set the file
encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
anywhere? I didn't try your examples, but unless you set this
somewhere cyrilic glyphs unlikely to work properly.

Mojca
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Fwd: Re[2]:  Installing Cyrillic font
       [not found]       ` <286732239.20061227023101@gmail.com>
@ 2006-12-27  1:32         ` Vyatcheslav Yatskovsky
  2006-12-27  1:33         ` Vyatcheslav Yatskovsky
  2006-12-27  1:54         ` Mojca Miklavec
  2 siblings, 0 replies; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-27  1:32 UTC (permalink / raw)


> I might have missed the point completely, but do you set the file
> encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> anywhere? I didn't try your examples, but unless you set this
> somewhere cyrilic glyphs unlikely to work properly.

Thank you, Mojca.

No, I didn't set the encoding and let me explain why. 

When I put \enableregime[cp1251] (I use that very encoding) at the top of my script, the output represents transliterated text (all Cyrillic glyphs are replaced with corresponding Latin letters). I didn't consider it strange until you pointed that to me. Here the .log file of the 'transliterated' document:


ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials        : loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials        : loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are disabled
encoding        : coding cp1251 is loaded
(E:\MiKTeX\tex\context\base\regi-cp1251.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems         : begin file test7timescyr at line 14
fonts           : resetting map file list
fonts           : using map file: lm-texnansi
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
fonts           : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems         : end file test7timescyr at line 26
system          : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <

) ) 
Here is how much of TeX's memory you used:
 1337 strings out of 57725
 21657 string characters out of 577460
 590834 words of memory out of 1079821
 40050 multiletter control sequences out of 60000
 76275 words of font info for 39 fonts, out of 1000000 for 2000
 192 hyphenation exceptions out of 8191
 51i,18n,51p,264b,540s stack positions out of 5000i,500n,10000p,200000b,32768s
PDF statistics:
 11 PDF objects out of 300000
 0 named destinations out of 300000
 5 words of extra memory for PDF output out of 10000
{t2a.enc}<E:/texmf/fonts/type1/urw/timescyr/n021003l.pfb>{lm-ec.enc}<E:/MiKT
eX/fonts/type1/public/lm/lmr12.pfb>
Output written on test7timescyr.pdf (1 page, 32893 bytes).

-- 
Best regards,
 Vyatcheslav                            

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

* Re: Installing Cyrillic font
       [not found]       ` <286732239.20061227023101@gmail.com>
  2006-12-27  1:32         ` Fwd: Re[2]: " Vyatcheslav Yatskovsky
@ 2006-12-27  1:33         ` Vyatcheslav Yatskovsky
  2006-12-27  1:54         ` Mojca Miklavec
  2 siblings, 0 replies; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-27  1:33 UTC (permalink / raw)


> I might have missed the point completely, but do you set the file
> encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> anywhere? I didn't try your examples, but unless you set this
> somewhere cyrilic glyphs unlikely to work properly.

Thank you, Mojca.

No, I didn't set the encoding and let me explain why. 

When I put \enableregime[cp1251] (I use that very encoding) at the top of my script, the output represents transliterated text (all Cyrillic glyphs are replaced with corresponding Latin letters). I didn't consider it strange until you pointed that to me. Here the .log file of the 'transliterated' document:


ConTeXt  ver: 2006.07.14 12:08  fmt: 2006.12.25  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(E:\MiKTeX\tex\context\base\cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(E:\MiKTeX\tex\context\base\cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(E:\MiKTeX\tex\context\base\cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(E:\MiKTeX\tex\context\user\cont-sys.rme
(E:\MiKTeX\tex\context\base\type-exa.tex)
(E:\MiKTeX\tex\context\base\type-syn.tex)
(E:\MiKTeX\tex\context\base\type-enc.tex)
(E:\MiKTeX\tex\context\base\type-siz.tex)
(E:\MiKTeX\tex\context\base\type-map.tex)
(E:\MiKTeX\tex\context\base\type-spe.tex)
(E:\MiKTeX\tex\context\base\type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
system          : test7timescyr.top loaded
(D:\~~\test7timescyr.top
specials        : loading definition file tpd
(E:\MiKTeX\tex\context\base\spec-tpd.tex
specials        : loading definition file fdf
(E:\MiKTeX\tex\context\base\spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
systems         : system commands are disabled
encoding        : coding cp1251 is loaded
(E:\MiKTeX\tex\context\base\regi-cp1251.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo) (D:\~~\test7timescyr.tuo)
(E:\MiKTeX\tex\context\base\sort-def.tex)
(E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\~~\test7timescyr.tuo)
(D:\~~\test7timescyr.tuo)
systems         : begin file test7timescyr at line 14
fonts           : resetting map file list
fonts           : using map file: lm-texnansi
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
fonts           : using map file: t2a-urw-timescyr
(E:\MiKTeX\tex\context\base\pdfr-ec.tex) [1.1{original-empty.map}{lm-texnansi.m
ap}{original-base.map}{ec-public-lm.map}{ec-base.map}{8r-base.map}{t5-base.map}
{original-ams-base.map}{original-ams-euler.map}{original-public-lm.map}{t2a-urw
-timescyr.map}]
systems         : end file test7timescyr at line 26
system          : cont-err loaded
(E:\MiKTeX\tex\context\base\cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <

) ) 
Here is how much of TeX's memory you used:
 1337 strings out of 57725
 21657 string characters out of 577460
 590834 words of memory out of 1079821
 40050 multiletter control sequences out of 60000
 76275 words of font info for 39 fonts, out of 1000000 for 2000
 192 hyphenation exceptions out of 8191
 51i,18n,51p,264b,540s stack positions out of 5000i,500n,10000p,200000b,32768s
PDF statistics:
 11 PDF objects out of 300000
 0 named destinations out of 300000
 5 words of extra memory for PDF output out of 10000
{t2a.enc}<E:/texmf/fonts/type1/urw/timescyr/n021003l.pfb>{lm-ec.enc}<E:/MiKT
eX/fonts/type1/public/lm/lmr12.pfb>
Output written on test7timescyr.pdf (1 page, 32893 bytes).

-- 
Best regards,
 Vyatcheslav                            

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

* Re: Installing Cyrillic font
       [not found]       ` <286732239.20061227023101@gmail.com>
  2006-12-27  1:32         ` Fwd: Re[2]: " Vyatcheslav Yatskovsky
  2006-12-27  1:33         ` Vyatcheslav Yatskovsky
@ 2006-12-27  1:54         ` Mojca Miklavec
  2 siblings, 0 replies; 10+ messages in thread
From: Mojca Miklavec @ 2006-12-27  1:54 UTC (permalink / raw)
  Cc: Yatskovsky

On 12/27/06, Vyatcheslav Yatskovsky wrote:
>
> > I might have missed the point completely, but do you set the file
> > encoding anywhere, such as \enableregime[cp1251] (= windows-1251)
> > anywhere? I didn't try your examples, but unless you set this
> > somewhere cyrilic glyphs unlikely to work properly.
>
> Thank you, Mojca.
>
> No, I didn't set the encoding and let me explain why.
>
> When I put \enableregime[cp1251] (I use that very encoding) at the top of my
> script, the output represents transliterated text (all Cyrillic glyphs are
> replaced with corresponding Latin letters). I didn't consider it strange
> until you pointed that to me. Here the .log file of the 'transliterated'

That's "normal". The problems is that you didn't specify the proper
encoding of your font, so TeX doesn't know that your font is cyrillic.

\font\myfirstfont=t2a-n021003l
\myfirstfont

is a plain TeX command, you have to use a ConTeXt command for that.

This is a way to go then:

\starttypescript [map] [timescyr] [t2a]
  \loadmapfile [\typescriptthree-urw-timescyr.map]
\stoptypescript

\starttypescript [serif] [timescyr] [name]
  \definefontsynonym [Serif] [...]
\stoptypescript

\starttypescript [serif] [timescyr] [t2a]
  \definefontsynonym [...] [\typescriptthree-progbot]
[encoding=\typescriptthree]
\stoptypescript

\starttypescript [serif] [t2a]
  \definetypeface [...] [rm] [serif] [timescyr] [default]
[encoding=\typescripttwo]
\stoptypescript

That's only a rought sketch. If you don't get any further using the
existing documentation and wiki, and if nobody else is willing to
help, I can try to complete the definitions if you ask again, but
someone is willing to do that instead ... I won't object.

(Although I suspect that there is a shorter way to tell to TeX which
encoding is being used for a specific font.)

Mojca

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

* Re: Installing Cyrillic font
@ 2006-12-28 23:16 Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-28 23:16 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1402 bytes --]

Hello all,

Thanks to everybody, but I've already written the asked typescript for my installed Cyrillic font (NimbusRomanNo9L). 

Look at my script, if you interested in. 

---
\enableregime[cp1251]

\loadmapfile [t2a-urw-timescyr.map]
\usetypescriptfile[type-buy]

    \starttypescript [serif] [timescyr] [name]
      \usetypescript[serif][fallback]
      \definefontsynonym [Serif]           [NimbusNo9L-Roman]
      \definefontsynonym [SerifBold]       [NimbusNo9L-Bold]
      \definefontsynonym [SerifItalic]     [NimbusNo9L-Italic]
      \definefontsynonym [SerifBoldItalic] [NimbusNo9L-Bold-Italic]
    \stoptypescript

    \starttypescript [serif] [timescyr] [t2a]
      \definefontsynonym [NimbusNo9L-Roman]       [t2a-n021003l]  [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Bold]        [t2a-n021004l]  [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Italic]      [t2a-n021023l] [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Bold-Italic] [t2a-n021024l] [encoding=t2a]
    \stoptypescript

\definetypeface [myTimesCyr] [rm] [serif] [timescyr] [default] [encoding=t2a]
\setupbodyfont[myTimesCyr]
---

Ukrainian works as good as Russian; font variants could be selected as well.

I haven't tested the script as a separate file yet. Suggestions are welcome!

-- 
Best regards,
 Vyatcheslav                          mailto:yatskovsky@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 4683 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Installing Cyrillic font
@ 2006-12-28 18:35 Vyatcheslav Yatskovsky
  0 siblings, 0 replies; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-28 18:35 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 2639 bytes --]

Hello all,

I've made some progress with your help. (and esp. Mojca's)

Following the guidelines from http://home.salamander.com/~wmcclain/context-help.html,
I 've defined the Regular font as

\enableregime[cp1251]
\loadmapfile [t2a-urw-timescyr.map]
\definefontsynonym[NimbusRomanNo9L-Regu][t2a-n021003l][encoding=t2a]
\definefont[TimesCyr][NimbusRomanNo9L-Regu at 15pt]

\starttext
\TimesCyr
...

and it works OK unless I need Bold or Italic.

Now that I define the font in 'proper' way, using typescripts,

  \enableregime[cp1251]

    \usetypescriptfile[type-buy]
    \loadmapfile [t2a-urw-timescyr.map]

    \starttypescript [serif] [NimbusNo9L] [t2a]
      \definefontsynonym [NimbusNo9L-Roman]       [t2a-n021003l]  [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Bold]        [t2a-n021004l]  [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Italic]      [t2a-n021023l] [encoding=t2a]
      \definefontsynonym [NimbusNo9L-Bold-Italic] [t2a-n021024l] [encoding=t2a]
    \stoptypescript

    \starttypescript [serif] [timescyr] [name]
      \usetypescript[serif][fallback]
      \definefontsynonym [Serif]           [NimbusNo9L-Roman]
      \definefontsynonym [SerifBold]       [NimbusNo9L-Bold]
      \definefontsynonym [SerifItalic]     [NimbusNo9L-Italic]
      \definefontsynonym [SerifBoldItalic] [NimbusNo9L-Bold-Italic]
    \stoptypescript

    \starttypescript [TimesCyr] 
      \definetypeface [TimesCyr] [rm] [serif] [timescyr] [default] [encoding=t2a]
    \stoptypescript
 
    \usetypescript[TimesCyr]
    \setupbodyfont[TimesCyr]

\starttext
....


the texexec fails and I cannot figure out why. The log file says me


! Font \*TimesCyr12ptrmtf*:=NimbusNo9L-Roman at 12.0pt not loadable: Metric (TF
M) file not found.
<to be read again> 
                   \relax 
\xxdododefinefont ...tspec {#4}\newfontidentifier 
                                                  \let \localrelativefontsiz...

\fontstrategy ...me \fontclass #2#3#4#5\endcsname 
                                                  \tryingfontfalse \fi 
<inserted text> ...yle \fontalternative \fontsize 
                                                  \fi \iftryingfont \fontstr...

\synchronizefont ...strategy \the \fontstrategies 
                                                  \relax \fi \iftryingfont \...
<argument> \getvalue {\@style@ \fontstyle }
                                           \edef \fontstyle {\fontstyle }\if...
...
l.32     \setupbodyfont[TimesCyr]
                                 
? 
-- 
Best regards,
 Vyatcheslav                          

[-- Attachment #1.2: Type: text/html, Size: 7618 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Installing Cyrillic font
  2006-12-25  1:20 ` Vyatcheslav Yatskovsky
@ 2006-12-25 11:12   ` Taco Hoekwater
  0 siblings, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2006-12-25 11:12 UTC (permalink / raw)



Hi,

Vyatcheslav Yatskovsky wrote:
> Hello
> 
> I'm looking for help with installing the Adobe Times font with
> Cyrillic support.
> 
> I have TIR_____.PFB and all other companion files. It surely contains
> Cyrillic glyphs because I can type Russian using a font viewer. I run
> the texfont utility as follows

> texfont  -fontroot=e:/texmf --sourcepath=. --vendor=adobe
> --encoding=t2a --collection=timescyr --makepath --install
> 
> and it performs good. But created t2a-adobe-timescyr.pdf test file
> shows no Cyrillic glyphs (it seems like there are vacant empty spaces
> from 192 to 255). Also I cannot make use of Russian in my context
> scripts. (Latin goes well)

Assuming your copy of TIR_____.PFB really has cyrillic (I am a bit
   suspicious because mine doesn't, and Adobe's website says that the
   character set for "Times Std" is "Adobe Western 2", and that
   charset doesn't contain cyrillic at all.
   But I could be wrong and/or just confused by the file name):

The most likely problem is that you do not have a correct .enc file
(the log of the t2a-adobe-timescyr.tex pdftex run would definately
help).

Best, Taco

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

* Installing Cyrillic font
       [not found] <mailman.9628.1166815235.2161.ntg-context@ntg.nl>
@ 2006-12-25  1:20 ` Vyatcheslav Yatskovsky
  2006-12-25 11:12   ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-25  1:20 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 716 bytes --]

Hello

I'm looking for help with installing the Adobe Times font with Cyrillic support.

I have TIR_____.PFB and all other companion files. It surely contains Cyrillic glyphs because I can type Russian using a font viewer.  
I run the texfont utility as follows

texfont  -fontroot=e:/texmf --sourcepath=. --vendor=adobe  --encoding=t2a --collection=timescyr --makepath --install

and it performs good. But created t2a-adobe-timescyr.pdf test file shows no Cyrillic glyphs (it seems like there are vacant empty spaces from 192 to 255). Also I cannot make use of Russian in my context scripts. (Latin goes well)

I'm ready to send any additional relevant info.

Best regards, 
Vyatcheslav Yatskovsky


[-- Attachment #1.2: Type: text/html, Size: 2846 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-12-28 23:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.0.1167056120.20293.ntg-context@ntg.nl>
2006-12-25 14:27 ` Installing Cyrillic font Taco Hoekwater
2006-12-26 22:56   ` Vyatcheslav Yatskovsky
2006-12-27  0:06     ` Mojca Miklavec
     [not found]       ` <286732239.20061227023101@gmail.com>
2006-12-27  1:32         ` Fwd: Re[2]: " Vyatcheslav Yatskovsky
2006-12-27  1:33         ` Vyatcheslav Yatskovsky
2006-12-27  1:54         ` Mojca Miklavec
2006-12-28 23:16 Vyatcheslav Yatskovsky
  -- strict thread matches above, loose matches on Subject: below --
2006-12-28 18:35 Vyatcheslav Yatskovsky
     [not found] <mailman.9628.1166815235.2161.ntg-context@ntg.nl>
2006-12-25  1:20 ` Vyatcheslav Yatskovsky
2006-12-25 11:12   ` Taco Hoekwater

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