Skip to content

Commit

Permalink
update layout attributes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Jan 11, 2025
1 parent eda07fa commit 1e8e932
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
7 changes: 6 additions & 1 deletion project-examples/scripts/latex-document.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ BChapter= element latexSEbible:Chapter {

Chapter-Title = element latexSEbible:Chapter-Title {
showtags-attributes,
layout-attributes,
attribute rolemaps-to {"H3"},
attribute id {text}?,
attribute title {text}?,
Expand All @@ -153,7 +154,7 @@ pdf2-attributes =
showtags-attributes

showtags-attributes =
attribute af {"yes" | "no"}?,
attribute af {text}?,
attribute rolemapped-from {text}?,
attribute referenced-as {text}?

Expand Down Expand Up @@ -687,20 +688,23 @@ codeline = element latexSE:codeline {
\list = element latexSE:list {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= \list

itemize = element latexSE:itemize {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= itemize

enumerate = element latexSE:enumerate {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= enumerate
Expand All @@ -720,6 +724,7 @@ quotation = element latexSE:quotation {
description= element latexSE:description {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}

Expand Down
12 changes: 6 additions & 6 deletions project-examples/scripts/latex-document.rng
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
<define name="Chapter-Title">
<element name="latexSEbible:Chapter-Title">
<ref name="showtags-attributes"/>
<ref name="layout-attributes"/>
<attribute name="rolemaps-to">
<value>H3</value>
</attribute>
Expand Down Expand Up @@ -343,12 +344,7 @@
</define>
<define name="showtags-attributes">
<optional>
<attribute name="af">
<choice>
<value>yes</value>
<value>no</value>
</choice>
</attribute>
<attribute name="af"/>
</optional>
<optional>
<attribute name="rolemapped-from"/>
Expand Down Expand Up @@ -2902,6 +2898,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand All @@ -2916,6 +2913,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand All @@ -2930,6 +2928,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand Down Expand Up @@ -2966,6 +2965,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand Down
7 changes: 6 additions & 1 deletion project-examples/scripts/latex-document17.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ BChapter= element latexSEbible:Chapter {

Chapter-Title = element latexSEbible:Chapter-Title {
showtags-attributes,
layout-attributes,
attribute rolemaps-to {"H3"},
attribute id {text}?,
attribute title {text}?,
Expand All @@ -156,7 +157,7 @@ pdf2-attributes =
showtags-attributes

showtags-attributes =
attribute af {"yes" | "no"}?,
attribute af {text}?,
attribute rolemapped-from {text}?,
attribute referenced-as {text}?

Expand Down Expand Up @@ -690,20 +691,23 @@ codeline = element latexSE:codeline {
\list = element latexSE:list {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= \list

itemize = element latexSE:itemize {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= itemize

enumerate = element latexSE:enumerate {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}
L |= enumerate
Expand All @@ -723,6 +727,7 @@ quotation = element latexSE:quotation {
description= element latexSE:description {
attribute rolemaps-to {"L"},
pdf2-attributes,
list-attributes,
LI*
}

Expand Down
12 changes: 6 additions & 6 deletions project-examples/scripts/latex-document17.rng
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
<element>
<name ns="">Chapter-Title</name>
<ref name="showtags-attributes"/>
<ref name="layout-attributes"/>
<attribute name="rolemaps-to">
<value>H3</value>
</attribute>
Expand Down Expand Up @@ -387,12 +388,7 @@
</define>
<define name="showtags-attributes">
<optional>
<attribute name="af">
<choice>
<value>yes</value>
<value>no</value>
</choice>
</attribute>
<attribute name="af"/>
</optional>
<optional>
<attribute name="rolemapped-from"/>
Expand Down Expand Up @@ -3012,6 +3008,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand All @@ -3027,6 +3024,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand All @@ -3042,6 +3040,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand Down Expand Up @@ -3081,6 +3080,7 @@
<value>L</value>
</attribute>
<ref name="pdf2-attributes"/>
<ref name="list-attributes"/>
<zeroOrMore>
<ref name="LI"/>
</zeroOrMore>
Expand Down

0 comments on commit 1e8e932

Please sign in to comment.