metanorma-iho 0.6.4 → 0.6.5

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: 5161d7cc65c40e09368460250df3e374f78e012b60162cc458eb137b29a3872f
4
- data.tar.gz: '068e14d994c6e5a17a4f08824e428a31be3fd7e6889c9e647a98ce1ebc0d0c63'
3
+ metadata.gz: 1f5e72cf02e5f6419faf52ab11e814c0deeca05711464dc1d5251b05777f18e2
4
+ data.tar.gz: 647b2738c5947f1d042211eafa372f8b08fe6995e7dca5d970a1f6d451cf63f3
5
5
  SHA512:
6
- metadata.gz: 47b64816583168678380726ae4f0f2945029e9ec41e4b2e8ff98027f4e680dbc86041d2ed123851ebe05913cfb3be9dbfdd0a23a60fdaa59e97023a47fa156c0
7
- data.tar.gz: c7bbdb9e666df911e69054ce11a12b12b5b394fea5439b8c8e771b07c9922256ba36c2840178137f28b3d17b99c4255511a947494bc35ad06ecdd8b5c9871ece
6
+ metadata.gz: 6a68b7972fdb3666cda62e764f5b572d9857d53ad2368f1313aada4fbfdbbb93ab194c1935a97f09c8cd59e314e4272a931f202cd2c85e942c415135ef34a0e8
7
+ data.tar.gz: f49fe088dc48646596d19a127de1bb9379e9b1bb2cf8af0d63cb6b5da395fc67575a98bf66253da9f5a77625b4374fcb31861ac14e9d3d8f369395c1feaf6946
@@ -10,23 +10,12 @@ module IsoDoc
10
10
  end
11
11
  end
12
12
 
13
- def info(isoxml, out)
14
- @meta.series isoxml, out
15
- super
16
- end
17
-
18
13
  def std_bibitem_entry(list, bib, ordinal, biblio)
19
14
  list.p **attr_code(iso_bibitem_entry_attrs(bib, biblio)) do |ref|
20
15
  prefix_bracketed_ref(ref, "[#{ordinal}]")
21
16
  reference_format(bib, ref)
22
17
  end
23
18
  end
24
-
25
- def omit_docid_prefix(prefix)
26
- return true if prefix == "IHO"
27
-
28
- super
29
- end
30
19
  end
31
20
  end
32
21
  end
@@ -2065,10 +2065,12 @@
2065
2065
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
2066
2066
 
2067
2067
 
2068
+
2068
2069
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
2069
2070
 
2070
2071
 
2071
2072
 
2073
+
2072
2074
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
2073
2075
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2074
2076
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -2687,6 +2689,14 @@
2687
2689
 
2688
2690
 
2689
2691
 
2692
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
2693
+ <fo:block keep-with-previous="always" line-height="0.1">
2694
+ <xsl:for-each select="*[local-name()='bookmark']">
2695
+ <xsl:call-template name="bookmark"/>
2696
+ </xsl:for-each>
2697
+ </fo:block>
2698
+ </xsl:if>
2699
+
2690
2700
  </fo:block-container>
2691
2701
  </xsl:variable>
2692
2702
 
@@ -6477,7 +6487,7 @@
6477
6487
 
6478
6488
 
6479
6489
  <!-- <xsl:if test="$namespace = 'ieee'">
6480
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
6490
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
6481
6491
  </xsl:if> -->
6482
6492
 
6483
6493
 
@@ -7798,7 +7808,7 @@
7798
7808
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
7799
7809
  <!-- to split by '_' and other chars -->
7800
7810
  <xsl:call-template name="add-zero-spaces-java"/>
7801
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
7811
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
7802
7812
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
7803
7813
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
7804
7814
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -8547,6 +8557,7 @@
8547
8557
  </xsl:call-template>
8548
8558
  </xsl:template><xsl:template name="insertKeywords">
8549
8559
  <xsl:param name="sorting" select="'true'"/>
8560
+ <xsl:param name="meta" select="'false'"/>
8550
8561
  <xsl:param name="charAtEnd" select="'.'"/>
8551
8562
  <xsl:param name="charDelim" select="', '"/>
8552
8563
  <xsl:choose>
@@ -8554,6 +8565,7 @@
8554
8565
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
8555
8566
  <xsl:sort data-type="text" order="ascending"/>
8556
8567
  <xsl:call-template name="insertKeyword">
8568
+ <xsl:with-param name="meta" select="$meta"/>
8557
8569
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
8558
8570
  <xsl:with-param name="charDelim" select="$charDelim"/>
8559
8571
  </xsl:call-template>
@@ -8562,6 +8574,7 @@
8562
8574
  <xsl:otherwise>
8563
8575
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
8564
8576
  <xsl:call-template name="insertKeyword">
8577
+ <xsl:with-param name="meta" select="$meta"/>
8565
8578
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
8566
8579
  <xsl:with-param name="charDelim" select="$charDelim"/>
8567
8580
  </xsl:call-template>
@@ -8571,7 +8584,15 @@
8571
8584
  </xsl:template><xsl:template name="insertKeyword">
8572
8585
  <xsl:param name="charAtEnd"/>
8573
8586
  <xsl:param name="charDelim"/>
8574
- <xsl:apply-templates/>
8587
+ <xsl:param name="meta"/>
8588
+ <xsl:choose>
8589
+ <xsl:when test="$meta = 'true'">
8590
+ <xsl:value-of select="."/>
8591
+ </xsl:when>
8592
+ <xsl:otherwise>
8593
+ <xsl:apply-templates/>
8594
+ </xsl:otherwise>
8595
+ </xsl:choose>
8575
8596
  <xsl:choose>
8576
8597
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
8577
8598
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -8622,7 +8643,9 @@
8622
8643
  <xsl:value-of select="normalize-space($abstract)"/>
8623
8644
  </dc:description>
8624
8645
  <pdf:Keywords>
8625
- <xsl:call-template name="insertKeywords"/>
8646
+ <xsl:call-template name="insertKeywords">
8647
+ <xsl:with-param name="meta">true</xsl:with-param>
8648
+ </xsl:call-template>
8626
8649
  </pdf:Keywords>
8627
8650
  </rdf:Description>
8628
8651
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -2065,10 +2065,12 @@
2065
2065
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
2066
2066
 
2067
2067
 
2068
+
2068
2069
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
2069
2070
 
2070
2071
 
2071
2072
 
2073
+
2072
2074
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
2073
2075
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2074
2076
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -2687,6 +2689,14 @@
2687
2689
 
2688
2690
 
2689
2691
 
2692
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
2693
+ <fo:block keep-with-previous="always" line-height="0.1">
2694
+ <xsl:for-each select="*[local-name()='bookmark']">
2695
+ <xsl:call-template name="bookmark"/>
2696
+ </xsl:for-each>
2697
+ </fo:block>
2698
+ </xsl:if>
2699
+
2690
2700
  </fo:block-container>
2691
2701
  </xsl:variable>
2692
2702
 
@@ -6477,7 +6487,7 @@
6477
6487
 
6478
6488
 
6479
6489
  <!-- <xsl:if test="$namespace = 'ieee'">
6480
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
6490
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
6481
6491
  </xsl:if> -->
6482
6492
 
6483
6493
 
@@ -7798,7 +7808,7 @@
7798
7808
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
7799
7809
  <!-- to split by '_' and other chars -->
7800
7810
  <xsl:call-template name="add-zero-spaces-java"/>
7801
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
7811
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
7802
7812
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
7803
7813
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
7804
7814
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -8547,6 +8557,7 @@
8547
8557
  </xsl:call-template>
8548
8558
  </xsl:template><xsl:template name="insertKeywords">
8549
8559
  <xsl:param name="sorting" select="'true'"/>
8560
+ <xsl:param name="meta" select="'false'"/>
8550
8561
  <xsl:param name="charAtEnd" select="'.'"/>
8551
8562
  <xsl:param name="charDelim" select="', '"/>
8552
8563
  <xsl:choose>
@@ -8554,6 +8565,7 @@
8554
8565
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
8555
8566
  <xsl:sort data-type="text" order="ascending"/>
8556
8567
  <xsl:call-template name="insertKeyword">
8568
+ <xsl:with-param name="meta" select="$meta"/>
8557
8569
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
8558
8570
  <xsl:with-param name="charDelim" select="$charDelim"/>
8559
8571
  </xsl:call-template>
@@ -8562,6 +8574,7 @@
8562
8574
  <xsl:otherwise>
8563
8575
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
8564
8576
  <xsl:call-template name="insertKeyword">
8577
+ <xsl:with-param name="meta" select="$meta"/>
8565
8578
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
8566
8579
  <xsl:with-param name="charDelim" select="$charDelim"/>
8567
8580
  </xsl:call-template>
@@ -8571,7 +8584,15 @@
8571
8584
  </xsl:template><xsl:template name="insertKeyword">
8572
8585
  <xsl:param name="charAtEnd"/>
8573
8586
  <xsl:param name="charDelim"/>
8574
- <xsl:apply-templates/>
8587
+ <xsl:param name="meta"/>
8588
+ <xsl:choose>
8589
+ <xsl:when test="$meta = 'true'">
8590
+ <xsl:value-of select="."/>
8591
+ </xsl:when>
8592
+ <xsl:otherwise>
8593
+ <xsl:apply-templates/>
8594
+ </xsl:otherwise>
8595
+ </xsl:choose>
8575
8596
  <xsl:choose>
8576
8597
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
8577
8598
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -8622,7 +8643,9 @@
8622
8643
  <xsl:value-of select="normalize-space($abstract)"/>
8623
8644
  </dc:description>
8624
8645
  <pdf:Keywords>
8625
- <xsl:call-template name="insertKeywords"/>
8646
+ <xsl:call-template name="insertKeywords">
8647
+ <xsl:with-param name="meta">true</xsl:with-param>
8648
+ </xsl:call-template>
8626
8649
  </pdf:Keywords>
8627
8650
  </rdf:Description>
8628
8651
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -20,6 +20,17 @@ module IsoDoc
20
20
  Metanorma::IHO.configuration.i18nyaml || @i18nyaml
21
21
  )
22
22
  end
23
+
24
+ def info(isoxml, out)
25
+ @meta.series isoxml, out
26
+ super
27
+ end
28
+
29
+ def omit_docid_prefix(prefix)
30
+ return true if prefix == "IHO"
31
+
32
+ super
33
+ end
23
34
  end
24
35
  end
25
36
  end
@@ -2504,6 +2504,16 @@
2504
2504
  <text/>
2505
2505
  </element>
2506
2506
  </optional>
2507
+ <optional>
2508
+ <element name="amendment">
2509
+ <text/>
2510
+ </element>
2511
+ </optional>
2512
+ <optional>
2513
+ <element name="corrigendum">
2514
+ <text/>
2515
+ </element>
2516
+ </optional>
2507
2517
  <optional>
2508
2518
  <element name="language">
2509
2519
  <text/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.6.4".freeze
3
+ VERSION = "0.6.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic