* error in mag-01 module with luatex
@ 2008-10-14 18:53 Khaled Hosny
2008-10-15 7:32 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Khaled Hosny @ 2008-10-14 18:53 UTC (permalink / raw)
To: mailing ConTeXt users list for
[-- Attachment #1.1.1: Type: text/plain, Size: 205 bytes --]
There seem to be some thing broken in latest betas that I can't use
mag-01 module (My Way) with luatex. Try the attached example.
--
Khaled Hosny
Arabic localizer and member of Arabeyes.org team
[-- Attachment #1.1.2: mm.tex --]
[-- Type: text/x-tex, Size: 467 bytes --]
% engine=luatex
\usemodule[mag-01]
% Substitute the text between <+...+>
\setvariables
[magazine]
[ title=Title of MyWay,
author=Name of author,
affiliation=Affiliation of author,
date=date of publication,
]
\startbuffer[abstract]
Abstract of MyWay
\stopbuffer
\setupheadertexts[section]
\starttext \setups [titlepage] \setups [title]
Write article here
\setups [listing]
\setups [lastpage] \stoptext
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error in mag-01 module with luatex
2008-10-14 18:53 error in mag-01 module with luatex Khaled Hosny
@ 2008-10-15 7:32 ` Taco Hoekwater
2008-10-15 9:31 ` Khaled Hosny
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2008-10-15 7:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Khaled Hosny wrote:
> There seem to be some thing broken in latest betas that I can't use
> mag-01 module (My Way) with luatex. Try the attached example.
That is a lua string problem.
The error is:
[1.1]
! Missing number, treated as zero.
<to be read again>
^^H
\somefontsize ->^^H
ottomheight
and ^^H happens to match the \b lua string escape.
And the patch to fix it is:
--- font-ini.mkiv.orig 2008-10-12 22:35:36.000000000 +0200
+++ font-ini.mkiv 2008-10-15 09:29:46.324889915 +0200
@@ -1171,7 +1171,7 @@
\newtoks\everydefinefont
\def\lowleveldefinefont#1#2% #2 = cs
- {\ctxlua{fonts.define.command_1("#1")}%
+ {\ctxlua{fonts.define.command_1("\luaescapestring{#1}")}%
% sets \scaledfontmode and \somefontname and \somefontsize
\ifcase\scaledfontmode\relax
% none
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error in mag-01 module with luatex
2008-10-15 7:32 ` Taco Hoekwater
@ 2008-10-15 9:31 ` Khaled Hosny
0 siblings, 0 replies; 3+ messages in thread
From: Khaled Hosny @ 2008-10-15 9:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]
On Wed, Oct 15, 2008 at 09:32:23AM +0200, Taco Hoekwater wrote:
>
>
> Khaled Hosny wrote:
> > There seem to be some thing broken in latest betas that I can't use
> > mag-01 module (My Way) with luatex. Try the attached example.
>
> That is a lua string problem.
>
> The error is:
>
> [1.1]
> ! Missing number, treated as zero.
> <to be read again>
> ^^H
> \somefontsize ->^^H
> ottomheight
>
> and ^^H happens to match the \b lua string escape.
>
> And the patch to fix it is:
>
> --- font-ini.mkiv.orig 2008-10-12 22:35:36.000000000 +0200
> +++ font-ini.mkiv 2008-10-15 09:29:46.324889915 +0200
> @@ -1171,7 +1171,7 @@
> \newtoks\everydefinefont
>
> \def\lowleveldefinefont#1#2% #2 = cs
> - {\ctxlua{fonts.define.command_1("#1")}%
> + {\ctxlua{fonts.define.command_1("\luaescapestring{#1}")}%
> % sets \scaledfontmode and \somefontname and \somefontsize
> \ifcase\scaledfontmode\relax
> % none
This fixes it, thanks very match!
Regards,
Khaled
--
Khaled Hosny
Arabic localizer and member of Arabeyes.org team
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-15 9:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-14 18:53 error in mag-01 module with luatex Khaled Hosny
2008-10-15 7:32 ` Taco Hoekwater
2008-10-15 9:31 ` Khaled Hosny
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).