summaryrefslogtreecommitdiff
path: root/tex
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-01-31 12:15:06 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-01-31 12:15:06 +0100
commit7874dbe9834f98579d88719fc4fbe3a67c042492 (patch)
treed8a28fa5d842703384dbd2121b02e69ee128697c /tex
parent397508ee8dca010aec5a9c6951b68434e5657f14 (diff)
downloadcontext-7874dbe9834f98579d88719fc4fbe3a67c042492.tar.gz
2016-01-31 11:45:00
Diffstat (limited to 'tex')
-rw-r--r--tex/context/base/context-version.pdfbin4175 -> 4177 bytes
-rw-r--r--tex/context/base/mkiv/buff-ver.lua49
-rw-r--r--tex/context/base/mkiv/cont-new.mkiv2
-rw-r--r--tex/context/base/mkiv/context.mkiv2
-rw-r--r--tex/context/base/mkiv/status-files.pdfbin9092 -> 9117 bytes
-rw-r--r--tex/context/base/mkiv/status-lua.pdfbin270265 -> 270266 bytes
-rw-r--r--tex/context/base/mkiv/strc-flt.mkvi8
-rw-r--r--tex/context/base/mkiv/syst-ini.mkiv10
-rw-r--r--tex/context/interface/common/i-en-xml.xml216
-rw-r--r--tex/context/modules/mkiv/x-set-11.mkiv152
-rw-r--r--tex/generic/context/luatex/luatex-fonts-merged.lua2
11 files changed, 264 insertions, 177 deletions
diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf
index 04f9a3448..26ee303c9 100644
--- a/tex/context/base/context-version.pdf
+++ b/tex/context/base/context-version.pdf
Binary files differ
diff --git a/tex/context/base/mkiv/buff-ver.lua b/tex/context/base/mkiv/buff-ver.lua
index 0168c551d..448d1a60c 100644
--- a/tex/context/base/mkiv/buff-ver.lua
+++ b/tex/context/base/mkiv/buff-ver.lua
@@ -627,6 +627,17 @@ local function getstrip(lines,first,last)
return first, last, last - first + 1
end
+-- we look for text (todo):
+--
+-- "foo" : start after line with "foo"
+-- "=" : ignore first blob
+-- "=foo" : start at "foo"
+-- "!foo" : maybe a not "foo"
+
+-- % - # lines start a comment
+
+local comment = "^[%%%-#]"
+
local function getrange(lines,first,last,range) -- 1,3 1,+3 fromhere,tothere
local noflines = #lines
local first = first or 1
@@ -634,7 +645,7 @@ local function getrange(lines,first,last,range) -- 1,3 1,+3 fromhere,tothere
if last < 0 then
last = noflines + last
end
- local what = settings_to_array(range)
+ local what = settings_to_array(range) -- maybe also n:m
local r_first = what[1]
local r_last = what[2]
local f = tonumber(r_first)
@@ -644,11 +655,26 @@ local function getrange(lines,first,last,range) -- 1,3 1,+3 fromhere,tothere
if f > first then
first = f
end
- else
+ elseif r_first == "=" then
for i=first,last do
- if find(lines[i],r_first) then
+ if find(lines[i],comment) then
first = i + 1
+ else
+ break
+ end
+ end
+ elseif r_first ~= "" then
+ local exact, r_first = match(r_first,"^([=]?)(.*)")
+ for i=first,last do
+ if find(lines[i],r_first) then
+ if exact == "=" then
+ first = i
+ else
+ first = i + 1
+ end
break
+ else
+ first = i
end
end
end
@@ -664,11 +690,24 @@ local function getrange(lines,first,last,range) -- 1,3 1,+3 fromhere,tothere
if l < last then
last = l
end
- else
+ elseif r_first == "=" then
+ for i=first,last do
+ if find(lines[i],comment) then
+ break
+ else
+ last = i
+ end
+ end
+ elseif r_last ~= "" then
+ local exact, r_last = match(r_last,"^([=]?)(.*)")
for i=first,last do
if find(lines[i],r_last) then
- last = i - 1
+ if exact == "=" then
+ last = i
+ end
break
+ else
+ last = i
end
end
end
diff --git a/tex/context/base/mkiv/cont-new.mkiv b/tex/context/base/mkiv/cont-new.mkiv
index e9dddbb0f..9edb260fc 100644
--- a/tex/context/base/mkiv/cont-new.mkiv
+++ b/tex/context/base/mkiv/cont-new.mkiv
@@ -11,7 +11,7 @@
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
-\newcontextversion{2016.01.29 19:00}
+\newcontextversion{2016.01.31 11:42}
%D This file is loaded at runtime, thereby providing an excellent place for
%D hacks, patches, extensions and new features.
diff --git a/tex/context/base/mkiv/context.mkiv b/tex/context/base/mkiv/context.mkiv
index 727363db8..cd310cd07 100644
--- a/tex/context/base/mkiv/context.mkiv
+++ b/tex/context/base/mkiv/context.mkiv
@@ -39,7 +39,7 @@
%D up and the dependencies are more consistent.
\edef\contextformat {\jobname}
-\edef\contextversion{2016.01.29 19:00}
+\edef\contextversion{2016.01.31 11:42}
\edef\contextkind {beta}
%D For those who want to use this:
diff --git a/tex/context/base/mkiv/status-files.pdf b/tex/context/base/mkiv/status-files.pdf
index 35df55af7..5c70adcd8 100644
--- a/tex/context/base/mkiv/status-files.pdf
+++ b/tex/context/base/mkiv/status-files.pdf
Binary files differ
diff --git a/tex/context/base/mkiv/status-lua.pdf b/tex/context/base/mkiv/status-lua.pdf
index 8d31b4caa..2fde12e0f 100644
--- a/tex/context/base/mkiv/status-lua.pdf
+++ b/tex/context/base/mkiv/status-lua.pdf
Binary files differ
diff --git a/tex/context/base/mkiv/strc-flt.mkvi b/tex/context/base/mkiv/strc-flt.mkvi
index fb621c997..48f264319 100644
--- a/tex/context/base/mkiv/strc-flt.mkvi
+++ b/tex/context/base/mkiv/strc-flt.mkvi
@@ -1913,13 +1913,19 @@
% these could be \??floatpreparesidecaption
+% \setupfloat[figure][location=left]
+% \setupcaption[figure][width=max]
+%
+% \placefigure{my figure caption my figure caption}{\framed[width=4cm,height=1cm]{}} \input tufte
+% \placefigure{my figure caption} {\framed[width=4cm,height=1cm]{}} \input tufte
+
\def\strc_floats_prepare_side_caption_max
{\setbox\b_strc_floats_caption\vbox
{\strc_floats_caption_set_align
\hsize\wd\b_strc_floats_content
\strc_floats_make_complete_caption}}
-\def\strc_floats_prepare_side_caption_fit
+\def\strc_floats_prepare_side_caption_fit % or center when smaller
{\ifdim\wd\b_strc_floats_caption>\wd\b_strc_floats_content\relax
\setbox\b_strc_floats_caption\vbox
{\forgetall % needed?
diff --git a/tex/context/base/mkiv/syst-ini.mkiv b/tex/context/base/mkiv/syst-ini.mkiv
index 37ffc5768..a99f6f0da 100644
--- a/tex/context/base/mkiv/syst-ini.mkiv
+++ b/tex/context/base/mkiv/syst-ini.mkiv
@@ -452,17 +452,17 @@
%D Some expected plain variants follow. We don't reuse registers because we
%D don't want clashes.
-\newdimen\p@ \p@ \onepoint
-\newcount\m@ne \m@ne \minusone
-\newdimen\z@ \z@ \zeropoint
+\let \p@ \onepoint
+\let \m@ne \minusone
+\let \z@ \zeropoint
\let \@ne \plusone
\let \tw@ \plustwo
\let \thr@@ \plusthree
\let \sixt@@n \plussixteen
\let \@cclv \pluscclv
\let \@cclvi \pluscclvi
-\newbox \voidb@x
-\newtoks \toks@
+\let \voidb@x \voidbox
+\newtoks \toks@ % \scratchtoks
%D We define \type {\newif} a la plain \TEX, but will redefine it later. As
%D Knuth says:
diff --git a/tex/context/interface/common/i-en-xml.xml b/tex/context/interface/common/i-en-xml.xml
index 441ff07d2..f37a15976 100644
--- a/tex/context/interface/common/i-en-xml.xml
+++ b/tex/context/interface/common/i-en-xml.xml
@@ -5,25 +5,25 @@
<!-- some common definitions -->
<cd:define name="xml-node">
- <cd:argument><cd:constant type="cd:node"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:node"/></keywords>
</cd:define>
<cd:define name="xml-path">
- <cd:argument><cd:constant type="cd:path"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:path"/></keywords>
</cd:define>
<cd:define name="xml-node-path">
- <cd:argument><cd:constant type="cd:node"/></cd:argument>
- <cd:argument><cd:constant type="cd:lpath"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:node"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:lpath"/></keywords>
</cd:define>
<cd:define name="xml-true">
- <cd:argument><cd:constant type="cd:true"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:true"/></keywords>
</cd:define>
<cd:define name="xml-true-false">
- <cd:argument><cd:constant type="cd:true"/></cd:argument>
- <cd:argument><cd:constant type="cd:false"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:true"/></cd:keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:false"/></cd:keywords>
</cd:define>
<!-- the definitions themselves -->
@@ -32,7 +32,7 @@
<cd:command name="xmlmain">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
@@ -109,14 +109,14 @@
<cd:command name="xmlposition">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:number"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:number"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlelement">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:number"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:number"/></keywords>
</cd:arguments>
</cd:command>
@@ -129,30 +129,30 @@
<cd:command name="xmlsnippet">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:number"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:number"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlconcat">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlconcatrange">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
- <cd:argument><cd:constant type="cd:first"/></cd:argument>
- <cd:argument><cd:constant type="cd:last"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:first"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:last"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlcommand">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
@@ -187,70 +187,70 @@
<cd:command name="xmlprettyprint">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlloadfile">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlloadbuffer">
<cd:arguments>
- <cd:argument><cd:constant type="cd:buffer"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:buffer"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlloaddata">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlloadonly">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlprocessfile">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlprocessbuffer">
<cd:arguments>
- <cd:argument><cd:constant type="cd:buffer"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:buffer"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlprocessdata">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
- <cd:argument><cd:constant type="cd:xmlsetup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:xmlsetup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlinclude">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
@@ -273,22 +273,22 @@
<cd:command name="xmlatt">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlattdef">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlrefatt">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
@@ -297,30 +297,30 @@
<cd:command name="xmlattribute">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlattributedef">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlchainatt">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlchainattdef">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
@@ -344,103 +344,103 @@
<cd:command name="xmlsetup">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlsetsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:lpath"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:lpath"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlremovesetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlremovedocumentsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlflushdocumentsetups">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlresetsetups">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlresetdocumentsetups">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlprependsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlappendsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlbeforesetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlaftersetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlprependdocumentsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlappenddocumentsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlbeforedocumentsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlafterdocumentsetup">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
@@ -449,15 +449,15 @@
<cd:command name="xmlregistereddocumentsetups">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:setup"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:setup"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlsetfunction">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:luafunction"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:luafunction"/></keywords>
</cd:arguments>
</cd:command>
@@ -533,96 +533,96 @@
<cd:command name="xmlregisterns">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:url"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:url"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlregisterns">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlremapname">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlremapnamespace">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlchecknamespace">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlmapvalue">
<cd:arguments>
- <cd:argument><cd:constant type="cd:category"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:category"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlvalue">
<cd:arguments>
- <cd:argument><cd:constant type="cd:category"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:category"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmldoifelsevalue">
<cd:arguments>
- <cd:argument><cd:constant type="cd:category"/></cd:argument>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:category"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
<cd:resolve name="xml-true-false"/>
</cd:arguments>
</cd:command>
<cd:command name="xmlloaddirectives">
<cd:arguments>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlsave">
<cd:arguments>
<cd:resolve name="xml-node"/>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmltofile">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:file"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:file"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmltobuffer">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:buffer"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:buffer"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmltobufferverbose">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:buffer"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:buffer"/></keywords>
</cd:arguments>
</cd:command>
@@ -631,7 +631,7 @@
<cd:command name="xmltoparameters">
<cd:arguments>
<cd:resolve name="xml-node-path"/>
- <cd:argument><cd:constant type="cd:buffer"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:buffer"/></keywords>
</cd:arguments>
</cd:command>
@@ -671,13 +671,13 @@
<cd:command name="xmlinjector">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmlapplyselectors">
<cd:arguments>
- <cd:argument><cd:constant type="cd:node"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:node"/></keywords>
</cd:arguments>
</cd:command>
@@ -685,15 +685,15 @@
<cd:command name="xmlsetentity">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
<cd:command name="xmltexentity">
<cd:arguments>
- <cd:argument><cd:constant type="cd:name"/></cd:argument>
- <cd:argument><cd:constant type="cd:text"/></cd:argument>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:name"/></keywords>
+ <cd:keywords delimiters="braces"><cd:constant type="cd:text"/></keywords>
</cd:arguments>
</cd:command>
diff --git a/tex/context/modules/mkiv/x-set-11.mkiv b/tex/context/modules/mkiv/x-set-11.mkiv
index 3e9dfed8c..e2de3e9b8 100644
--- a/tex/context/modules/mkiv/x-set-11.mkiv
+++ b/tex/context/modules/mkiv/x-set-11.mkiv
@@ -628,18 +628,6 @@
\stopluacode
-% \startxmlsetups xml:setups:basics
-% \xmlinclude{#1}{include}{filename}%
-% \xmlsetsetup {#1} {*} {-}
-% \xmlsetsetup {#1} {
-% sequence|string|variable|assignments|keywords|content|displaymath|index|math|argument|
-% nothing|file|position|reference|csname|destination|triplet|word|
-% resolve|define|
-% parameter|constant|inherit|parameter
-% } {xml:setups:*}
-% \xmlfunction{#1}{setups_define}
-% \stopxmlsetups
-
\startxmlsetups xml:setups:basics
\xmlinclude{#1}{include}{filename}%
\xmlsetsetup {#1} {*} {xml:setups:*}
@@ -767,7 +755,7 @@
\enablemode[setups-pass-one]%
\hskip.5em\unknown\hskip.5em
\doif {\xmlatt{#1}{generated}} {yes} {
- \bssl
+ \ttbs
}
\letterbackslash
\doifsomethingelse {\xmlatt{#1}{end}} {
@@ -902,7 +890,6 @@
\startxmlsetups xml:setups:content \showSETUPcomponent{#1}{content} {content} \stopxmlsetups
\startxmlsetups xml:setups:displaymath \showSETUPcomponent{#1}{displaymath}{display math}\stopxmlsetups
-\startxmlsetups xml:setups:argument \showSETUPcomponent{#1}{argument} {argument} \stopxmlsetups
\startxmlsetups xml:setups:index \showSETUPcomponent{#1}{index} {index} \stopxmlsetups
\startxmlsetups xml:setups:math \showSETUPcomponent{#1}{math} {math} \stopxmlsetups
\startxmlsetups xml:setups:nothing \showSETUPcomponent{#1}{nothing} {nothing} \stopxmlsetups
@@ -913,6 +900,13 @@
\startxmlsetups xml:setups:destination \showSETUPcomponent{#1}{destination}{destination} \stopxmlsetups
\startxmlsetups xml:setups:triplet \showSETUPcomponent{#1}{triplet} {triplet} \stopxmlsetups
\startxmlsetups xml:setups:word \showSETUPcomponent{#1}{word} {word} \stopxmlsetups
+\startxmlsetups xml:setups:template \showSETUPcomponent{#1}{template} {template} \stopxmlsetups
+\startxmlsetups xml:setups:angles \showSETUPcomponent{#1}{angles} {angles} \stopxmlsetups
+\startxmlsetups xml:setups:apply \showSETUPcomponent{#1}{apply} {apply} \stopxmlsetups
+\startxmlsetups xml:setups:twowords \showSETUPcomponent{#1}{twowords} {twowords} \stopxmlsetups
+\startxmlsetups xml:setups:threewords \showSETUPcomponent{#1}{threewords} {threewords} \stopxmlsetups
+\startxmlsetups xml:setups:text \showSETUPcomponent{#1}{text} {text} \stopxmlsetups
+\startxmlsetups xml:setups:to \showSETUPcomponent{#1}{to} {to} \stopxmlsetups
\unexpanded\def\showSETUPcomponent#1#2#3%
{\doifelsemode{setups-pass-one}
@@ -1108,15 +1102,10 @@
\c!setup!definereserved {cd:false} {\c!setup!internal!{\getmessage{setup}{false}}}
\c!setup!definereserved {cd:category} {\c!setup!internal!{\getmessage{setup}{category}}}
-\c!setup!definereserved {cd:noargument} {\c!setup!command! {\texescape}}
-\c!setup!definereserved {cd:oneargument} {\c!setup!command! {\texescape\texthash1}}
-\c!setup!definereserved {cd:twoarguments} {\c!setup!command! {\texescape\texthash1\texthash2}}
-\c!setup!definereserved {cd:threearguments} {\c!setup!command! {\texescape\texthash1\texthash2\texthash3}}
-
-\c!setup!definereserved {cd:noargumentwrapped} {\c!setup!command! {\texescape...}}
-\c!setup!definereserved {cd:oneargumentwrapped} {\c!setup!command! {\texescape...\texthash1}}
-\c!setup!definereserved {cd:twoargumentswrapped} {\c!setup!command! {\texescape...\texthash1\texthash2}}
-\c!setup!definereserved {cd:threeargumentswrapped} {\c!setup!command! {\texescape...\texthash1\texthash2\texthash3}}
+%c!setup!definereserved {cd:noargument} {\c!setup!command! {}}
+\c!setup!definereserved {cd:oneargument} {\c!setup!command! {\texthash1}}
+\c!setup!definereserved {cd:twoarguments} {\c!setup!command! {\texthash1\texthash2}}
+\c!setup!definereserved {cd:threearguments} {\c!setup!command! {\texthash1\texthash2\texthash3}}
\c!setup!definereserved {cd:sign} {[-+]}
@@ -1129,7 +1118,7 @@
{\doifelse{\xmlatt{#1}{list}}{yes}{#3}{#2}}%
\setbox2=\hbox to \wd0
{\hss
- \raise\exheight\hbox
+ \raise1.25\exheight\hbox
{\tx\ifcase\maximumSETUPargument\relax
\or*\else\currentSETUPargument
\fi}%
@@ -1167,41 +1156,94 @@
\fi
\hss}}
-\unexpanded\def\showSETUPassignment#1%
- {\ifcase\kindofsetup
- \showSETUPline{[.=.]}%
- \else
- \showSETUP{#1}
- {[.=.]}
- {[..,.=.,..]}%
- \fi}
-
-\unexpanded\def\showSETUPkeyword#1%
- {\ifcase\kindofsetup
- \showSETUPline{[...]}%
- \else
- \showSETUP{#1}
- {[...]}
- {[...,...]}%
- \fi}
-
-\unexpanded\def\showSETUPargument#1%
- {\ifcase\kindofsetup
- \showSETUPline{%
- \letterleftbrace
- \xmlfilter{#1}{/cd:constant/command(xml:setups:constant:value)}% always one
- \letterrightbrace
- }
- \else
- \showSETUP{#1}
- {\letterleftbrace..\letterrightbrace}
- {\letterleftbrace..,...,..\letterrightbrace}%
- \fi}
+% assignments
+
+\xmlmapvalue {setups:assignment} {braces} {\showSETUPassignmentbraces}
+\xmlmapvalue {setups:assignment} {brackets} {\showSETUPassignmentbrackets}
+
+\starttexdefinition unexpanded showSETUPassignmentbraces #1
+ \ifcase\kindofsetup
+ \showSETUPline{\letterleftbrace.=.\letterrightbrace}
+ \else
+ \showSETUP{#1}
+ {\letterleftbrace.=.\letterrightbrace}
+ {\letterleftbrace.=.,.=.\letterrightbrace}
+ \fi
+\stoptexdefinition
+
+\starttexdefinition unexpanded showSETUPassignmentbrackets #1
+ \ifcase\kindofsetup
+ \showSETUPline{[.=.]}
+ \else
+ \showSETUP{#1}
+ {[.=.]}
+ {[.=.,.=.]}
+ \fi
+\stoptexdefinition
+
+\starttexdefinition unexpanded showSETUPassignment #1
+ \xmlvalue
+ {setups:assignment}
+ {\xmlattdef{#1}{delimiters}{brackets}}
+ {\showSETUPkeywordbrackets}
+ {#1}
+\stoptexdefinition
+
+% we could also add specifying separatos (default comma) but let's do
+% this stepwise
+
+% keywords
+
+\xmlmapvalue {setups:keyword} {braces} {\showSETUPkeywordbraces}
+\xmlmapvalue {setups:keyword} {brackets} {\showSETUPkeywordbrackets}
+
+\starttexdefinition unexpanded showSETUPkeywordbraces #1
+ \ifcase\kindofsetup
+ \showSETUPline{\letterleftbrace...\letterrightbrace}
+ \else
+ \showSETUP{#1}
+ {\letterleftbrace...\letterrightbrace}
+ {\letterleftbrace...,...\letterrightbrace}
+ \fi
+\stoptexdefinition
+
+\starttexdefinition unexpanded showSETUPkeywordbrackets #1
+ \ifcase\kindofsetup
+ \showSETUPline{[...]}
+ \else
+ \showSETUP{#1}
+ {[...]}
+ {[...,...]}
+ \fi
+\stoptexdefinition
+
+\starttexdefinition unexpanded showSETUPkeyword #1
+ \xmlvalue
+ {setups:keyword}
+ {\xmlattdef{#1}{delimiters}{brackets}}
+ {\showSETUPkeywordbrackets}
+ {#1}
+\stoptexdefinition
+
+% arguments
+
+% \unexpanded\def\showSETUPargument#1%
+% {\ifcase\kindofsetup
+% \showSETUPline{%
+% \letterleftbrace
+% \xmlfilter{#1}{/cd:constant/command(xml:setups:constant:value)}% always one
+% \letterrightbrace
+% }
+% \else
+% \showSETUP{#1}
+% {\letterleftbrace..\letterrightbrace}
+% {\letterleftbrace..,...,..\letterrightbrace}%
+% \fi}
\unexpanded\def\showSETUPdisplaymath#1%
{\showSETUP{#1}
{\letterdollar\letterdollar...\letterdollar\letterdollar}
- {\letterdollar\letterdollar...\$\$}}
+ {\letterdollar\letterdollar...\letterdollar\letterdollar}}
\unexpanded\def\showSETUPindex#1%
{\showSETUP{#1}
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua
index 836470ca2..ba99dcce3 100644
--- a/tex/generic/context/luatex/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : c:/data/develop/context/sources/luatex-fonts-merged.lua
-- parent file : c:/data/develop/context/sources/luatex-fonts.lua
--- merge date : 01/29/16 19:00:08
+-- merge date : 01/31/16 11:42:23
do -- begin closure to overcome local limits and interference