From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88280 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: [luatex] Problem with luaotfload and positioning of primes Date: Tue, 29 Jul 2014 07:01:48 +0200 Message-ID: <20140729050148.GA1813@acheron> References: <001901cfaa91$ed2d69f0$c7883dd0$@gmail.com> <20140728205636.GA31071@acheron> <20140728213556.GB31071@acheron> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1437352223==" X-Trace: ger.gmane.org 1406610169 12825 80.91.229.3 (29 Jul 2014 05:02:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 05:02:49 +0000 (UTC) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 29 07:02:44 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XBzYg-0002NQ-U4 for gctc-ntg-context-518@m.gmane.org; Tue, 29 Jul 2014 07:02:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60CA41026F for ; Tue, 29 Jul 2014 07:02:42 +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 aTAMPgxAkx-V for ; Tue, 29 Jul 2014 07:02:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 64EB11021E for ; Tue, 29 Jul 2014 07:02:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EADF101E2 for ; Tue, 29 Jul 2014 07:02:30 +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 1fgUztrdQZZb for ; Tue, 29 Jul 2014 07:02:25 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 0AE6C101E1 for ; Tue, 29 Jul 2014 07:02:24 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6T52OwS000502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 29 Jul 2014 07:02:24 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s6T51pZM003838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Jul 2014 07:01:51 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s6T51oSe001273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 29 Jul 2014 07:01:50 +0200 Original-Received: from localhost (stgt-5f72b63e.pool.mediaWays.net [95.114.182.62]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id s6T51nhV001303 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 29 Jul 2014 07:01:49 +0200 Mail-Followup-To: ConTeXt ML In-Reply-To: <20140728213556.GB31071@acheron> X-Operating-System: Linux acheron 3.14.5-1-ARCH User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Scanned-By: MIMEDefang 2.75 on 129.206.100.176 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: =?UTF-8?Q?ip=3D129.206.100.212; _country=3DDE; _region=3DBaden-W=C3=BCrttemberg_Region; _city=3DHeidelberg; _latitude=3D49.3757; _longitude=3D8.6911; _http://maps.google.com/maps=3Fq=3D49.3757,8.6911&z=3D6?= X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NMw52oa0 - edd2f1632b9e - 20140729 (trained as not-spam) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88280 Archived-At: --===============1437352223== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good morning, Hans! Thanks for the quick fix! Best, Philipp =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 >=20 > > (CC=E2=80=99ing the Context list.) > >=20 > > =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > >=20 > > > Do you have a prediction about how long it will take before a fix is > > > released? > >=20 > > No, sorry. What I do have though is the culprit: > >=20 > > c70b2e466bbb07e976f8684d56ae4e5398169e7d is the first bad commit >=20 > Seems to be related to the feature precedence code. If I revert > the related changes as in the attached patch, the bug vanishes > (and so does te feature ordering =E2=80=A6). >=20 > diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua > index 293a319..719a1f7 100644 > --- a/src/luaotfload-fontloader.lua > +++ b/src/luaotfload-fontloader.lua > @@ -9152,34 +9152,26 @@ local function featuresinitializer(tfmdata,value) > local language=3Dproperties.language > local basesubstitutions=3Drawdata.resources.features.gsub > local basepositionings=3Drawdata.resources.features.gpos > - if basesubstitutions or basepositionings then > - local sequences=3Dtfmdata.resources.sequences > - for s=3D1,#sequences do > - local sequence=3Dsequences[s] > - local sfeatures=3Dsequence.features > - if sfeatures then > - local order=3Dsequence.order > - if order then > - for i=3D1,#order do=20 > - local feature=3Dorder[i] > - if features[feature] then > - local validlookups,lookuplist=3Dcollectlookups(rawdata= ,feature,script,language) > - if not validlookups then > - elseif basesubstitutions and basesubstitutions[feature= ] then > - if trace_preparing then > - report_prepare("filtering base feature %a for %a",= feature,fullname) > - end > - applybasemethod("preparesubstitutions",tfmdata,featu= re,value,validlookups,lookuplist) > - registerbasefeature(feature,value) > - elseif basepositionings and basepositionings[feature] = then > - if trace_preparing then > - report_prepare("filtering base feature %a for %a",= feature,fullname) > - end > - applybasemethod("preparepositionings",tfmdata,featur= e,features[feature],validlookups,lookuplist) > - registerbasefeature(feature,value) > - end > - end > - end > + if basesubstitutions then > + for feature,data in next,basesubstitutions do > + local value=3Dfeatures[feature] > + if value then > + local validlookups,lookuplist=3Dcollectlookups(rawdata,featu= re,script,language) > + if validlookups then > + applybasemethod("preparesubstitutions",tfmdata,feature,val= ue,validlookups,lookuplist) > + registerbasefeature(feature,value) > + end > + end > + end > + end > + if basepositionings then > + for feature,data in next,basepositionings do > + local value=3Dfeatures[feature] > + if value then > + local validlookups,lookuplist=3Dcollectlookups(rawdata,featu= re,script,language) > + if validlookups then > + applybasemethod("preparepositionings",tfmdata,feature,feat= ures[feature],validlookups,lookuplist) > + registerbasefeature(feature,value) > end > end > end > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJT1yq8AAoJEFp67MUiL/UEOjkP/j1Q7JH+X9Ap2Dj7Ja0KWl5l EkeA3TGwfiSWEjLxtpS8WLks2MCTYC/Dh5h/STCrTf3UAlUwYnquUN0HV6FWlPrw gdzICg4gsmpxavsUlwUQKxj+wWkk8Pl0+wxIULLn/Zz4wnIlF/zRm2e1b36Jb8yN DuwRv2Q3BDiwGq5MbPAYNBUXCCe56HEnYWB9CopGBuqhY188UWpK6WOQNFleGMd+ cR3Wh2/EKUfze6MoNH/qydJIfYJ3AHJJpJoFbsGepk0Zp3JA+rmiBkFt2A7x9YOk 7BiblkhYN9HC60D//ilhN1xHLa+CEJ9hzGJyraBfrKm6hJpyBERfsg9YhQF0kGjo 0jkSg+cXJdnM0+mw0vOKhoBsQY/W7grjqDJKIiJeQ1xYS5cMYgE9RPf+HSnVn9zF ngLbeBsTgvGN34U0O0JsnD62tyJv/X+M7wn0zeVW/uW06a9rZwVa7KYpHVneF+cv 0gDzUw1nRU7lDCyr7GWn0VieC1qHScan6AFCaPjvzlLOY+u1iqYIK8BmkdecRaYG Cdwy2fGKF8bqhh3S9w0cCxcUurULLH2MSJ8nGlFDPXNk0+QaMILmwvzuZhnkstTe 2faCaScsvSl9hqn+/LujjgmAyrLNCV6O2sCnvdT4mHdSGqIdtoCJQyO25+KwTXbA vGaHPLhuXCiaqPy1VoQN =7NdD -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o-- --===============1437352223== 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 ___________________________________________________________________________________ --===============1437352223==--