From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55491 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Error with the actual beta Date: Fri, 8 Jan 2010 14:09:15 +0100 Message-ID: <84EE217B-90E4-48EB-B6D0-6992D1EA0266@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: multipart/mixed; boundary=Apple-Mail-3--966369499 X-Trace: ger.gmane.org 1262956174 1346 80.91.229.12 (8 Jan 2010 13:09:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 13:09:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 08 14:09:26 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.50) id 1NTEaj-00033y-A7 for gctc-ntg-context-518@m.gmane.org; Fri, 08 Jan 2010 14:09:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5771AC9C98; Fri, 8 Jan 2010 14:09:25 +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 kx88CCMB0HmL; Fri, 8 Jan 2010 14:09:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D010C9C85; Fri, 8 Jan 2010 14:09:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D27B0C9C85 for ; Fri, 8 Jan 2010 14:09:20 +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 d2SPRCUFWOqE for ; Fri, 8 Jan 2010 14:09:18 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by balder.ntg.nl (Postfix) with ESMTP id D9A41C9BAE for ; Fri, 8 Jan 2010 14:09:18 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id 19so999367fgg.2 for ; Fri, 08 Jan 2010 05:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=1NJ6JK98cnkuA/sfyANVyjnjtCenY6FDJWBSDL4w4EU=; b=mXcbUO2jLIXTgn7zj/SaiGE3tc/Sih0F4eQgBRPSwDsIavwKqEY9QT39oGa+FvpCsF NCCI3fS+4IwEaJPLnZfylHasvI2UGAxmArKxsKETDMFKMptxKIa3GFd3EVeQjnTdBbMn ramDQoims0KKb903/anP5gZUUtIFh862L7JPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=WeuMeQDIF//hOGNLjjYxIThhsur3mpvMZ8D5RLNt/iz6eavYmYxBE/r7IIXN9emKCm K6spkbC/vijozqT2EZIlLXHqXv36bFnAIUxcK2ZAP7r2xEZq4Ymrvew6uNkWi+CUfJ+V 0mJE/uywjT2ygTYvKF2qWYnKMpw8iRm4t+rrA= Original-Received: by 10.87.70.26 with SMTP id x26mr3394723fgk.57.1262956158533; Fri, 08 Jan 2010 05:09:18 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B29382F.dip.t-dialin.net [91.41.56.47]) by mx.google.com with ESMTPS id e3sm57473321fga.6.2010.01.08.05.09.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Jan 2010 05:09:17 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1077) 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:55491 Archived-At: --Apple-Mail-3--966369499 Content-Disposition: attachment; filename=font-otf.diff Content-Type: application/octet-stream; name="font-otf.diff" Content-Transfer-Encoding: 7bit --- /Users/wolf/context/tex/texmf-context/tex/context/base/font-otf.lua 2010-01-04 16:02:52.000000000 +0100 +++ font-otf.lua 2010-01-08 14:02:40.000000000 +0100 @@ -1222,13 +1222,15 @@ local offset = offsets[baseoffset + sk] --~ local offset = offsets[sk] -- (fk-1) * maxseconds + sk] local splt = split[sv] - for i=1,#splt do - local second_unicode = splt[i] - if tonumber(second_unicode) then - lookupkerns[second_unicode] = offset - else - for s=1,#second_unicode do - lookupkerns[second_unicode[s]] = offset + if splt then + for i=1,#splt do + local second_unicode = splt[i] + if tonumber(second_unicode) then + lookupkerns[second_unicode] = offset + else + for s=1,#second_unicode do + lookupkerns[second_unicode[s]] = offset + end end end end @@ -1240,13 +1242,15 @@ for fk=1,#firsts do local fv = firsts[fk] local splt = split[fv] - for i=1,#splt do - local first_unicode = splt[i] - if tonumber(first_unicode) then - do_it(fk,first_unicode) - else - for f=1,#first_unicode do - do_it(fk,first_unicode[f]) + if splt then + for i=1,#splt do + local first_unicode = splt[i] + if tonumber(first_unicode) then + do_it(fk,first_unicode) + else + for f=1,#first_unicode do + do_it(fk,first_unicode[f]) + end end end end --Apple-Mail-3--966369499 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 08.01.2010 um 13:20 schrieb Andreas Harder: > Hi, >=20 > the example at the bottom ends up with: >=20 > ! LuaTeX error = ...text/tex/texmf-context/tex/context/base/font-otf.lua:1243: attempt to = get length of local 'splt' (a nil value) >=20 > \definefont[test][name:linuxlibertineo] > \starttext > \test test > \stoptext >=20 > Can someone confirm? +1 Checking for the existence of 'splt' in font-otf.lua works for me. Wolfgang --Apple-Mail-3--966369499 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-3--966369499--