metanorma-plateau 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a8305a8257b5394f752d00acac7528bef4f3c705d3d48de912a3b7e0e56fc6b
4
- data.tar.gz: 86a26d997e46cb1df2a6507393a41053e5b97f35f123f2dc88fb6f1c01605298
3
+ metadata.gz: 10c7b63bef90ba83fc5fd3313f8e34f1fed8b7df4b0446cc1c6e704512280059
4
+ data.tar.gz: 7a10a1ffa2e99a91067fb30c365eb8cb905999346befc7dbaf58f02137784d38
5
5
  SHA512:
6
- metadata.gz: ebd2eba5567af8905624373946856776907927f4268a5c9b76cc9c30db7eed2fc522975e871b08c2fd0e0d66f10059178782025efa39b2bc32da9edbbfd98896
7
- data.tar.gz: 4e7f84a4f116a3cc4b4b6fbfb64d11b1b147b56afe7a79d557de1e28d0fc3ef208338c974abc4b11761592a6aeb9d13b4da15db18fabb5ee4c3c3f57e8d07128
6
+ metadata.gz: 880958057850f42dd2af7cc25bf7a5f791be0e22925cf7745c768c61bb2cfad3a26f3c69a69f6b10202756f0b9bc72b47da5c3bbc952ca07ebcfe59017101996
7
+ data.tar.gz: 28f184250ae4aaf41a82d0db807b571e041400216993af0c34792a88ef9d6903e209d4ab920c7823266bb854a8ce48b2ad2e865a8623d8d0d8873e31587947f3
@@ -2,7 +2,7 @@ require_relative "base_convert"
2
2
 
3
3
  module IsoDoc
4
4
  module Plateau
5
- class HtmlConvert < IsoDoc::JIS::HtmlConvert
5
+ class HtmlConvert < IsoDoc::Jis::HtmlConvert
6
6
  def initialize(options)
7
7
  super
8
8
  @libdir = File.dirname(__FILE__)
@@ -3,7 +3,7 @@ require "twitter_cldr"
3
3
 
4
4
  module IsoDoc
5
5
  module Plateau
6
- class I18n < IsoDoc::JIS::I18n
6
+ class I18n < IsoDoc::Jis::I18n
7
7
  def load_file(fname)
8
8
  f = File.join(File.dirname(__FILE__), fname)
9
9
  File.exist?(f) ? YAML.load_file(f) : {}
@@ -22,7 +22,7 @@ module IsoDoc
22
22
  end
23
23
 
24
24
  def bibrenderer(options = {})
25
- ::Relaton::Render::JIS::General.new(options.merge(language: @lang,
25
+ ::Relaton::Render::Jis::General.new(options.merge(language: @lang,
26
26
  i18nhash: @i18n.get))
27
27
  end
28
28
  end
@@ -1,6 +1,6 @@
1
1
  module IsoDoc
2
2
  module Plateau
3
- class Metadata < IsoDoc::JIS::Metadata
3
+ class Metadata < IsoDoc::Jis::Metadata
4
4
  def docid(xml, _out)
5
5
  id = xml.at(ns("//bibdata/docidentifier[@type = 'PLATEAU']"))&.text or
6
6
  return
@@ -5163,7 +5163,8 @@
5163
5163
  </xsl:choose>
5164
5164
  </xsl:variable>
5165
5165
  <xsl:variable name="current_fn_number_text">
5166
- <xsl:value-of select="$current_fn_number"/>
5166
+
5167
+ <xsl:value-of select="$current_fn_number"/>
5167
5168
 
5168
5169
  </xsl:variable>
5169
5170
 
@@ -5199,8 +5200,10 @@
5199
5200
 
5200
5201
  <xsl:call-template name="insert_basic_link">
5201
5202
  <xsl:with-param name="element">
5202
- <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}" role="Lbl">
5203
- <xsl:copy-of select="$current_fn_number_text"/>
5203
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
5204
+ <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
5205
+ <xsl:copy-of select="$current_fn_number_text"/>
5206
+ </fo:inline>
5204
5207
  </fo:basic-link>
5205
5208
  </xsl:with-param>
5206
5209
  </xsl:call-template>
@@ -5485,7 +5488,7 @@
5485
5488
 
5486
5489
  <xsl:call-template name="refine_fn-reference-style"/>
5487
5490
 
5488
- <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
5491
+ <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="footnote {@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
5489
5492
  <xsl:if test="ancestor::*[local-name()='table'][1]/@id"> <!-- for footnotes in tables -->
5490
5493
  <xsl:attribute name="internal-destination">
5491
5494
  <xsl:value-of select="concat(@reference, '_', ancestor::*[local-name()='table'][1]/@id)"/>
@@ -6485,9 +6488,19 @@
6485
6488
  </fo:inline>
6486
6489
  </xsl:template>
6487
6490
 
6488
- <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
6491
+ <xsl:template match="text()[ancestor::*[local-name()='smallcap']]" name="smallcaps">
6492
+ <xsl:param name="txt"/>
6489
6493
  <!-- <xsl:variable name="text" select="normalize-space(.)"/> --> <!-- https://github.com/metanorma/metanorma-iso/issues/1115 -->
6490
- <xsl:variable name="text" select="."/>
6494
+ <xsl:variable name="text">
6495
+ <xsl:choose>
6496
+ <xsl:when test="$txt != ''">
6497
+ <xsl:value-of select="$txt"/>
6498
+ </xsl:when>
6499
+ <xsl:otherwise>
6500
+ <xsl:value-of select="."/>
6501
+ </xsl:otherwise>
6502
+ </xsl:choose>
6503
+ </xsl:variable>
6491
6504
  <xsl:variable name="ratio_">
6492
6505
  0.75
6493
6506
  </xsl:variable>
@@ -7933,9 +7946,12 @@
7933
7946
  <xsl:apply-templates/>
7934
7947
  </xsl:when>
7935
7948
  <xsl:otherwise>
7949
+ <xsl:variable name="alt_text">
7950
+ <xsl:call-template name="getAltText"/>
7951
+ </xsl:variable>
7936
7952
  <xsl:call-template name="insert_basic_link">
7937
7953
  <xsl:with-param name="element">
7938
- <fo:basic-link external-destination="{$target}" fox:alt-text="{$target}">
7954
+ <fo:basic-link external-destination="{$target}" fox:alt-text="{$alt_text}">
7939
7955
  <xsl:if test="$isLinkToEmbeddedFile = 'true'">
7940
7956
  <xsl:attribute name="role">Annot</xsl:attribute>
7941
7957
  </xsl:if>
@@ -7962,6 +7978,14 @@
7962
7978
  </fo:inline>
7963
7979
  </xsl:template> <!-- link -->
7964
7980
 
7981
+ <xsl:template name="getAltText">
7982
+ <xsl:choose>
7983
+ <xsl:when test="normalize-space(.) = ''"><xsl:value-of select="@target"/></xsl:when>
7984
+ <xsl:otherwise><xsl:value-of select="normalize-space(translate(normalize-space(), ' —', ' -'))"/></xsl:otherwise>
7985
+ <!-- <xsl:otherwise><xsl:value-of select="@target"/></xsl:otherwise> -->
7986
+ </xsl:choose>
7987
+ </xsl:template>
7988
+
7965
7989
  <!-- ======================== -->
7966
7990
  <!-- Appendix processing -->
7967
7991
  <!-- ======================== -->
@@ -7992,7 +8016,7 @@
7992
8016
  <xsl:template match="*[local-name() = 'callout']">
7993
8017
  <xsl:choose>
7994
8018
  <xsl:when test="normalize-space(@target) = ''">&lt;<xsl:apply-templates/>&gt;</xsl:when>
7995
- <xsl:otherwise><fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">&lt;<xsl:apply-templates/>&gt;</fo:basic-link></xsl:otherwise>
8019
+ <xsl:otherwise><fo:basic-link internal-destination="{@target}" fox:alt-text="{normalize-space()}">&lt;<xsl:apply-templates/>&gt;</fo:basic-link></xsl:otherwise>
7996
8020
  </xsl:choose>
7997
8021
  </xsl:template>
7998
8022
 
@@ -8021,7 +8045,10 @@
8021
8045
  <xsl:template match="*[local-name() = 'xref']">
8022
8046
  <xsl:call-template name="insert_basic_link">
8023
8047
  <xsl:with-param name="element">
8024
- <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
8048
+ <xsl:variable name="alt_text">
8049
+ <xsl:call-template name="getAltText"/>
8050
+ </xsl:variable>
8051
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{$alt_text}" xsl:use-attribute-sets="xref-style">
8025
8052
  <xsl:if test="string-length(normalize-space()) &lt; 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[local-name() = 'table' or local-name() = 'dl'])">
8026
8053
  <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
8027
8054
  </xsl:if>
@@ -10499,12 +10526,14 @@
10499
10526
 
10500
10527
  <xsl:when test="contains(normalize-space($fo_element), 'list')">
10501
10528
 
10502
- <xsl:variable name="provisional_distance_between_starts">
10529
+ <xsl:variable name="provisional_distance_between_starts_">
10503
10530
  7
10504
10531
  </xsl:variable>
10505
- <xsl:variable name="indent">
10532
+ <xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
10533
+ <xsl:variable name="indent_">
10506
10534
  0
10507
10535
  </xsl:variable>
10536
+ <xsl:variable name="indent" select="normalize-space($indent_)"/>
10508
10537
 
10509
10538
  <fo:list-block provisional-distance-between-starts="{$provisional_distance_between_starts}mm">
10510
10539
  <fo:list-item>
@@ -11226,14 +11255,17 @@
11226
11255
  </xsl:when>
11227
11256
  <xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
11228
11257
 
11229
- <xsl:variable name="label">
11258
+ <xsl:variable name="type" select="../@type"/>
11230
11259
 
11231
- <xsl:variable name="type" select="../@type"/>
11260
+ <xsl:variable name="label">
11232
11261
 
11233
11262
  <xsl:variable name="style_prefix_">
11234
11263
  <xsl:if test="$type = 'roman'">
11235
11264
  <!-- Example: (i) -->
11236
11265
  </xsl:if>
11266
+ <xsl:if test="$type = 'alphabet'">
11267
+
11268
+ </xsl:if>
11237
11269
  </xsl:variable>
11238
11270
  <xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
11239
11271
 
@@ -11259,13 +11291,15 @@
11259
11291
  <xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
11260
11292
  <xsl:value-of select="$style_prefix"/>
11261
11293
  </xsl:if>
11294
+
11262
11295
  <xsl:value-of select="@label"/>
11296
+
11263
11297
  <xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
11264
11298
  <xsl:value-of select="$style_suffix"/>
11265
11299
  </xsl:if>
11266
11300
  </xsl:variable>
11267
11301
 
11268
- <xsl:value-of select="normalize-space($label)"/>
11302
+ <xsl:value-of select="normalize-space($label)"/>
11269
11303
 
11270
11304
  </xsl:when>
11271
11305
  <xsl:otherwise> <!-- for ordered lists 'ol' -->
@@ -13576,7 +13610,8 @@
13576
13610
  <xsl:variable name="description" select="normalize-space($bibitem_attachment/*[local-name() = 'formattedref'])"/>
13577
13611
  <xsl:variable name="filename" select="java:org.metanorma.fop.Util.getFilenameFromPath(@name)"/>
13578
13612
  <!-- Todo: need update -->
13579
- <xsl:variable name="afrelationship" select="normalize-space($bibitem_attachment//*[local-name() = 'span'][@class = 'pdf-AFRelationship'])"/>
13613
+ <xsl:variable name="afrelationship" select="normalize-space($bibitem_attachment//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
13614
+ <xsl:variable name="volatile" select="normalize-space($bibitem_attachment//*[local-name() = 'classification'][@type = 'pdf-volatile'])"/>
13580
13615
 
13581
13616
  <pdf:embedded-file filename="{$filename}" link-as-file-annotation="true">
13582
13617
  <xsl:attribute name="src">
@@ -13597,6 +13632,9 @@
13597
13632
  <xsl:if test="$afrelationship != ''">
13598
13633
  <xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13599
13634
  </xsl:if>
13635
+ <xsl:if test="$volatile != ''">
13636
+ <xsl:attribute name="volatile"><xsl:value-of select="$volatile"/></xsl:attribute>
13637
+ </xsl:if>
13600
13638
  </pdf:embedded-file>
13601
13639
  </xsl:for-each>
13602
13640
  <!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
@@ -13607,14 +13645,18 @@
13607
13645
  <xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
13608
13646
  <xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
13609
13647
  <!-- Todo: need update -->
13610
- <xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'span'][@class = 'pdf-AFRelationship'])"/>
13648
+ <xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
13649
+ <xsl:variable name="volatile" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-volatile'])"/>
13611
13650
  <pdf:embedded-file src="{$url}" filename="{$attachment_name}" link-as-file-annotation="true">
13612
13651
  <xsl:if test="$description != ''">
13613
13652
  <xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
13614
13653
  </xsl:if>
13615
13654
  <xsl:if test="$afrelationship != ''">
13616
- <xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13617
- </xsl:if>
13655
+ <xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13656
+ </xsl:if>
13657
+ <xsl:if test="$volatile != ''">
13658
+ <xsl:attribute name="volatile"><xsl:value-of select="$volatile"/></xsl:attribute>
13659
+ </xsl:if>
13618
13660
  </pdf:embedded-file>
13619
13661
  </xsl:for-each>
13620
13662
  </xsl:if>
@@ -13661,10 +13703,31 @@
13661
13703
  <xsl:value-of select="$level_total - 2"/>
13662
13704
  </xsl:when>
13663
13705
  <xsl:when test="ancestor::*[local-name() = 'sections'] and self::*[local-name() = 'title']">
13664
- <xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[local-name() = 'clause'][2]/*[local-name() = 'title']/@depth)"/>
13706
+ <!-- determine 'depth' depends on upper clause with title/@depth -->
13707
+ <!-- <xsl:message>title=<xsl:value-of select="."/></xsl:message> -->
13708
+ <xsl:variable name="clause_with_depth_depth" select="ancestor::*[local-name() = 'clause'][*[local-name() = 'title']/@depth][1]/*[local-name() = 'title']/@depth"/>
13709
+ <!-- <xsl:message>clause_with_depth_depth=<xsl:value-of select="$clause_with_depth_depth"/></xsl:message> -->
13710
+ <xsl:variable name="clause_with_depth_level" select="count(ancestor::*[local-name() = 'clause'][*[local-name() = 'title']/@depth][1]/ancestor::*)"/>
13711
+ <!-- <xsl:message>clause_with_depth_level=<xsl:value-of select="$clause_with_depth_level"/></xsl:message> -->
13712
+ <xsl:variable name="curr_level" select="count(ancestor::*) - 1"/>
13713
+ <!-- <xsl:message>curr_level=<xsl:value-of select="$curr_level"/></xsl:message> -->
13714
+ <!-- <xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[local-name() = 'clause'][2]/*[local-name() = 'title']/@depth)"/> -->
13715
+ <xsl:variable name="curr_clause_depth" select="number($clause_with_depth_depth) + (number($curr_level) - number($clause_with_depth_level)) "/>
13716
+ <!-- <xsl:message>curr_clause_depth=<xsl:value-of select="$curr_clause_depth"/></xsl:message> -->
13665
13717
  <xsl:choose>
13666
- <xsl:when test="string(number($upper_clause_depth)) != 'NaN'">
13667
- <xsl:value-of select="number($upper_clause_depth + 1)"/>
13718
+ <xsl:when test="string(number($curr_clause_depth)) != 'NaN'">
13719
+ <xsl:value-of select="number($curr_clause_depth)"/>
13720
+ </xsl:when>
13721
+ <xsl:otherwise>
13722
+ <xsl:value-of select="$level_total - 2"/>
13723
+ </xsl:otherwise>
13724
+ </xsl:choose>
13725
+ </xsl:when>
13726
+ <xsl:when test="ancestor::*[local-name() = 'sections'] and self::*[local-name() = 'name'] and parent::*[local-name() = 'term']">
13727
+ <xsl:variable name="upper_terms_depth" select="normalize-space(ancestor::*[local-name() = 'terms'][1]/*[local-name() = 'title']/@depth)"/>
13728
+ <xsl:choose>
13729
+ <xsl:when test="string(number($upper_terms_depth)) != 'NaN'">
13730
+ <xsl:value-of select="number($upper_terms_depth + 1)"/>
13668
13731
  </xsl:when>
13669
13732
  <xsl:otherwise>
13670
13733
  <xsl:value-of select="$level_total - 2"/>
@@ -13672,7 +13735,7 @@
13672
13735
  </xsl:choose>
13673
13736
  </xsl:when>
13674
13737
  <xsl:when test="ancestor::*[local-name() = 'sections']">
13675
- <xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[local-name() = 'clause'][1]/*[local-name() = 'title']/@depth)"/>
13738
+ <xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[local-name() = 'clause' or local-name() = 'terms'][1]/*[local-name() = 'title']/@depth)"/>
13676
13739
  <xsl:choose>
13677
13740
  <xsl:when test="string(number($upper_clause_depth)) != 'NaN'">
13678
13741
  <xsl:value-of select="number($upper_clause_depth + 1)"/>
@@ -2,7 +2,7 @@ require_relative "init"
2
2
 
3
3
  module IsoDoc
4
4
  module Plateau
5
- class PresentationXMLConvert < IsoDoc::JIS::PresentationXMLConvert
5
+ class PresentationXMLConvert < IsoDoc::Jis::PresentationXMLConvert
6
6
  def initialize(options)
7
7
  @iso = ::IsoDoc::Iso::PresentationXMLConvert.new(options)
8
8
  super
@@ -3,7 +3,7 @@ module IsoDoc
3
3
  class Counter < IsoDoc::XrefGen::Counter
4
4
  end
5
5
 
6
- class Xref < IsoDoc::JIS::Xref
6
+ class Xref < IsoDoc::Jis::Xref
7
7
  def initialize(lang, script, klass, i18n, options)
8
8
  @iso = ::IsoDoc::Iso::Xref.new(lang, script, klass, i18n, options)
9
9
  super
@@ -72,6 +72,9 @@ standards defining organization, and that is rendered in a distinct manner</a:do
72
72
  from other documents in the same doctype</a:documentation>
73
73
  </ref>
74
74
  </optional>
75
+ <ref name="flavor">
76
+ <a:documentation>Flavour of Metanorma used to process this document</a:documentation>
77
+ </ref>
75
78
  <optional>
76
79
  <ref name="editorialgroup">
77
80
  <a:documentation>Groups associated with the production of the standards document, typically within
@@ -113,6 +116,16 @@ a standards definition organization</a:documentation>
113
116
  <define name="DocumentSubtype">
114
117
  <text/>
115
118
  </define>
119
+ <define name="flavor">
120
+ <element name="flavor">
121
+ <ref name="MetanormaFlavor"/>
122
+ </element>
123
+ </define>
124
+ <define name="MetanormaFlavor">
125
+ <a:documentation>This is in fact an enum, as of this writing: standoc iso generic ietf ieee itu nist ogc csa cc iho ribose jis iec bsi bipm plateau.
126
+ However we prefer not to hardcode it, given ongoing extension.</a:documentation>
127
+ <text/>
128
+ </define>
116
129
  <define name="editorialgroup">
117
130
  <a:documentation>A group associated with the production of the standards document, typically within
118
131
  a standards definition organization</a:documentation>
@@ -1382,18 +1382,7 @@ Applies whether the resource has already been created or not, and whether it is
1382
1382
  <define name="bdate">
1383
1383
  <a:documentation>Significant date in the lifecycle of the bibliographic item, including its production and its access</a:documentation>
1384
1384
  <element name="date">
1385
- <attribute name="type">
1386
- <a:documentation>The phase of the production of or access to a bibliographic item</a:documentation>
1387
- <choice>
1388
- <ref name="BibliographicDateType"/>
1389
- <text/>
1390
- </choice>
1391
- </attribute>
1392
- <optional>
1393
- <attribute name="text">
1394
- <a:documentation>An optional textual description of the date, especially when a Gregorian date is not applicable</a:documentation>
1395
- </attribute>
1396
- </optional>
1385
+ <ref name="bDateAttributes"/>
1397
1386
  <optional>
1398
1387
  <choice>
1399
1388
  <group>
@@ -1416,6 +1405,20 @@ Applies whether the resource has already been created or not, and whether it is
1416
1405
  </optional>
1417
1406
  </element>
1418
1407
  </define>
1408
+ <define name="bDateAttributes">
1409
+ <attribute name="type">
1410
+ <a:documentation>The phase of the production of or access to a bibliographic item</a:documentation>
1411
+ <choice>
1412
+ <ref name="BibliographicDateType"/>
1413
+ <text/>
1414
+ </choice>
1415
+ </attribute>
1416
+ <optional>
1417
+ <attribute name="text">
1418
+ <a:documentation>An optional textual description of the date, especially when a Gregorian date is not applicable</a:documentation>
1419
+ </attribute>
1420
+ </optional>
1421
+ </define>
1419
1422
  <define name="docidentifier">
1420
1423
  <a:documentation>An identifier of a bibliographic item in an international standard scheme</a:documentation>
1421
1424
  <element name="docidentifier">
@@ -1884,6 +1887,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
1884
1887
  <value>hasAnnotation</value>
1885
1888
  <value>draftOf</value>
1886
1889
  <value>hasDraft</value>
1890
+ <value>preliminaryDraftOf</value>
1891
+ <value>hasPreliminaryDraft</value>
1892
+ <value>revisionDraftOf</value>
1893
+ <value>hasRevisionDraft</value>
1887
1894
  <value>editionOf</value>
1888
1895
  <value>hasEdition</value>
1889
1896
  <value>updates</value>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- class Converter < JIS::Converter
3
+ class Converter < Jis::Converter
4
4
  def bibdata_cleanup(xmldoc)
5
5
  super
6
6
  coverpage_images(xmldoc)
@@ -3,7 +3,7 @@ require_relative "cleanup"
3
3
 
4
4
  module Metanorma
5
5
  module Plateau
6
- class Converter < JIS::Converter
6
+ class Converter < Jis::Converter
7
7
  register_for "plateau"
8
8
 
9
9
  XML_ROOT_TAG = "plateau-standard".freeze
@@ -2,7 +2,7 @@ require "metanorma/processor"
2
2
 
3
3
  module Metanorma
4
4
  module Plateau
5
- class Processor < Metanorma::JIS::Processor
5
+ class Processor < Metanorma::Jis::Processor
6
6
  def initialize # rubocop:disable Lint/MissingSuper
7
7
  @short = :plateau
8
8
  @input_format = :asciidoc
@@ -7,6 +7,7 @@
7
7
  </optional>
8
8
  <ref name="doctype"/>
9
9
  <ref name="editorialgroup"/>
10
+ <ref name="flavor"/>
10
11
  <zeroOrMore>
11
12
  <ref name="ics"/>
12
13
  </zeroOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "0.1.7".freeze
3
+ VERSION = "0.1.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis