From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Error with the actual beta
Date: Fri, 8 Jan 2010 14:09:15 +0100 [thread overview]
Message-ID: <84EE217B-90E4-48EB-B6D0-6992D1EA0266@googlemail.com> (raw)
In-Reply-To: <AE8C6AED-331F-4A77-8358-2C3886957CA5@rz-online.de>
[-- Attachment #1: font-otf.diff --]
[-- Type: application/octet-stream, Size: 3221 bytes --]
--- /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
[-- Attachment #2: Type: text/plain, Size: 448 bytes --]
Am 08.01.2010 um 13:20 schrieb Andreas Harder:
> Hi,
>
> the example at the bottom ends up with:
>
> ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:1243: attempt to get length of local 'splt' (a nil value)
>
> \definefont[test][name:linuxlibertineo]
> \starttext
> \test test
> \stoptext
>
> Can someone confirm?
+1
Checking for the existence of 'splt' in font-otf.lua works for me.
Wolfgang
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-01-08 13:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-08 12:20 Andreas Harder
2010-01-08 13:09 ` Wolfgang Schuster [this message]
2010-01-08 14:29 ` Vladimir Lomov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84EE217B-90E4-48EB-B6D0-6992D1EA0266@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).