From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54262 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Math setup with Times (Termes) Date: Thu, 12 Nov 2009 14:45:12 +0100 Message-ID: <6faad9f00911120545t1ec122b8qfa37ade1a8276a2f@mail.gmail.com> References: <4AFADE42.9010209@wxs.nl> <6faad9f00911110802q469294bao69cf5354d1ba2bb7@mail.gmail.com> <6faad9f00911110837p269804b6p4fa41ef714d129dd@mail.gmail.com> <80CD15FA-9C6B-4B85-ADE3-0ADD331DADB8@googlemail.com> <6faad9f00911120325h33a0bf94i86d0a11156b1d3a8@mail.gmail.com> <4AFBF45B.4090808@wxs.nl> <6faad9f00911120442j6d5b6354s8873f0dcca5b3dc@mail.gmail.com> <6faad9f00911120444n1c1aa67bif6e62e394a1d8f9c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258033530 3418 80.91.229.12 (12 Nov 2009 13:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 13:45:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 12 14:45:23 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8ZzH-0001DC-09 for gctc-ntg-context-518@m.gmane.org; Thu, 12 Nov 2009 14:45:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D50A9C9AFD; Thu, 12 Nov 2009 14:43:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LOBoMToyjgeo; Thu, 12 Nov 2009 14:43:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D069AC9ABB; Thu, 12 Nov 2009 14:43:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80B73C9ABB for ; Thu, 12 Nov 2009 14:43:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9j5lSG1XeOQK for ; Thu, 12 Nov 2009 14:43:08 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by balder.ntg.nl (Postfix) with ESMTP id 86B78C9A8A for ; Thu, 12 Nov 2009 14:43:08 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id 19so823167fgg.2 for ; Thu, 12 Nov 2009 05:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7tBeuVWLgG8rXRrlyWErsEDuGz/9bQjpT2EZu04m444=; b=TM8qn2JT6dnWdw0Xz/LJhsWzNq+SjYKiyaPy+FML/5U/v6x38ze2ll8YVyzYMOp1Dv OHd9Y4hqaYPzmLk9jSmBLmGkRiVDmLqkIk6WMiglaRe6JR3GbAqHQdbFQh3NN25etgE9 57a91qrVfX64vKoBuTUEQadlJYA1gBz7aNddg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=m7Xm0NEG+vgZZfXIIthCZvQydzZuBxuXd8CkhbtwyIomDGKeod4zeScN8gQ601bRxP rQ6oVWEB0R7vvFsFadfTuv2E2NQwqcLyBIIct8oLStWG6QnmxlSt3iYCJX/htjgdyz3k uvwGEiUE5WTux68diMBkR84Dbzx2ar5gcX4AM= Original-Received: by 10.216.87.136 with SMTP id y8mr892941wee.70.1258033512335; Thu, 12 Nov 2009 05:45:12 -0800 (PST) In-Reply-To: <6faad9f00911120444n1c1aa67bif6e62e394a1d8f9c@mail.gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54262 Archived-At: 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 ___________________________________________________________________________________