summaryrefslogtreecommitdiff
path: root/tex/context/base/cldf-com.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/cldf-com.lua')
-rw-r--r--tex/context/base/cldf-com.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/tex/context/base/cldf-com.lua b/tex/context/base/cldf-com.lua
index d64b75ee6..caffe44ce 100644
--- a/tex/context/base/cldf-com.lua
+++ b/tex/context/base/cldf-com.lua
@@ -83,3 +83,23 @@ function context.hrule(w,h,d,dir)
end
context.vrule = context.hrule
+
+--~ local hbox, bgroup, egroup = context.hbox, context.bgroup, context.egroup
+
+--~ function context.hbox(a,...)
+--~ if type(a) == "table" then
+--~ local s = { }
+--~ if a.width then
+--~ s[#s+1] = "to " .. a.width -- todo: check for number
+--~ elseif a.spread then
+--~ s[#s+1] = "spread " .. a.spread -- todo: check for number
+--~ end
+--~ -- todo: dir, attr etc
+--~ hbox(false,table.concat(s," "))
+--~ bgroup()
+--~ context(string.format(...))
+--~ egroup()
+--~ else
+--~ hbox(a,...)
+--~ end
+--~ end