From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74657 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Incorrect rendering of * with UTF math fonts Date: Wed, 22 Feb 2012 17:22:34 -0500 (EST) Message-ID: References: <20120222215312.GA16395@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329949382 12430 80.91.229.3 (22 Feb 2012 22:23:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 22:23:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 22 23:23:02 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S0KaO-00071A-1p for gctc-ntg-context-518@m.gmane.org; Wed, 22 Feb 2012 23:22:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51518CB252; Wed, 22 Feb 2012 23:22:55 +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 OeQnslO5fjjl; Wed, 22 Feb 2012 23:22:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97505CB24C; Wed, 22 Feb 2012 23:22:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4727FCB24C for ; Wed, 22 Feb 2012 23:22:51 +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 BySm1O17pIJu for ; Wed, 22 Feb 2012 23:22:39 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 42271CB243 for ; Wed, 22 Feb 2012 23:22:39 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1MMMbCU004006 for ; Wed, 22 Feb 2012 23:22:38 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096680022.dsl.bell.ca [65.94.2.86]) By hackers.mr.itd.umich.edu ID 4F456AAC.7ECDD.2095 ; Authuser adityam; 22 Feb 2012 17:22:36 EST In-Reply-To: <20120222215312.GA16395@khaled-laptop> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0LGBamCv5 - b082b19a8484 - 20120222 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:74657 Archived-At: On Wed, 22 Feb 2012, Khaled Hosny wrote: > On Wed, Feb 22, 2012 at 02:52:22PM -0500, Aditya Mahajan wrote: >> Hi, >> >> Using * in superscripts gives wrong glyph size and spacing. >> >> For example, with LM math everyhing looks fine: >> >> \starttext >> $x^*$ vs $x^{\ast}$ >> \stoptext > > For me this is typeset using LM Type1 fonts, not the OpenType LM math > font which explains why both are correct, after adding > \setupbodyfont[modern] the first * is raised than the other but still > readable. > >> With Cambria, the result is OK (but you can still see the >> differences in the spacing of * in x^*) >> >> \usemodule[simplefonts] >> \setmathfont[Cambria] >> \starttext >> $x^*$ vs $x^{\ast}$ >> \stoptext >> >> With Neo Euler, $x^*$ look really bad. >> >> \usemodule[simplefonts] >> \setmathfont[Cambria] >> \starttext >> $x^*$ vs $x^{\ast}$ >> \stoptext >> >> I cannot figure out why this is happening. It definitely looks like >> a bug at the context end rather than a bug with the fonts. > > It seems that * in math mode should map to U+2217 (which is what \ast > maps to) and not the ASCII asterisk. Indeed. Making this change gives the correct result. @Hans, can you make the following change in char-def.lua --- char-def.old 2012-02-22 17:18:05.000000000 -0500 +++ char-def.lua 2012-02-22 17:19:06.000000000 -0500 @@ -382,8 +382,7 @@ description="ASTERISK", direction="on", linebreak="al", - mathclass="binary", - mathname="ast", + mathsymbol=0x2217, unicodeslot=0x002A, }, { Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________