ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Error with the actual beta
@ 2010-01-08 12:20 Andreas Harder
  2010-01-08 13:09 ` Wolfgang Schuster
  2010-01-08 14:29 ` Vladimir Lomov
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Harder @ 2010-01-08 12:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Greetings
	Andreas
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error with the actual beta
  2010-01-08 12:20 Error with the actual beta Andreas Harder
@ 2010-01-08 13:09 ` Wolfgang Schuster
  2010-01-08 14:29 ` Vladimir Lomov
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2010-01-08 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error with the actual beta
  2010-01-08 12:20 Error with the actual beta Andreas Harder
  2010-01-08 13:09 ` Wolfgang Schuster
@ 2010-01-08 14:29 ` Vladimir Lomov
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Lomov @ 2010-01-08 14:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/1/8 Andreas Harder <andreas.harder@rz-online.de>:
> 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?
>
Confirm, but I tried DejaVu font (I sent message but it didn't appear
in the list yet).

---
WBR, Vladimir Lomov
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-08 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08 12:20 Error with the actual beta Andreas Harder
2010-01-08 13:09 ` Wolfgang Schuster
2010-01-08 14:29 ` Vladimir Lomov

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).