From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51947 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: support for "SUBSCRIPT THREE" etc. ? Date: Tue, 21 Jul 2009 10:55:35 -0400 (EDT) Message-ID: References: <20090721102734.GA15542@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1226046341-1248188136=:13326" X-Trace: ger.gmane.org 1248188229 14934 80.91.229.12 (21 Jul 2009 14:57:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2009 14:57:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 21 16:57:02 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MTGm3-0004yt-MF for gctc-ntg-context-518@m.gmane.org; Tue, 21 Jul 2009 16:56:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0BA81FB71; Tue, 21 Jul 2009 16:56:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27993-02-2; Tue, 21 Jul 2009 16:56:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 248F61FB30; Tue, 21 Jul 2009 16:56:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1FE541FB1F for ; Tue, 21 Jul 2009 16:56:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27993-02 for ; Tue, 21 Jul 2009 16:55:58 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id DF57F1FB30 for ; Tue, 21 Jul 2009 16:55:58 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6LEtuEN026290 for ; Tue, 21 Jul 2009 16:55:57 +0200 Original-Received: FROM [192.168.2.8] (c-71-192-164-42.hsd1.ct.comcast.net [71.192.164.42]) By hellskitchen.mr.itd.umich.edu ID 4A65D6FB.14B65.1293 ; Authuser adityam; 21 Jul 2009 10:55:55 EDT In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; 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: 263996972 - d0cdd58366a3 - 20090721 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51947 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1226046341-1248188136=:13326 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 21 Jul 2009, Peter M=C3=BCnster wrote: > On Tue, 21 Jul 2009, Khaled Hosny wrote: > >> Unicode sub/superscripts aren't real sub/superscripts, and there use is >> discouraged. Most fonts will align those subscript glyphs to the base >> line not bellow it, and apparently LM fonts don't have them. > > Hello, > > In char-def.lua there is: > > [0x2074]=3D{ > category=3D"no", > cjkwd=3D"a", > description=3D"SUPERSCRIPT FOUR", > direction=3D"en", > linebreak=3D"ai", > specials=3D{ "super", 0x0034 }, > unicodeslot=3D0x2074, > }, > [...] > [0x2084]=3D{ > category=3D"no", > cjkwd=3D"a", > description=3D"SUBSCRIPT FOUR", > direction=3D"en", > linebreak=3D"ai", > specials=3D{ "sub", 0x0034 }, > unicodeslot=3D0x2084, > }, > > So I supposed, that the "specials" are for faking or simulating the unico= de > character, for example =C2=B2 -> \superscript{2} or similar. > Perhaps, my assumption is just wrong... I am not sure whethere specials work at all. I am assuming that=20 SUPERSCIRPT ONE, TWO, and THREE work because the LM font contain them at=20 the right spot. These are less than hex FF. The others, for example,=20 SUPERSCIRPT ZERO and SUPERSCRIPT FOUR do not work because they are not=20 (AFAIU) mapped to any place in LM fonts. I don't even know if LM fonts=20 have these or not. The same is true for SUBSCRIPT. If you use a opentype font like cambria, superscripts and subscripts work.= =20 I guess that is because they have these symbols. If you swich to \tt with= =20 cambria, only sup 1,2,3 work. So, the easiest solution will be to use a (maybe) virtual font that has=20 these glyphs. Otherwise, using the active character trick is the easiest=20 option. Aditya --8323328-1226046341-1248188136=:13326 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-1226046341-1248188136=:13326--