* luatex-fonts-merged.lua can not work
@ 2010-11-03 1:29 Li Yanrui (李延瑞)
2010-11-03 2:46 ` Khaled Hosny
2010-11-03 8:12 ` Hans Hagen
0 siblings, 2 replies; 8+ messages in thread
From: Li Yanrui (李延瑞) @ 2010-11-03 1:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Hans,
It seems like the char-def.lua code is not merged into
luatex-fonts-merged.lua. It causes:
! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690:
attempt to index global 'characters' (a nil value)
--
Best regards,
Li Yanrui (李延瑞)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 1:29 luatex-fonts-merged.lua can not work Li Yanrui (李延瑞)
@ 2010-11-03 2:46 ` Khaled Hosny
2010-11-03 8:34 ` Hans Hagen
2010-11-03 8:12 ` Hans Hagen
1 sibling, 1 reply; 8+ messages in thread
From: Khaled Hosny @ 2010-11-03 2:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
> Hi Hans,
>
> It seems like the char-def.lua code is not merged into
> luatex-fonts-merged.lua. It causes:
>
> ! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690:
> attempt to index global 'characters' (a nil value)
Also (after deleting that line since "chardata" is not actually used
anywhere), node mode does not seem to work:
\input{luatex-fonts}
\font\testa={file:xits-regular:mode=node;+liga} at 45pt
\font\testb={file:xits-regular:mode=base;+liga} at 45pt
\testa fi fl ffi ffl\par
\testb fi fl ffi ffl\par
\bye
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 1:29 luatex-fonts-merged.lua can not work Li Yanrui (李延瑞)
2010-11-03 2:46 ` Khaled Hosny
@ 2010-11-03 8:12 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2010-11-03 8:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 3-11-2010 2:29, Li Yanrui (李延瑞) wrote:
> Hi Hans,
>
> It seems like the char-def.lua code is not merged into
> luatex-fonts-merged.lua. It causes:
>
> ! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690:
> attempt to index global 'characters' (a nil value)
I'll remove that code; char-def is not supposed to be in luatex-fonts
anyhow.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 2:46 ` Khaled Hosny
@ 2010-11-03 8:34 ` Hans Hagen
2010-11-03 9:36 ` Li Yanrui (李延瑞)
2010-11-03 10:49 ` Khaled Hosny
0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2010-11-03 8:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 3-11-2010 3:46, Khaled Hosny wrote:
> On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
>> Hi Hans,
>>
>> It seems like the char-def.lua code is not merged into
>> luatex-fonts-merged.lua. It causes:
>>
>> ! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690:
>> attempt to index global 'characters' (a nil value)
>
> Also (after deleting that line since "chardata" is not actually used
> anywhere), node mode does not seem to work:
>
> \input{luatex-fonts}
>
> \font\testa={file:xits-regular:mode=node;+liga} at 45pt
> \font\testb={file:xits-regular:mode=base;+liga} at 45pt
> \testa fi fl ffi ffl\par
> \testb fi fl ffi ffl\par
> \bye
I uploaded a version without the chardata reference
Anyhow, I do see ligatures here so I wonder what goes wrong at your end.
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 8:34 ` Hans Hagen
@ 2010-11-03 9:36 ` Li Yanrui (李延瑞)
2010-11-03 18:23 ` Li Yanrui (李延瑞)
2010-11-03 18:52 ` Hans Hagen
2010-11-03 10:49 ` Khaled Hosny
1 sibling, 2 replies; 8+ messages in thread
From: Li Yanrui (李延瑞) @ 2010-11-03 9:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
2010/11/3 Hans Hagen <pragma@wxs.nl>:
>
> I uploaded a version without the chardata reference
>
Now the fontfallback hangs up. For example,
\definefontsynonym[song][name:adobesongstd]
\definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400]
\definefontsynonym[fbsong][song][fallbacks=hereos]
\definefont[newsong][fbsong]
\starttext
\newsong 夹杂 English 的中文文本
\stoptext
The error message is:
! LuaTeX error ...text/tex/texmf-context/tex/context/base/char-ini.lua:311:
bad argument #1 to 'gsub' (string expected, got nil)
Is "0x000-0x0400" replaced by somthing?
--
Best regards,
Li Yanrui (李延瑞)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 8:34 ` Hans Hagen
2010-11-03 9:36 ` Li Yanrui (李延瑞)
@ 2010-11-03 10:49 ` Khaled Hosny
1 sibling, 0 replies; 8+ messages in thread
From: Khaled Hosny @ 2010-11-03 10:49 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
On Wed, Nov 03, 2010 at 09:34:40AM +0100, Hans Hagen wrote:
> On 3-11-2010 3:46, Khaled Hosny wrote:
> >On Wed, Nov 03, 2010 at 09:29:39AM +0800, Li Yanrui (李延瑞) wrote:
> >>Hi Hans,
> >>
> >>It seems like the char-def.lua code is not merged into
> >>luatex-fonts-merged.lua. It causes:
> >>
> >>! LuaTeX error ...-context/tex/generic/context/luatex-fonts-merged.lua:5690:
> >>attempt to index global 'characters' (a nil value)
> >
> >Also (after deleting that line since "chardata" is not actually used
> >anywhere), node mode does not seem to work:
> >
> >\input{luatex-fonts}
> >
> >\font\testa={file:xits-regular:mode=node;+liga} at 45pt
> >\font\testb={file:xits-regular:mode=base;+liga} at 45pt
> >\testa fi fl ffi ffl\par
> >\testb fi fl ffi ffl\par
> >\bye
>
> I uploaded a version without the chardata reference
>
> Anyhow, I do see ligatures here so I wonder what goes wrong at your end.
I updated minimals but still I get ligatures only with base mode, I even
built the luatex-plain format and used luatex binary from minimals. If I
process the file with context, I get ligatures in both cases.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 9:36 ` Li Yanrui (李延瑞)
@ 2010-11-03 18:23 ` Li Yanrui (李延瑞)
2010-11-03 18:52 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Li Yanrui (李延瑞) @ 2010-11-03 18:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
2010/11/3 Li Yanrui (李延瑞) <liyanrui.m2@gmail.com>:
> 2010/11/3 Hans Hagen <pragma@wxs.nl>:
>>
>> I uploaded a version without the chardata reference
>>
>
> Now the fontfallback hangs up. For example,
>
> \definefontsynonym[song][name:adobesongstd]
> \definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400]
> \definefontsynonym[fbsong][song][fallbacks=hereos]
> \definefont[newsong][fbsong]
>
> \starttext
> \newsong 夹杂 English 的中文文本
> \stoptext
>
> The error message is:
>
> ! LuaTeX error ...text/tex/texmf-context/tex/context/base/char-ini.lua:311:
> bad argument #1 to 'gsub' (string expected, got nil)
>
> Is "0x000-0x0400" replaced by somthing?
>
It seems like a typo in the line 315 in char-ini.lua.
"local range = characters.blocks[tag]" or "local range =
characters.blocks[name]"?
--
Best regards,
Li Yanrui (李延瑞)
___________________________________________________________________________________
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] 8+ messages in thread
* Re: luatex-fonts-merged.lua can not work
2010-11-03 9:36 ` Li Yanrui (李延瑞)
2010-11-03 18:23 ` Li Yanrui (李延瑞)
@ 2010-11-03 18:52 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2010-11-03 18:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 3-11-2010 10:36, Li Yanrui (李延瑞) wrote:
> 2010/11/3 Hans Hagen<pragma@wxs.nl>:
>>
>> I uploaded a version without the chardata reference
>>
>
> Now the fontfallback hangs up. For example,
>
> \definefontsynonym[song][name:adobesongstd]
> \definefontfallback[hereos][name:texgyreherosregular][0x0000-0x0400]
> \definefontsynonym[fbsong][song][fallbacks=hereos]
> \definefont[newsong][fbsong]
>
> \starttext
> \newsong 夹杂 English 的中文文本
> \stoptext
>
> The error message is:
fixed in beta
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2010-11-03 18:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-03 1:29 luatex-fonts-merged.lua can not work Li Yanrui (李延瑞)
2010-11-03 2:46 ` Khaled Hosny
2010-11-03 8:34 ` Hans Hagen
2010-11-03 9:36 ` Li Yanrui (李延瑞)
2010-11-03 18:23 ` Li Yanrui (李延瑞)
2010-11-03 18:52 ` Hans Hagen
2010-11-03 10:49 ` Khaled Hosny
2010-11-03 8:12 ` Hans Hagen
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).