diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/cldf-bas.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/cldf-bas.lua | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/cldf-bas.lua b/Master/texmf-dist/tex/context/base/cldf-bas.lua index 298b374f045..6adeb227233 100644 --- a/Master/texmf-dist/tex/context/base/cldf-bas.lua +++ b/Master/texmf-dist/tex/context/base/cldf-bas.lua @@ -29,12 +29,16 @@ local format = string.format local utfchar = utf.char local concat = table.concat -local context = context -local generics = context.generics -local variables = interfaces.variables +local context = context +local generics = context.generics +local variables = interfaces.variables -local new_rule = nodes.pool.rule -local texcount = tex.count +local nodepool = nodes.pool +local new_rule = nodepool.rule +local new_glyph = nodepool.glyph + +local current_font = font.current +local texcount = tex.count function context.char(k) -- used as escape too, so don't change to utf if type(k) == "table" then @@ -72,7 +76,7 @@ function context.egroup() end function context.space() - context(" ") + context("\\space") -- no " " as that gets intercepted end function context.hrule(w,h,d,dir) @@ -83,6 +87,15 @@ function context.hrule(w,h,d,dir) end end +function context.glyph(id,k) + if id then + if not k then + id, k = current_font(), id + end + context(new_glyph(id,k)) + end +end + context.vrule = context.hrule --~ local hbox, bgroup, egroup = context.hbox, context.bgroup, context.egroup |