Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Dec 21, 2023
1 parent 8fc8471 commit a2ba9de
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 19 deletions.
43 changes: 26 additions & 17 deletions lib/metanorma/cc/basicdoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -715,27 +715,36 @@
</define>
<define name="ruby">
<element name="ruby">
<zeroOrMore>
<choice>
<ref name="PureTextElement"/>
<ref name="rp"/>
<ref name="rt"/>
</choice>
</zeroOrMore>
<choice>
<ref name="ruby_pronunciation"/>
<ref name="ruby_annotation"/>
</choice>
<choice>
<text/>
<ref name="ruby"/>
</choice>
</element>
</define>
<define name="rp">
<element name="rp">
<zeroOrMore>
<ref name="PureTextElement"/>
</zeroOrMore>
<define name="ruby_pronunciation">
<element name="pronunciation">
<attribute name="value"/>
<optional>
<attribute name="script"/>
</optional>
<optional>
<attribute name="lang"/>
</optional>
</element>
</define>
<define name="rt">
<element name="rt">
<zeroOrMore>
<ref name="PureTextElement"/>
</zeroOrMore>
<define name="ruby_annotation">
<element name="annotation">
<attribute name="value"/>
<optional>
<attribute name="script"/>
</optional>
<optional>
<attribute name="lang"/>
</optional>
</element>
</define>
<define name="br">
Expand Down
13 changes: 13 additions & 0 deletions lib/metanorma/cc/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@
<ref name="image"/>
</element>
</define>
<define name="depiction">
<element name="depiction">
<optional>
<attribute name="scope"/>
</optional>
<zeroOrMore>
<ref name="image"/>
</zeroOrMore>
</element>
</define>
<define name="NameWithVariants">
<element name="primary">
<ref name="LocalizedString"/>
Expand Down Expand Up @@ -760,6 +770,9 @@
<optional>
<ref name="validity"/>
</optional>
<optional>
<ref name="depiction"/>
</optional>
</define>
<define name="ReducedBibliographicItem">
<optional>
Expand Down
12 changes: 11 additions & 1 deletion lib/metanorma/cc/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
these elements; we just want one namespace for any child grammars
of this.
-->
<!-- VERSION v1.2.8 -->
<!-- VERSION v1.2.9 -->
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="reqt.rng"/>
<include href="basicdoc.rng">
Expand Down Expand Up @@ -1958,6 +1958,16 @@
<data type="boolean"/>
</attribute>
</optional>
<optional>
<attribute name="type">
<choice>
<value>letter</value>
<value>symbol</value>
<value>formula</value>
<value>equation</value>
</choice>
</attribute>
</optional>
<element name="name">
<oneOrMore>
<choice>
Expand Down
2 changes: 1 addition & 1 deletion lib/metanorma/cc/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module CC
VERSION = "2.3.4".freeze
VERSION = "2.3.5".freeze
end
end
3 changes: 3 additions & 0 deletions spec/isodoc/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
expect(htmlencode(metadata(csdc.info(docxml, nil)).to_s
.gsub(", :", ",\n:"))).to be_equivalent_to <<~OUTPUT
{:accesseddate=>"XXX",
:adapteddate=>"XXX",
:agency=>"CalConnect",
:announceddate=>"XXX",
:authors=>["Fred Flintstone", "Barney Rubble"],
:authors_affiliations=>{""=>["Fred Flintstone"], "Bedrock Inc."=>["Barney Rubble"]},
:circulateddate=>"XXX",
Expand Down Expand Up @@ -102,6 +104,7 @@
:revdate_monthyear=>"January 2000",
:roles_authors_affiliations=>{"author"=>{"Bedrock Inc."=>["Barney Rubble"]}, "editor"=>{""=>["Fred Flintstone"]}},
:script=>"Latn",
:stable_untildate=>"XXX",
:stage=>"Working Draft",
:stage_display=>"Working Draft",
:stageabbr=>"WD",
Expand Down
12 changes: 12 additions & 0 deletions spec/metanorma/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@
<name>DOC TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
<presentation-metadata>
<name>PDF TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
</metanorma-extension>
#{BOILERPLATE.sub(/<legal-statement/, "#{BOILERPLATE_LICENSE}\n<legal-statement") \
.sub(/#{Date.today.year} The Calendaring and Scheduling Consortium/, \
Expand Down Expand Up @@ -247,6 +251,10 @@
<name>DOC TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
<presentation-metadata>
<name>PDF TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
</metanorma-extension>
#{BOILERPLATE}
<sections/>
Expand Down Expand Up @@ -322,6 +330,10 @@
<name>DOC TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
<presentation-metadata>
<name>PDF TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
</metanorma-extension>
#{BOILERPLATE.sub(/<legal-statement/, "#{BOILERPLATE_LICENSE}\n<legal-statement")}
<sections/>
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ def boilerplate_read(file)
<name>DOC TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
<presentation-metadata>
<name>PDF TOC Heading Levels</name>
<value>2</value>
</presentation-metadata>
</metanorma-extension>
#{BOILERPLATE}
HDR
Expand Down

0 comments on commit a2ba9de

Please sign in to comment.