From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59150 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: unicode integral sign Date: Sat, 29 May 2010 15:05:24 -0400 (EDT) Message-ID: References: <4C00E52F.2080005@elvenkind.com> <4C016392.9070809@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-556243530-1275159926=:13102" X-Trace: dough.gmane.org 1275159892 27300 80.91.229.12 (29 May 2010 19:04:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 May 2010 19:04:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 29 21:04:50 2010 connect(): No such file or directory 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 1OIRKz-0005kp-SK for gctc-ntg-context-518@m.gmane.org; Sat, 29 May 2010 21:04:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E248CC9C80; Sat, 29 May 2010 21:04:48 +0200 (CEST) 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 uvFuH32bTr0W; Sat, 29 May 2010 21:04:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DFE8C9C61; Sat, 29 May 2010 21:04:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56BCAC9C61 for ; Sat, 29 May 2010 21:04:45 +0200 (CEST) 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 pa3MD0VbWOQZ for ; Sat, 29 May 2010 21:04:42 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by balder.ntg.nl (Postfix) with ESMTP id 6CE57C9C40 for ; Sat, 29 May 2010 21:04:42 +0200 (CEST) Original-Received: FROM [192.168.2.33] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By tombraider.mr.itd.umich.edu ID 4C016548.B4239.28636 ; Authuser adityam; 29 May 2010 15:04:40 EDT In-Reply-To: <4C016392.9070809@elvenkind.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) 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:59150 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-556243530-1275159926=:13102 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 29 May 2010, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> On Sat, 29 May 2010, Yury G. Kudryashov wrote: >>=20 >> > Taco Hoekwater wrote: >> >=20 >> > > Yury G. Kudryashov wrote: >> > > > Hi! >> > > >=20 >> > > > I try the following: >> > > >=20 >> > > > \starttext >> > > > $=E2=88=AB_a^b \int_a^b$ >> > > > \stoptext >> > > >=20 >> > > > In the first case, the integral sign is below the text. Should I = use >> > > > another font, or is it possible to fix with the default one? >> > >=20 >> > > It is possible to fix this. The reason for the odd placement is tha= t=20 >> > > the >> > > 'math code' of =E2=88=AB is not set up properly (and it probably is= n't either >> > > for some other bare Unicode characters). To fix the hard way, add t= his >> > > at the top of your input file: >> > >=20 >> > > \Umathcode `=E2=88=AB =3D 1 0 `=E2=88=AB % 1 =3D=3D \mathop, 0=3Dfa= m0, =E2=88=AB=3Dglyph >> > Is there any documentation on char-def.lua file format? If I'll=20 >> > understand it, I'll send a patch for the symbols I use. >> >> Not a complete documentation, but some explanation is here >> >> https://www.tug.org/members/TUGboat/tb30-2/tb95mahajan-cmath.pdf >>=20 >> > Currently I have no idea why the following strings in char-def don't= =20 >> > work. >> >=20 >> > [0x222B]=3D{ >> > adobename=3D"integral", >> > category=3D"sm", >> > cjkwd=3D"a", >> > description=3D"INTEGRAL", >> > direction=3D"on", >> > linebreak=3D"ai", >> > mathspec=3D{ >> > { class=3D"nothing", name=3D"intop" }, >> > { class=3D"limop" , name=3D"int" }, >> > }, >> > unicodeslot=3D0x222B, >> > }, >> >=20 >> > Replacing mathspec=3D... with mathclass=3D"limop", mathname=3D"int" s= eems to=20 >> > work (copied from n-ary summation). >> >=20 >> > BTW, in both solution =E2=88=AB_a acts like \int\limits_a, not \int_a= =2E >> >> In plain TeX, this is taken care by >> >> \mathchardef\intop=3D"1352 \def\int{\intop\nolimits} >> >> Can I do the same in luatex without active characters? > > No, but it is a useful extension to consider. There are internally > three types of large operators, for 'limits', 'nolimits' and > 'displaylimits' and this bothers me a bit. We can't reasonably > extend the old primitives, but \Umathcharcode c.s. could be made > to accept extra values '9' .. '11' for those three types without > any compatibility problems. I'll add to the tracker. Thanks. That will make all the int (and sum) setup much simpler. Aditya --8323328-556243530-1275159926=:13102 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-556243530-1275159926=:13102--