From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66937 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: $n\choose k$-issue with OpenType math fonts Date: Sun, 13 Mar 2011 15:01:42 +0100 Message-ID: <41F8B081-EC7A-42C0-9BA6-FCA126BFB887@rz-online.de> References: <2A0CC5D9-995B-414F-8523-BA4D3DC1AD8E@rz-online.de> <4D70F6F1.6080308@wxs.nl> <4D7375E5.7030805@wxs.nl> <59D6786F-8F64-416B-88A8-86C4F7ADE3B3@rz-online.de> <4D739B34.4050206@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary=Apple-Mail-2--404844950 X-Trace: dough.gmane.org 1300024928 300 80.91.229.12 (13 Mar 2011 14:02:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 14:02:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 13 15:02:04 2011 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 1Pylru-0001Xh-2h for gctc-ntg-context-518@m.gmane.org; Sun, 13 Mar 2011 15:02:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CE8FCAAFE; Sun, 13 Mar 2011 15:02:01 +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 5lMM-tVqEudO; Sun, 13 Mar 2011 15:01:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A7CACAAF5; Sun, 13 Mar 2011 15:01:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0BDDCAAF5 for ; Sun, 13 Mar 2011 15:01: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 MIZ6Rcaq+lFK for ; Sun, 13 Mar 2011 15:01:44 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id A76CCCAAF0 for ; Sun, 13 Mar 2011 15:01:44 +0100 (CET) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2DE1hrV011643 for ; Sun, 13 Mar 2011 15:01:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 996DF7815004 for ; Sun, 13 Mar 2011 15:01:43 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29877-06 for ; Sun, 13 Mar 2011 15:01:43 +0100 (CET) X-CHKRCPT: Envelopesender noch andreas.harder@rz-online.de Original-Received: from [192.168.1.112] (88-134-86-12-dynip.superkabel.de [88.134.86.12]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 174917814FF5 for ; Sun, 13 Mar 2011 15:01:43 +0100 (CET) In-Reply-To: <4D739B34.4050206@wxs.nl> X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.26.64.15; country=DE; region=08; city=Koblenz; latitude=50.3500; longitude=7.6000; http://maps.google.com/maps?q=50.3500,7.6000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEiC1HtJ - 473ab37057a3 - 20110313 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:66937 Archived-At: --Apple-Mail-2--404844950 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 06.03.2011 um 15:33 schrieb Hans Hagen: > On 6-3-2011 1:22, Andreas Harder wrote: >=20 >> I don't know the best value either, but et least one could manipulate = it. >=20 > the next beta will support parameter overload in the goodies >=20 > parameters =3D { -- test values > FactorA =3D 123.456, > FactorB =3D false, > FactorC =3D function(value,target,original) return 7.89 * = target.factor end, > FactorD =3D "Hi There!", > }, I'm afraid, I don't get it. Here is what I tried: I copied all stack-relevant values from asana-math.tma and put them in = the return section of the goodies file (like showed in lm-math.lfg). But = even if I set all values to zero, the output remains the same. Im I = doing something wrong?=20 --Apple-Mail-2--404844950 Content-Disposition: attachment; filename=asana-math.lfg Content-Type: application/octet-stream; name="asana-math.lfg" Content-Transfer-Encoding: 7bit -- This patch code is moved from font-pat.lua to this goodies -- files as it does not belomg in the core code. local patches = fonts.otf.enhancers.patches local function patch(data,filename,threshold) local m = data.metadata.math if m then local d = m.DisplayOperatorMinHeight or 0 if d < threshold then patches.report("DisplayOperatorMinHeight(%s -> %s)",d,threshold) m.DisplayOperatorMinHeight = threshold end end end patches.register("after","check math parameters","asana",function(data,filename) patch(data,filename,1350) end) return { name = "lm-asana", version = "1.00", comment = "Goodies that complement asana.", author = "Hans Hagen", copyright = "ConTeXt development team", parameters = { -- test values -- data = { metadata = { math = { StackBottomDisplayStyleShiftDown = 0, StackBottomShiftDown = 0, StackDisplayStyleGapMin = 0, StackGapMin = 0, StackTopDisplayStyleShiftUp = 0, StackTopShiftUp = 0, StretchStackBottomShiftDown = 0, StretchStackGapAboveMin = 0, StretchStackGapBelowMin = 0, StretchStackTopShiftUp = 0, }, }, -- }, }, } --Apple-Mail-2--404844950 Content-Disposition: attachment; filename=test-goodies.tex Content-Type: application/octet-stream; name="test-goodies.tex" Content-Transfer-Encoding: 7bit \usetypescript[palatino,asana] \startTEXpage[offset=1pt] \ruledhbox {% \switchtobodyfont[palatino] $\binom{n}{k}$ \switchtobodyfont[asana] $\binom{n}{k}$} \stopTEXpage %%% Local Variables: %%% mode: context %%% TeX-master: t %%% End: --Apple-Mail-2--404844950 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Greeting Andreas --Apple-Mail-2--404844950 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 ___________________________________________________________________________________ --Apple-Mail-2--404844950--