Skip to content

Commit

Permalink
Merge pull request #943 from metanorma/feature/presxml-autonum
Browse files Browse the repository at this point in the history
Presentation XML captions refactor: https://github.com/metanorma/isod…
  • Loading branch information
opoudjis authored Dec 8, 2024
2 parents 6c8f2d9 + 909e177 commit c64fc0d
Show file tree
Hide file tree
Showing 26 changed files with 921 additions and 877 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
gemspec

eval_gemfile("Gemfile.devel") rescue nil

1 change: 1 addition & 0 deletions Gemfile.devel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "feature/presxml-autonum"
14 changes: 13 additions & 1 deletion lib/metanorma/standoc/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -1783,9 +1783,21 @@ that the `number` given for the series applies to the second iteration of number
May be used to differentiate rendering of notes in bibliographies</a:documentation>
</attribute>
</optional>
<ref name="LocalizedMarkedUpString">
<ref name="LocalizedStringAttributes">
<a:documentation>The content of the note</a:documentation>
</ref>
<choice>
<oneOrMore>
<ref name="BasicBlockNoId">
<a:documentation>Multiple blocks of content</a:documentation>
</ref>
</oneOrMore>
<oneOrMore>
<ref name="TextElement">
<a:documentation>Single block of content</a:documentation>
</ref>
</oneOrMore>
</choice>
</element>
</define>
<define name="bibabstract">
Expand Down
10 changes: 5 additions & 5 deletions lib/metanorma/standoc/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ normative or informative references, some split references into sections organiz
<a:documentation>Content of note</a:documentation>
<oneOrMore>
<choice>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand Down Expand Up @@ -412,7 +412,7 @@ normative or informative references, some split references into sections organiz
<element name="note">
<ref name="OptionalId"/>
<oneOrMore>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
</oneOrMore>
</element>
</define>
Expand Down Expand Up @@ -1977,7 +1977,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the verbal representation of the term</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="dl"/>
<ref name="ol"/>
<ref name="ul"/>
Expand Down Expand Up @@ -2015,7 +2015,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the term note</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand All @@ -2037,7 +2037,7 @@ used in document amendments</a:documentation>
<ref name="dl"/>
<ref name="quote"/>
<ref name="sourcecode"/>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="figure"/>
</choice>
</oneOrMore>
Expand Down
4 changes: 2 additions & 2 deletions spec/metanorma/processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
processor.output(<<~INPUT, "test.xml", "test.html", :html)
<iso-standard xmlns="http://riboseinc.com/isoxml">
<sections>
<terms id="H" obligation="normative" displayorder="1"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
<terms id="H" obligation="normative" displayorder="1"><fmt-title>Terms, Definitions, Symbols and Abbreviated Terms</fmt-title>
<term id="J">
<preferred>Term2</preferred>
</term>
Expand All @@ -64,7 +64,7 @@
processor.output(<<~INPUT, "test.xml", "test.doc", :doc)
<iso-standard xmlns="http://riboseinc.com/isoxml">
<sections>
<terms id="H" obligation="normative" displayorder="1"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
<terms id="H" obligation="normative" displayorder="1"><fmt-title>Terms, Definitions, Symbols and Abbreviated Terms</fmt-title>
<term id="J">
<preferred>Term2</preferred>
</term>
Expand Down
34 changes: 17 additions & 17 deletions spec/vcr_cassettes/bipm.yml

Large diffs are not rendered by default.

136 changes: 76 additions & 60 deletions spec/vcr_cassettes/bsi16341.yml

Large diffs are not rendered by default.

192 changes: 96 additions & 96 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec2.yml

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions spec/vcr_cassettes/doi.yml

Large diffs are not rendered by default.

280 changes: 146 additions & 134 deletions spec/vcr_cassettes/doi2.yml

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions spec/vcr_cassettes/dual_refs.yml

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions spec/vcr_cassettes/hide_refs.yml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions spec/vcr_cassettes/iev_03-01-02.yml

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions spec/vcr_cassettes/iev_103-01-02.yml

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions spec/vcr_cassettes/isobib_get_123.yml

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions spec/vcr_cassettes/isobib_get_123_1.yml

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions spec/vcr_cassettes/isobib_get_123_1_fr.yml

Large diffs are not rendered by default.

96 changes: 49 additions & 47 deletions spec/vcr_cassettes/isobib_get_123_2001_and_iev.yml

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions spec/vcr_cassettes/isobib_get_123_2001a.yml

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions spec/vcr_cassettes/isobib_get_124.yml

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions spec/vcr_cassettes/merge_refs.yml

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions spec/vcr_cassettes/rfcbib_get_rfc8341.yml

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions spec/vcr_cassettes/std-link.yml

Large diffs are not rendered by default.

0 comments on commit c64fc0d

Please sign in to comment.