2009/11/8 Vyatcheslav Yatskovsky:
>
> The problem is with math font setup. If I use default math font, two
> problems arise:
>
> 1) Greek letters are slanted, while they supposed by our standards to be
> straight.

Something like \mr could work in mkiv, but I don't think that it does.
(But should be easy to fix.)

> 2) Cyrillic does not work in math,

How do you expect it to work? Just return italic cyrilic letters?
Maybe Taco knows it better - do "any letters from the font" need to
have extra parameters to be usable with math? You can of course use
   $\text{\it some cyrilic here}$
at any time.

> while some indexes are in Ukrainian.
>
> I also try to setup Times New Roman (from Windows) to replace default math
> font. This would be perfect solution for me, but I've lost completely.
>
> For my current point, I found that my TimesNR typescript behaves just like
> Gyre-Termes, so you can experiment on the latter (without need of Windows).
> This is my minimal example (see attachment also):
>
> \usetypescript[termes]\setupbodyfont[termes, 14pt]
> \starttext
> $this this math text$
> \stoptext
>
> The main problem is that Latin letters in math are not slanted at all! I
> only found that some tricky conversion is done by original-youngryu-tx.map ,

I don't if this file is used in mkiv, but then I'm not sure how these
tfm files work without map files at all.

> but it's far beyond my understanding to fix something in it.

There is one line that definitely needs to be fixed, but I have no idea how.

Here:

mathematics.make_font ( "tx-math", {
    { name = "texgyretermes-regular.otf", features = "virtualmath",
main = true },
    { name = "rtxr.tfm", vector = "tex-mr" } ,

this line:
    { name = "rtxmi.tfm", vector = "tex-mi", skewchar=0x7F },
might need to become:
    { name = "txmi.tfm", vector = "tex-mi", skewchar=0x7F },

    { name = "txsy.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
    { name = "txex.tfm", vector = "tex-ex", extension = true } ,
    { name = "txsya.tfm", vector = "tex-ma" },
    { name = "txsyb.tfm", vector = "tex-mb" },
} )

But if I change that then nothing happens. Maybe the reason is that
MKIV does not read map files and consequently has no idea what to do
with txmi(.tfm) that comes from rtxmi.pfb, or at least one would need
to rewrite "tex-mi" for times.

I don't know yet how to do it (I don't know how luatex reads in pfb
files with characters with non-standard names). This support is
definitely missing from the ConTeXt core and needs both a tiny help
from Hans' hands and someone writing a vector (or some other trick to
make the original tfm file work).

Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to