ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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
[parent not found: <mailman.9628.1166815235.2161.ntg-context@ntg.nl>]

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