ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fonts.enc.reencodings works with latex but not with context
@ 2011-03-09 16:34 Ulrike Fischer
  2011-03-10 18:22 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrike Fischer @ 2011-03-09 16:34 UTC (permalink / raw)
  To: ntg-context

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 <main ctx instance>: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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-11 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-09 16:34 fonts.enc.reencodings works with latex but not with context Ulrike Fischer
2011-03-10 18:22 ` Hans Hagen
2011-03-11 12:38   ` Ulrike Fischer

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).