metanorma-ribose 2.5.10 → 2.5.11

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: 7c0913b63262cf54ab97d9df21a8301977c72c61697987cbce07bfcd4bf9ea4d
4
- data.tar.gz: 459c655d58228535c36415a72e2ca3a8ca72b22675e4f453c1384bfcd5afaf1d
3
+ metadata.gz: 1156484096c30a068a71bc24161bcbdcb4bf9849db623f12cfd2900bfa7ea05b
4
+ data.tar.gz: e853754d1770ea8ce4915c61592504056393e90a4d4a915a0201be23f612deba
5
5
  SHA512:
6
- metadata.gz: 6d5a1b64ddcd0a08b09f54cb9c1cfbcba0d1c900090b26b1c515437fbc9cdf29aff62e6380fb8d74b72249f8c393d17c690066f1a65bd345facdb767aeb94f5f
7
- data.tar.gz: e08442b6d1356098c4b7a5cf02491ea1824935d375e225449d11a3beb25f4a28be43e106dbcc12b3a93679890bc61959aa28ee44d19a8ccc2ea3a2566907246c
6
+ metadata.gz: c40bf640bdf8084e28ad5de4a8a5b9343a0c5559eb78e82a64ca3b5f7913a29c4166774d22415b1aa57ee4f8575cf212efe62555922b4f649e879fdbba88db32
7
+ data.tar.gz: 51e7de395fc02e90cc392808431fb49134cdfa0d052253566e7ed10097e97bd99ee55c4b577e8036311c30bc2828e4f016f3adfe0be4f4aec35a2495d02555e3
@@ -17,12 +17,19 @@ module IsoDoc
17
17
 
18
18
  def middle_title(docxml); end
19
19
 
20
- def termsource1(elem)
20
+ # KILL
21
+ def termsource1xx(elem)
21
22
  elem.children = l10n("<strong>#{@i18n.source}:</strong> " \
22
23
  "#{to_xml(elem.children).strip}")
23
24
  elem&.next_element&.name == "termsource" and elem.next = "; "
24
25
  end
25
26
 
27
+ def termsource_label(elem, sources)
28
+ elem.replace(l10n("<strong>#{@i18n.source}</strong>: #{sources}"))
29
+ end
30
+
31
+ def designation_boldface(desgn); end
32
+
26
33
  def preface_rearrange(doc)
27
34
  preface_move(doc.xpath(ns("//preface/abstract")),
28
35
  %w(foreword executivesummary introduction clause acknowledgements), doc)
@@ -2570,6 +2570,9 @@
2570
2570
 
2571
2571
  </xsl:attribute-set>
2572
2572
 
2573
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
2574
+ </xsl:attribute-set>
2575
+
2573
2576
  <xsl:attribute-set name="definition-style">
2574
2577
 
2575
2578
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
@@ -4828,7 +4831,9 @@
4828
4831
  <xsl:with-param name="element">
4829
4832
  <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 -->
4830
4833
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
4834
+
4831
4835
  <xsl:copy-of select="$current_fn_number_text"/>
4836
+
4832
4837
  </fo:inline>
4833
4838
  </fo:basic-link>
4834
4839
  </xsl:with-param>
@@ -4847,8 +4852,7 @@
4847
4852
 
4848
4853
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
4849
4854
 
4850
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4851
-
4855
+ <xsl:variable name="fn_block">
4852
4856
  <xsl:call-template name="refine_fn-body-style"/>
4853
4857
 
4854
4858
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -4856,9 +4860,15 @@
4856
4860
  <xsl:call-template name="refine_fn-body-num-style"/>
4857
4861
 
4858
4862
  <xsl:value-of select="$current_fn_number_text"/>
4863
+
4859
4864
  </fo:inline>
4860
4865
  <xsl:apply-templates/>
4861
- </fo:block>
4866
+ </xsl:variable>
4867
+
4868
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4869
+ <xsl:copy-of select="$fn_block"/>
4870
+ </fo:block>
4871
+
4862
4872
  </fo:block-container>
4863
4873
  </fo:footnote-body>
4864
4874
  </fo:footnote>
@@ -10908,14 +10918,17 @@
10908
10918
  </fo:block>
10909
10919
  </xsl:template>
10910
10920
 
10911
- <xsl:template match="*[local-name() = 'domain']">
10921
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
10912
10922
  <!-- https://github.com/metanorma/isodoc/issues/607
10913
10923
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
10914
10924
  <xsl:text> </xsl:text> -->
10915
- <xsl:if test="not(@hidden = 'true')">
10925
+ <!-- <xsl:if test="not(@hidden = 'true')">
10916
10926
  <xsl:apply-templates/>
10917
10927
  </xsl:if>
10918
- </xsl:template>
10928
+ </xsl:template> -->
10929
+
10930
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
10931
+ <xsl:template match="*[local-name() = 'domain']"/>
10919
10932
 
10920
10933
  <xsl:template match="*[local-name() = 'admitted']">
10921
10934
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -10930,9 +10943,10 @@
10930
10943
  </xsl:template>
10931
10944
 
10932
10945
  <xsl:template name="setStyle_preferred">
10933
- <xsl:if test="*[local-name() = 'strong']">
10934
- <xsl:attribute name="font-weight">normal</xsl:attribute>
10935
- </xsl:if>
10946
+
10947
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
10948
+ <xsl:attribute name="color">black</xsl:attribute>
10949
+
10936
10950
  </xsl:template>
10937
10951
 
10938
10952
  <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
@@ -10942,6 +10956,17 @@
10942
10956
  </xsl:template>
10943
10957
  <!-- End Preferred, admitted, deprecated -->
10944
10958
 
10959
+ <xsl:template match="*[local-name() = 'fmt-related']">
10960
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
10961
+ <xsl:apply-templates/>
10962
+ </fo:block>
10963
+ </xsl:template>
10964
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
10965
+ <fo:block>
10966
+ <xsl:apply-templates/>
10967
+ </fo:block>
10968
+ </xsl:template>
10969
+
10945
10970
  <!-- ========== -->
10946
10971
  <!-- definition -->
10947
10972
  <!-- ========== -->
@@ -11848,6 +11873,7 @@
11848
11873
 
11849
11874
  <!-- Normative references -->
11850
11875
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
11876
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
11851
11877
 
11852
11878
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
11853
11879
 
@@ -12561,7 +12587,8 @@
12561
12587
  <!-- add @id - first element with @id plus '_element_name' -->
12562
12588
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
12563
12589
  <xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
12564
- <xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
12590
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
12591
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
12565
12592
  </xsl:if>
12566
12593
  </xsl:template>
12567
12594
 
@@ -12618,6 +12645,31 @@
12618
12645
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
12619
12646
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
12620
12647
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
12648
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
12649
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
12650
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
12651
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
12652
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
12653
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
12654
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
12655
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
12656
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
12657
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
12658
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
12659
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
12660
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
12661
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
12662
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
12663
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
12664
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
12665
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
12666
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
12667
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
12668
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
12669
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
12670
+
12671
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
12672
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
12621
12673
 
12622
12674
  <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
12623
12675
  <xsl:copy>
@@ -12662,6 +12714,94 @@
12662
12714
  </xsl:element>
12663
12715
  </xsl:template>
12664
12716
 
12717
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
12718
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
12719
+ <xsl:apply-templates mode="update_xml_step1"/>
12720
+ </xsl:template>
12721
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
12722
+ <xsl:element name="preferred" namespace="{$namespace_full}">
12723
+ <xsl:copy-of select="@*"/>
12724
+ <xsl:apply-templates mode="update_xml_step1"/>
12725
+ </xsl:element>
12726
+ </xsl:template>
12727
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
12728
+ <xsl:apply-templates mode="update_xml_pres"/>
12729
+ </xsl:template>
12730
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
12731
+ <xsl:element name="preferred" namespace="{$namespace_full}">
12732
+ <xsl:copy-of select="@*"/>
12733
+ <xsl:apply-templates mode="update_xml_pres"/>
12734
+ </xsl:element>
12735
+ </xsl:template>
12736
+
12737
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
12738
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
12739
+ <xsl:apply-templates mode="update_xml_step1"/>
12740
+ </xsl:template>
12741
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
12742
+ <xsl:element name="admitted" namespace="{$namespace_full}">
12743
+ <xsl:copy-of select="@*"/>
12744
+ <xsl:apply-templates mode="update_xml_step1"/>
12745
+ </xsl:element>
12746
+ </xsl:template>
12747
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
12748
+ <xsl:apply-templates mode="update_xml_pres"/>
12749
+ </xsl:template>
12750
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
12751
+ <xsl:element name="admitted" namespace="{$namespace_full}">
12752
+ <xsl:copy-of select="@*"/>
12753
+ <xsl:apply-templates mode="update_xml_pres"/>
12754
+ </xsl:element>
12755
+ </xsl:template>
12756
+
12757
+ <xsl:template match="*[local-name() = 'fmt-deprecates']"/>
12758
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
12759
+ <xsl:apply-templates mode="update_xml_step1"/>
12760
+ </xsl:template>
12761
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
12762
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
12763
+ <xsl:copy-of select="@*"/>
12764
+ <xsl:apply-templates mode="update_xml_step1"/>
12765
+ </xsl:element>
12766
+ </xsl:template>
12767
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
12768
+ <xsl:apply-templates mode="update_xml_pres"/>
12769
+ </xsl:template>
12770
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
12771
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
12772
+ <xsl:copy-of select="@*"/>
12773
+ <xsl:apply-templates mode="update_xml_pres"/>
12774
+ </xsl:element>
12775
+ </xsl:template>
12776
+
12777
+ <xsl:template match="*[local-name() = 'fmt-definition']"/>
12778
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
12779
+ <xsl:element name="definition" namespace="{$namespace_full}">
12780
+ <xsl:copy-of select="@*"/>
12781
+ <xsl:apply-templates mode="update_xml_step1"/>
12782
+ </xsl:element>
12783
+ </xsl:template>
12784
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
12785
+ <xsl:element name="definition" namespace="{$namespace_full}">
12786
+ <xsl:copy-of select="@*"/>
12787
+ <xsl:apply-templates mode="update_xml_pres"/>
12788
+ </xsl:element>
12789
+ </xsl:template>
12790
+
12791
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
12792
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
12793
+ <xsl:element name="termsource" namespace="{$namespace_full}">
12794
+ <xsl:copy-of select="@*"/>
12795
+ <xsl:apply-templates mode="update_xml_step1"/>
12796
+ </xsl:element>
12797
+ </xsl:template>
12798
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
12799
+ <xsl:element name="termsource" namespace="{$namespace_full}">
12800
+ <xsl:copy-of select="@*"/>
12801
+ <xsl:apply-templates mode="update_xml_pres"/>
12802
+ </xsl:element>
12803
+ </xsl:template>
12804
+
12665
12805
  <xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
12666
12806
  <xsl:apply-templates mode="update_xml_step1"/>
12667
12807
  </xsl:template>
@@ -13793,7 +13933,7 @@
13793
13933
  </xsl:template>
13794
13934
 
13795
13935
  <xsl:template name="namespaceCheck">
13796
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
13936
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
13797
13937
  <xsl:variable name="XSLNS">
13798
13938
 
13799
13939
  <xsl:value-of select="document('')//*/namespace::ribose"/>
@@ -13883,6 +14023,9 @@
13883
14023
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
13884
14024
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13885
14025
  </xsl:when>
14026
+ <xsl:when test="string-length($bibdata_updated) != ''">
14027
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14028
+ </xsl:when>
13886
14029
  <xsl:when test="$formatted = 'true'">
13887
14030
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13888
14031
  </xsl:when>
@@ -1277,17 +1277,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1277
1277
  </define>
1278
1278
  <define name="validityBegins">
1279
1279
  <element name="validityBegins">
1280
- <ref name="ISO8601DateTime"/>
1280
+ <ref name="ISO8601Date"/>
1281
1281
  </element>
1282
1282
  </define>
1283
1283
  <define name="validityEnds">
1284
1284
  <element name="validityEnds">
1285
- <ref name="ISO8601DateTime"/>
1285
+ <ref name="ISO8601Date"/>
1286
1286
  </element>
1287
1287
  </define>
1288
1288
  <define name="validityRevision">
1289
1289
  <element name="revision">
1290
- <ref name="ISO8601DateTime"/>
1290
+ <ref name="ISO8601Date"/>
1291
1291
  </element>
1292
1292
  </define>
1293
1293
  <define name="TypedTitleString">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.5.10".freeze
3
+ VERSION = "2.5.11".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.10
4
+ version: 2.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-07 00:00:00.000000000 Z
11
+ date: 2025-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic