From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64376 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Proposal for math mappings Date: Thu, 9 Dec 2010 23:49:26 -0500 (EST) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1182909446-1291956573=:29907" X-Trace: dough.gmane.org 1291977135 26682 80.91.229.12 (10 Dec 2010 10:32:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 10:32:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 10 11:32:10 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 1PR0Gm-0006OK-7O for gctc-ntg-context-518@m.gmane.org; Fri, 10 Dec 2010 11:32:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 417D5CA8CA; Fri, 10 Dec 2010 11:32:06 +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 YrtNxmwnVTpW; Fri, 10 Dec 2010 11:32:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C76ECA8C1; Fri, 10 Dec 2010 11:32:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83063CA8BC for ; Fri, 10 Dec 2010 11:31:54 +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 1KmaItv802F1 for ; Fri, 10 Dec 2010 11:31:51 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id 4ED7BCAAAA for ; Fri, 10 Dec 2010 05:49:46 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBA4nf0j020217 for ; Fri, 10 Dec 2010 05:49:44 +0100 Original-Received: FROM [10.0.2.15] (Unknown [117.197.144.144]) By hackers.mr.itd.umich.edu ID 4D01B162.D69C6.15316 ; Authuser adityam; 9 Dec 2010 23:49:39 EST 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.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: 0DDFgNGz0 - ed767a76b372 - 20101210 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 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:64376 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-1182909446-1291956573=:29907 Content-Type: TEXT/PLAIN; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: QUOTED-PRINTABLE This is a proposal for a new way of selecting math mappings in MkIV. I want to get input from other math users whether this syntax would take care of a= ll 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 (=E1=E2=E3..=E6) - upper case Greek (=C1=C2=C3..Z) A user may want to control what each range is mapped to. So, I suggest a se= tup 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 combinations a= re 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]}{}} 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 want different style for different alphabet ranges. It is relatively easy to implement the above interface. All we need is=20 some bookkeeping to set the right attributes. The default math mapping=20 commands can be reimplmeneted using \definemappings. Before implementing=20 this, I want to ask the opinion of other math users. Would the above interface take care of different use cases, or is it missin= g something? Finally, I am not too happy with the syntax. There are only a few ConTeXt commands in which the keys take a pair of values. Another option is to allo= w all 12 valid options normal, italic, sans, sansitalic, blackboard, script, bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript with the variants sansitalic-italicsans, boldsans-sansbold, etc. as synonmy= ms. Which way of specifying the keys do you prefer? Aditya --8323328-1182909446-1291956573=:29907 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-1182909446-1291956573=:29907--