Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 5, 2024
1 parent 14acbf0 commit 70cb912
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
6 changes: 3 additions & 3 deletions grammars/basicdoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,9 @@ FigureBody =
## An optional definitions list defining any symbols used in the figure
dl?,
## Notes whose scope is the current block
note*
note*,
## A URI or other reference intended to link to an externally hosted image (or equivalent)
source?,
source?

FigureNoIdBody =
## A URI or other reference intended to link to an externally hosted image (or equivalent)
Expand Down Expand Up @@ -1036,7 +1036,7 @@ stem =

StemAttributes =
## The notation used to mathematically format the text
attribute type { "MathML" | "AsciiMath" | "LaTeX" },
attribute type { "MathML" | "AsciiMath" | "LaTeX" }

annotation =
element annotation {
Expand Down
43 changes: 25 additions & 18 deletions grammars/basicdoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ so the hierarchical arrangement of sections can be arbitrarily deep</a:documenta
</define>
<define name="Basic-Section">
<a:documentation>Group of blocks within text, which is a leaf node in the hierarchical organisation of text (does not contain any sections of its own)</a:documentation>
<ref name="OptionalId"/>
<ref name="LocalizedStringAttributes"/>
<ref name="Basic-Section-Attributes"/>
<optional>
<ref name="section-title">
<a:documentation>Title of the section</a:documentation>
Expand All @@ -74,6 +73,10 @@ so the hierarchical arrangement of sections can be arbitrarily deep</a:documenta
</ref>
</zeroOrMore>
</define>
<define name="Basic-Section-Attributes">
<ref name="OptionalId"/>
<ref name="LocalizedStringAttributes"/>
</define>
<define name="references">
<a:documentation>Sections containing zero or more bibliographical items (as described in Relaton), along with any prefatory text</a:documentation>
<element name="references">
Expand Down Expand Up @@ -363,7 +366,7 @@ in a document (e.g. sourcecode annotations)</a:documentation>
</element>
</define>
<define name="NoteAttributes">
<empty/>
<ref name="NumberingAttrs"/>
</define>
<define name="NoteBody">
<oneOrMore>
Expand Down Expand Up @@ -1157,11 +1160,6 @@ to be auto-numbered and captioned differently</a:documentation>
</optional>
</define>
<define name="FigureBody">
<optional>
<ref name="source">
<a:documentation>A URI or other reference intended to link to an externally hosted image (or equivalent)</a:documentation>
</ref>
</optional>
<optional>
<ref name="tname">
<a:documentation>The caption of the block</a:documentation>
Expand Down Expand Up @@ -1195,6 +1193,11 @@ to be auto-numbered and captioned differently</a:documentation>
<a:documentation>Notes whose scope is the current block</a:documentation>
</ref>
</zeroOrMore>
<optional>
<ref name="source">
<a:documentation>A URI or other reference intended to link to an externally hosted image (or equivalent)</a:documentation>
</ref>
</optional>
</define>
<define name="FigureNoIdBody">
<optional>
Expand Down Expand Up @@ -1621,7 +1624,9 @@ which can be bookmarks as well as block or section references</a:documentation>
<element name="link">
<ref name="HyperlinkAttributes"/>
<oneOrMore>
<ref name="PureTextElement"/>
<ref name="PureTextElement">
<a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
</ref>
</oneOrMore>
</element>
</define>
Expand All @@ -1641,7 +1646,6 @@ which can be bookmarks as well as block or section references</a:documentation>
</optional>
</define>
<define name="xref">
<a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `&lt;xx&gt;my link text&lt;/xx&gt;`)</a:documentation>
<a:documentation>Inline element, which references an identifier of a document, a block in a document, or an element in a document</a:documentation>
<element name="xref">
<ref name="XrefAttributes"/>
Expand Down Expand Up @@ -1851,14 +1855,7 @@ or as the string "auto"</a:documentation>
<define name="stem">
<a:documentation>Mathematically formatted text</a:documentation>
<element name="stem">
<attribute name="type">
<a:documentation>The notation used to mathematically format the text</a:documentation>
<choice>
<value>MathML</value>
<value>AsciiMath</value>
<value>LaTeX</value>
</choice>
</attribute>
<ref name="StemAttributes"/>
<oneOrMore>
<choice>
<a:documentation>The content of the mathematically formatted text</a:documentation>
Expand All @@ -1868,6 +1865,16 @@ or as the string "auto"</a:documentation>
</oneOrMore>
</element>
</define>
<define name="StemAttributes">
<attribute name="type">
<a:documentation>The notation used to mathematically format the text</a:documentation>
<choice>
<value>MathML</value>
<value>AsciiMath</value>
<value>LaTeX</value>
</choice>
</attribute>
</define>
<define name="annotation">
<element name="annotation">
<ref name="RequiredId"/>
Expand Down

0 comments on commit 70cb912

Please sign in to comment.