From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62557 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Error in simplefonts Date: Tue, 12 Oct 2010 19:48:29 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/mixed; boundary="===============0140683693==" X-Trace: dough.gmane.org 1286905737 881 80.91.229.12 (12 Oct 2010 17:48:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2010 17:48:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 12 19:48:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5iy0-0004Ar-TK for gctc-ntg-context-518@m.gmane.org; Tue, 12 Oct 2010 19:48:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF95ACA720; Tue, 12 Oct 2010 19:48:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sewt4+sz3wRZ; Tue, 12 Oct 2010 19:48:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F973CA6EF; Tue, 12 Oct 2010 19:48:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA52CCA6EF for ; Tue, 12 Oct 2010 19:48:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I28YJSvCzsBt for ; Tue, 12 Oct 2010 19:48:35 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id AB23DCA6E4 for ; Tue, 12 Oct 2010 19:48:35 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9CHmY0N010352 for ; Tue, 12 Oct 2010 19:48:35 +0200 Original-Received: by wyf28 with SMTP id 28so1655561wyf.14 for ; Tue, 12 Oct 2010 10:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=JK5Mr5NRFKkhiAwFrZ3aiKQLoP4GGEoGSDwNPFY0Ja4=; b=rHHJzuSM8lx59XbtyGEUukJdLZU0CjoU8Vq52XwsvV/73I5uk5ruc8PFbkJMAzpMko A5/1niD1RGxKYZdD76iuR9LEEFrUThAZ0kAAuGu+1b/lgbEWXgIuh6dOQMg9zhdY0CUG aMizaLDO1Ly/sc+ScTfx8vITtmMIhwIVnXFHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=Z2XrWtxn8DD0x+ZAvjqq5sHn7X6BEzmyjZ+LbkKjyBStXVzlUbaa6FJHhG4gRSDKtL pup4/z/aTsUQBqlcvl+Zp3rRWGL14VQhmMNraE3gomlvtvFGuC/xr4OvJFv7SvBRU1fH laKcvq3szB7XqZmBkga0n5UM5bTOPrbM0UnFc= Original-Received: by 10.216.168.202 with SMTP id k52mr7082971wel.105.1286905713950; Tue, 12 Oct 2010 10:48:33 -0700 (PDT) Original-Received: from [192.168.0.11] (mna75-3-82-66-231-76.fbx.proxad.net [82.66.231.76]) by mx.google.com with ESMTPS id n40sm5443260weq.29.2010.10.12.10.48.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Oct 2010 10:48:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03DhRMypJ - 884f0bfdad67 - 20101012 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:62557 Archived-At: --===============0140683693== Content-Type: multipart/alternative; boundary=Apple-Mail-19--639135582 --Apple-Mail-19--639135582 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 12 oct. 2010, at 19:36, Aditya Mahajan wrote: >> [=85] >> ! LuaTeX error
:1: attempt to index field 'define' = (a nil value) >> stack traceback: >>
:1: in main chunk. >>=20 >> system > error on line 5 in file test.tex: LuaTeX error ... >>=20 >> 1 \usemodule [simplefonts][size=3D10pt] >> 2 >> 3 \setmainfont[Fontin][expansion=3Dquality,protrusion=3Dquality] >> 4 >> 5 >> \definesimplefont [NameFont] [FontinBold][size=3D16pt] >> 6 >> 7 \starttext >> 8 \NameFont A >> 9 \stoptext >>=20 >>=20 >> \dodefinesimplefont ...1("\luaescapestring {#2}")} >> \ifcase = \scaledfontmode \r... >> l.5 ...efont [NameFont] [FontinBold][size=3D16pt] >=20 > Does anyone else get this error or is it something wrong on my = machine? Hi Aditya, I do get the same exact error with your example: here is part of the = console result: ! Undefined control sequence. system > error on line 5 in file error-simplefonts.tex: = Undefined control sequence ... 1 %\definesimplefont fails in the latest beta. Minimal example: 2 \usemodule [simplefonts][size=3D10pt] 3 \setmainfont[Fontin][expansion=3Dquality,protrusion=3Dquality] 4 =20 5 >> \definesimplefont [NameFont] [FontinBold][size=3D16pt] 6 =20 7 \starttext 8 \NameFont A 9 \stoptext l.5 \definesimplefont [NameFont] [FontinBold][size=3D16pt] ?=20 Process aborted However as I thought this might be due to the fact that I don't have the = font Fontin, I tried with another font, which I do have, = CMUBright-Roman, but the result is the same. I tried also with a few previous examples in which I had tried = simplefonts, they don't work anymore. All this with the latest release (ConTeXt version 2010-10-12). Best regards: OK= --Apple-Mail-19--639135582 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
On 12 oct. 2010, at 19:36, = Aditya Mahajan wrote:

[=85]
! LuaTeX = error <main ctx instance>:1: attempt to index field 'define' (a = nil value)
stack = traceback:
     =  <main ctx instance>:1: in main = chunk.

system   =        > error on line 5 in file test.tex: LuaTeX = error  ...

1     = \usemodule  [simplefonts][size=3D10pt]
2
3   =   = \setmainfont[Fontin][expansion=3Dquality,protrusion=3Dquality]
4
5 >>  \definesimplefont [NameFont]   =  [FontinBold][size=3D16pt]
6
7   =   \starttext
8   =   \NameFont A
9   =   \stoptext


\dodefinesimplefont ...1("\luaescapestring = {#2}")}
     =                     =                     =    \ifcase \scaledfontmode \r...
l.5 ...efont [NameFont]   =  [FontinBold][size=3D16pt]

Does anyone else get = this error or is it something wrong on my = machine?

Hi Aditya,

I do get the same exact = error with your example: here is part of the console = result:

! Undefined = control sequence.
system          > = error on line 5 in file error-simplefonts.tex: Undefined control = sequence ...
1     %\definesimplefont fails in = the latest beta. Minimal example:
2    =  \usemodule  [simplefonts][size=3D10pt]
3  &nb= sp; =  \setmainfont[Fontin][expansion=3Dquality,protrusion=3Dquality]
4&= nbsp;    
5 >>  \definesimplefont = [NameFont]    [FontinBold][size=3D16pt]
6   =   
7    =  \starttext
8     \NameFont = A
9     \stoptext
l.5 = \definesimplefont
             =          [NameFont]   =  [FontinBold][size=3D16pt]

Process = aborted

However as I thought this might be due to = the fact that I don't have the font Fontin, I tried with another font, = which I do have, CMUBright-Roman, but the result is the = same.
I tried also with a few previous examples in which I had = tried simplefonts, they don't work anymore.
All this with the = latest release (ConTeXt version = 2010-10-12).

Best regards: = OK
= --Apple-Mail-19--639135582-- --===============0140683693== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0140683693==--