From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66789 Path: news.gmane.org!not-for-mail From: Ulrike Fischer Newsgroups: gmane.comp.tex.context Subject: fonts.enc.reencodings works with latex but not with context Date: Wed, 9 Mar 2011 17:34:50 +0100 Message-ID: <1osqhyd2iwj7q$.dlg@nililand.de> Reply-To: news3@nililand.de, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299688529 20288 80.91.229.12 (9 Mar 2011 16:35:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 16:35:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 09 17:35:25 2011 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 1PxMM9-0002KD-Np for gctc-ntg-context-518@m.gmane.org; Wed, 09 Mar 2011 17:35:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15731CAAC4; Wed, 9 Mar 2011 17:35:25 +0100 (CET) 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 C4huNaHHwPq4; Wed, 9 Mar 2011 17:35:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 660E4CAABD; Wed, 9 Mar 2011 17:35:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99A5DCAABD for ; Wed, 9 Mar 2011 17:35:21 +0100 (CET) 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 2yVO4f9AdZFY for ; Wed, 9 Mar 2011 17:35:10 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 85099CAA77 for ; Wed, 9 Mar 2011 17:35:10 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p29GZ8WG032205 for ; Wed, 9 Mar 2011 17:35:10 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PxMLs-0002Bl-8C for ntg-context@ntg.nl; Wed, 09 Mar 2011 17:35:08 +0100 Original-Received: from p5b2a2b85.dip.t-dialin.net ([91.42.43.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2011 17:35:08 +0100 Original-Received: from news3 by p5b2a2b85.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Mar 2011 17:35:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5b2a2b85.dip.t-dialin.net User-Agent: 40tude_Dialog/2.0.15.41de X-Bayes-Prob: 0.0017 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEh4z8hT - 3bc5e61a26f8 - 20110309 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:66789 Archived-At: I have now reencoded my first chess font. I'm now trying to find out how to setup things so that context users could also benefit from the reencoding. But the equivalent code of the code working with latex doesn't work in context \startluacode fonts.enc.reencodings["cfss-lsf-std"] = { --%bishop [66] = 8226, --%king [75] = 162, --% Knight [78] = 167, --%Queen [81] = 163, --%Rook [82] = 182, --%Pawn [112]= 223, } \stopluacode \font\alfonsouc="name:ChessAlfonso-X:mode=base:reencode=cfss-lsf-std" \starttext \alfonsouc \char75\char81\char82\char66\char78\char112 \stoptext I get the error "! LuaTeX error
:15: attempt to index field 'reencodings' (a nil value)" It only works if I copy the code from font-dum.lua to the document. Isn't the code already loaded? Btw: There is a small typo in luat-dum.lua. Line 77 is missing an "s" found = kpse.find_file(name,"other text files") ^^^ missing. -- Ulrike Fischer ___________________________________________________________________________________ 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 ___________________________________________________________________________________