Taco Hoekwater schrieb am 14.12.18 um 14:29:
Hi,
Whenever I have a few off minutes, I am working on an extension to the wiki.
The idea is to have an extra extension tag <syntax>…</syntax> which fetches
the html syntax of a ConTeXt command from a wiki database table. More later
on that. While working on that though, I found a few small issues with the
xml interface files.
Here are a few typos (character swaps):
<cd:command ategory="fonts" clevel="style" file="font-ini.mkiv"
name="switchstyleonly”>
<cd:command evel="document" file="buff-ini.mkiv" generated="yes" lcategory="buffer" name="buffer"
type="environment" variant="instance”>
<cd:command ategory="fonts" clevel="style" file="font-fea.mkvi" name="subtractfeature"
variant="direct">
Fixed (copy and paste error).
And these two are the only “system conditional”s, which probably means they
should just be “system”:
<cd:command category="verbatim" file="buff-ver.mkiv" level="system conditional"
name="doifelsetypingfile">
<cd:command category="verbatim" file="buff-ver.mkiv" level="system conditional"
name="doiftypingfileelse">
Fixed (should be a argument for the category attribute).
A few other commands have no level attribute at all (maybe intentional):
<cd:command category="xml" file="strc-tag.mkiv" name="element"
type="environment”>
<cd:command category="whitespace" file="spac-ver.mkiv" name="unpacked"
type="environment”/>
<cd:command category="whitespace" file="spac-ver.mkiv" name="locallinecorrection"
type="environment”>
<cd:command category="columns" file="page-mul.mkiv" name="columnspan"
type="environment”>
<cd:command category="colors" file="colo-ini.mkiv" name="definepalet">
<cd:command category="colors" file="colo-ini.mkiv" name="transparent"
type="environment">
Added (I guess I forgot to add them but Idris never complaint about the
messing attributes).
Besides those, I also have an actual question:
Is there an intended difference between
<cd:sequence>
<cd:instance value="framed"/>
</cd:sequence>
and
<cd:sequence>
<cd:variable value="highlight"/>
</cd:sequence>
(cd:instance versus cd:variable)?
I can’t remember the details but with variable the generated commands
shows always
the same name in the output but instance generates a general version of
the command
(which uses slanted uppercase characters, e.g.
\FRAMED[..,..=..,..]{...}) and also
the output for the instances (e.g. \inframed).
The purpose of this is to have one entry for a section types (chapter,
section etc.)
with a single definition while in the past each type had its own entry.
Wolfgang
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context