diff options
author | Marius <mariausol@gmail.com> | 2010-12-31 10:20:13 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-12-31 10:20:13 +0200 |
commit | f67b9a6b70277a30f7e7ef9a7a3913447ee525f8 (patch) | |
tree | b73bbc8ae4ad8cbeb78693b84b81fa4ff3044ab7 /tex/context/base/cldf-com.lua | |
parent | ab00ef13e506bf34d8928b536c3e20d228e26422 (diff) | |
download | context-f67b9a6b70277a30f7e7ef9a7a3913447ee525f8.tar.gz |
beta 2010.12.31 08:59
Diffstat (limited to 'tex/context/base/cldf-com.lua')
-rw-r--r-- | tex/context/base/cldf-com.lua | 20 |
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 |