ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math setup with Times (Termes)
Date: Thu, 12 Nov 2009 14:45:12 +0100	[thread overview]
Message-ID: <6faad9f00911120545t1ec122b8qfa37ade1a8276a2f@mail.gmail.com> (raw)
In-Reply-To: <6faad9f00911120444n1c1aa67bif6e62e394a1d8f9c@mail.gmail.com>

On Thu, Nov 12, 2009 at 13:44, Mojca Miklavec wrote:
> Hans,
>
> When does the mapping to 0x1D44E happen for LM and Termes in mkiv?
> (= MATHEMATICAL ITALIC SMALL A)

Oh, I see it now. At this point:
    fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E)
the letters from tex-mi are copied to math italic, but in case of
txfonts and the chosen subset of glyphs this region is empty, so
ConTeXt most probably just falls back to "normal a" from the main
regular font, but those characters should come from the italic font
instead (I don't know if additional metrics are needed or not).

I tried to do the following for example:

fonts.enc.math["tex-mi2"] = {
}
-- now that all other vectors are defined ...
fonts.vf.math.set_letters(fonts.enc.math, "tex-mi", 0x1D434, 0x1D44E)
fonts.vf.math.set_letters(fonts.enc.math, "tex-mi2", 0x1D434, 0x1D44E)

mathematics.make_font ( "tx-math", {
    { name = "texgyretermes-regular.otf", features = "virtualmath",
main = true },
    { name = "rtxr.tfm", vector = "tex-mr" } ,
    { name = "rtxmi.tfm", vector = "tex-mi", skewchar=0x7F },
    { name = "texgyretermes-italic.otf", vector = "tex-mi2", 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" },
} )

I now get italic math (but roman h for example). So this needs to be
fixed a bit, but it's the right direction at least. (Though it might
be better to use generic names like "regular" or "italic" for name= in
case that users try to use some other times-like base font for
example.)

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	other threads:[~2009-11-12 13:45 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.329.1257669716.22155.ntg-context@ntg.nl>
2009-11-08 21:00 ` Vyatcheslav Yatskovsky
2009-11-08 21:18   ` Wolfgang Schuster
2009-11-09  0:14   ` Aditya Mahajan
2009-11-10 18:10   ` Mojca Miklavec
2009-11-10 20:12     ` Mojca Miklavec
2009-11-11  8:38       ` Hans Hagen
2009-11-11 15:01         ` Mojca Miklavec
2009-11-11 15:06           ` luigi scarso
2009-11-11 20:50             ` Martin Schröder
2009-11-11 15:21           ` Aditya Mahajan
2009-11-11 15:36             ` Mojca Miklavec
2009-11-11 15:54               ` Hans Hagen
2009-11-11 16:02                 ` Mojca Miklavec
2009-11-11 16:06                   ` Wolfgang Schuster
2009-11-11 16:37                     ` Mojca Miklavec
2009-11-11 16:57                       ` Wolfgang Schuster
2009-11-12 11:25                         ` Mojca Miklavec
2009-11-12 11:41                           ` Hans Hagen
2009-11-12 12:42                             ` Mojca Miklavec
2009-11-12 12:44                               ` Mojca Miklavec
2009-11-12 13:45                                 ` Mojca Miklavec [this message]
2009-11-12 14:56                                   ` Wolfgang Schuster
     [not found]                                     ` <6faad9f00911120702w1f3eadb1if91bbd65a594a6c1@mail.gmail.com>
     [not found]                                       ` <4AFC25CB.90906@gmail.com>
2009-11-12 15:19                                         ` Mojca Miklavec
2009-11-12  9:42                       ` Hans Hagen
2009-11-12 11:25                         ` Mojca Miklavec
2009-11-12 11:38                           ` Hans Hagen
2009-11-11 16:13               ` Hans Hagen
2009-11-11 16:39                 ` Bernhard Rosensteiner
2009-11-11 17:26                 ` definereferenceformat problem Bernhard Rosensteiner
2009-11-25  1:50                   ` Chen Shen
2009-11-28 14:51                     ` Chen Shen
2009-11-28 16:36                   ` Peter Münster
2009-11-28 17:04                     ` Chen Shen
2009-11-11 15:37           ` Math setup with Times (Termes) Hans Hagen
2009-11-11 15:58             ` Mojca Miklavec
2009-11-08 21:17 ` Itemize withing description Vyatcheslav Yatskovsky
2009-11-09  0:08   ` Aditya Mahajan
     [not found] <mailman.343.1257760041.22155.ntg-context@ntg.nl>
2009-11-09 11:43 ` Math setup with Times (Termes) Vyatcheslav Yatskovsky
     [not found] <mailman.384.1257957327.22155.ntg-context@ntg.nl>
2009-11-12  1:16 ` Vyatcheslav Yatskovsky
2009-11-12  1:23 ` Vyatcheslav Yatskovsky
     [not found] <mailman.396.1258033393.22155.ntg-context@ntg.nl>
2009-11-12 14:19 ` Vyatcheslav Yatskovsky
2009-11-12 14:38   ` Mojca Miklavec
2009-11-12 16:52     ` Hans Hagen
2009-11-12 14:25 ` Vyatcheslav Yatskovsky
2009-11-12 14:41   ` Mojca Miklavec
2009-11-12 15:02 ` Vyatcheslav Yatskovsky
2009-11-12 15:07   ` Taco Hoekwater
     [not found] <mailman.403.1258044997.22155.ntg-context@ntg.nl>
2009-11-12 17:05 ` Vyatcheslav Yatskovsky
2009-11-12 17:34   ` Mojca Miklavec
     [not found] <mailman.407.1258061400.22155.ntg-context@ntg.nl>
2009-11-12 23:40 ` Vyatcheslav Yatskovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f00911120545t1ec122b8qfa37ade1a8276a2f@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).