summaryrefslogtreecommitdiff
path: root/tex/context/base/mult-cld.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-10-12 22:32:16 +0300
committerMarius <mariausol@gmail.com>2010-10-12 22:32:16 +0300
commit987dd5ee54cf9fff2601560e4e170df899d80b40 (patch)
treea25e8e5e0779a068c5b0bfdaa3da57d12d8660ae /tex/context/base/mult-cld.lua
parent6db11f114036fc2a18af3e265a9f8e980ad2b594 (diff)
downloadcontext-987dd5ee54cf9fff2601560e4e170df899d80b40.tar.gz
beta 2010.10.12 17:13
Diffstat (limited to 'tex/context/base/mult-cld.lua')
-rw-r--r--tex/context/base/mult-cld.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/tex/context/base/mult-cld.lua b/tex/context/base/mult-cld.lua
index edc4253a9..382370dea 100644
--- a/tex/context/base/mult-cld.lua
+++ b/tex/context/base/mult-cld.lua
@@ -350,3 +350,16 @@ function context.disabletrackers(str) trackers.disable(str) end
--~ end
--~
--~ context.direct(something)
+
+-- this might be generalized: register some primitives as: accepting this or that
+-- we can also speed this up
+
+function context.char(k)
+ if type(k) == "table" then
+ for i=1,#k do
+ context(format([[\char%s\relax]],k[i]))
+ end
+ elseif k then
+ context(format([[\char%s\relax]],k))
+ end
+end