From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64403 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Proposal for math mappings Date: Fri, 10 Dec 2010 10:29:48 -0500 (EST) Message-ID: References: <20101210124117.GA4731@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-357413301-1291994998=:10708" X-Trace: dough.gmane.org 1291995022 14194 80.91.229.12 (10 Dec 2010 15:30:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 15:30:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 10 16:30:18 2010 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.69) (envelope-from ) id 1PR4vK-0006tn-6c for gctc-ntg-context-518@m.gmane.org; Fri, 10 Dec 2010 16:30:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9FCEFCA8AE; Fri, 10 Dec 2010 16:30: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 Y2veCT-2Ug3c; Fri, 10 Dec 2010 16:30:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09C70CA8A5; Fri, 10 Dec 2010 16:30:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D55E1CA8A5 for ; Fri, 10 Dec 2010 16:30:13 +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 2wmIP+KMAEdy for ; Fri, 10 Dec 2010 16:30:11 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 2510DC9E8B for ; Fri, 10 Dec 2010 16:30:11 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBAFU8FG013268 for ; Fri, 10 Dec 2010 16:30:09 +0100 Original-Received: FROM [10.0.2.15] (Unknown [117.197.151.67]) By tombraider.mr.itd.umich.edu ID 4D02477C.E9A1A.5107 ; Authuser adityam; 10 Dec 2010 10:30:05 EST In-Reply-To: <20101210124117.GA4731@smoon> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; 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: 0bDFru82t - 6b3be2a8c045 - 20101210 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:64403 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-357413301-1291994998=:10708 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 10 Dec 2010, Vladimir Lomov wrote: > > ** Aditya Mahajan [2010-12-09 23:49:26 -0500]: > >> This is a proposal for a new way of selecting math mappings in MkIV. I w= ant >> to get input from other math users whether this syntax would take care o= f all >> scenarios or not. >> >> There are five different ranges in mathematics: >> - digits (0..9) >> - lower case Latin (abc..z) >> - upper case Latin (ABC..Z) >> - lower case Greek (=CE=B1=CE=B2=CE=B3..=CE=B6) >> - upper case Greek (=CE=91=CE=92=CE=93..Z) > Should be: =CE=B1=CE=B2=CE=B3..=CF=89 > and =CE=91=CE=92=CE=93..=CE=A9 Thanks. I need to learn my Greek :) >> A user may want to control what each range is mapped to. So, I suggest a= setup >> command >> >> \setupmathmappings >> [ >> digits=3D{style,alternative}, >> lclatin=3D{style,alternative}, >> uclatin=3D{style,alternative}, >> lcgreek=3D{style,alternative}, >> ucgreek=3D{style,alternative}, >> ] >> >> where the options for style are >> >> normal, bold >> >> while the options for alternative are >> >> normal, italic, sans, sansitalic, blackboard, script >> >> This command will the mappings for each range. **NOTE**: All combination= s are not valid. >> >> A companion command >> >> \definemathmappings >> [whatever] >> [....] >> >> can be used to define multiple mappings. These mappings can be used by >> >> \setupmathmappings[whatever] >> >> (An alternative is that these mappings are activated using \whatever ...= ) >> >> For example, we can define a command to typeset vectors using >> >> \definemathmappings >> [vectors] >> [ digits=3D{bold,normal}, >> lclatin=3D{bold,normal}, >> uclatin=3D{bold,normal}, >> lcgreek=3D{bold,normal}, >> ucgreek=3D{bold,normal}] >> >> \def\VEC{\groupedcommand{\setupmathmappings[vector]}{}} > Is it should be > \def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}} > ? Indeed. Thanks. >> If later, we want to represent vectors as sans serif, we can use >> >> >> \definemathmappings >> [vectors] >> [ digits=3D{normal,sans}, >> lclatin=3D{normal,sans}, >> uclatin=3D{normal,sans}, >> lcgreek=3D{normal,sans}, >> ucgreek=3D{normal,sans}] >> >> This interface makes it easy to switch math fonts for disiplines that wa= nt >> different style for different alphabet ranges. >> >> It is relatively easy to implement the above interface. All we need >> is some bookkeeping to set the right attributes. The default math >> mapping commands can be reimplmeneted using \definemappings. Before >> implementing this, I want to ask the opinion of other math users. >> >> Would the above interface take care of different use cases, or is it mis= sing >> something? > IMHO, style is already used so it is normal. >> Finally, I am not too happy with the syntax. There are only a few ConTeX= t >> commands in which the keys take a pair of values. Another option is to a= llow all >> 12 valid options >> >> normal, italic, sans, sansitalic, blackboard, script, >> bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript > This very depends on used fonts. I am assuming a complete opentype math font. >> with the variants sansitalic-italicsans, boldsans-sansbold, etc. as syno= nmyms. >> >> Which way of specifying the keys do you prefer? >> > Actually I don't get what you try to do. I'll try to explain better in a later post. > I thought that 'font > switching' command should take care of font switching either in math or > text modes (if typescript is set properly). I am proposing to separate out math font switching from text mode font switching. > Right now the only good > example of usage of proposed mechanism is \VEC command (for vectors and e= tc). More on this later. Aditya --8323328-357413301-1291994998=:10708 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-357413301-1291994998=:10708--