From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: error in mag-01 module with luatex
Date: Wed, 15 Oct 2008 09:32:23 +0200 [thread overview]
Message-ID: <48F59C87.2030108@elvenkind.com> (raw)
In-Reply-To: <20081014185332.GA6263@khaled-laptop>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-10-15 7:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 18:53 Khaled Hosny
2008-10-15 7:32 ` Taco Hoekwater [this message]
2008-10-15 9:31 ` Khaled Hosny
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=48F59C87.2030108@elvenkind.com \
--to=taco@elvenkind.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).