From e86146694fb4159c4ae2ad9969c6c992a19e9c09 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sun, 12 Apr 2009 21:17:28 +0200 Subject: syncronizing with the latest ConTeXt beta, fixing bugs --- otfl-font-otc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'otfl-font-otc.lua') diff --git a/otfl-font-otc.lua b/otfl-font-otc.lua index 840d4a9..40631fb 100644 --- a/otfl-font-otc.lua +++ b/otfl-font-otc.lua @@ -9,6 +9,8 @@ if not modules then modules = { } end modules ['font-otc'] = { local format, insert = string.format, table.insert local type, next = type, next +local ctxcatcodes = tex.ctxcatcodes + -- we assume that the other otf stuff is loaded already local trace_loading = false trackers.register("otf.loading", function(v) trace_loading = v end) @@ -122,6 +124,6 @@ function otf.char(n) -- todo: afm en tfm n = otf.name_to_slot(n) end if n then - tex.sprint(tex.ctxcatcodes,format("\\char%s ",n)) + tex.sprint(ctxcatcodes,format("\\char%s ",n)) end end -- cgit v1.2.3