metanorma-ribose 2.2.6 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae1e08fd6979e8b7f5cff2aaeb00f6fe5d9322869ce7f1da3a9e5a565ac1ee83
4
- data.tar.gz: 81a7d80ec099d88f73e23af6c54ef92a0ffc095015b583a47a06dfebd3934fd8
3
+ metadata.gz: 2706f601a6101717a95248803efe276a3a684d63fd21701960408911e8ab6321
4
+ data.tar.gz: 49ff403dfba6c90b09d89e60b3ffff854730ff090a40b7b88ca2685f09533733
5
5
  SHA512:
6
- metadata.gz: 5a31631f232705210512e777fee5af9c84d0724e34f28b97b3148553042c50f51ebce9758776155a325d6b8e0b4781733f75f0037883d28390c164c8a5807275
7
- data.tar.gz: 3f97800ccb9d8812abf2699a862a930ddf9e7040fc256d85250817faa21b3d503b84451ba92682e3b9a07066f5c1dd9d61b6bbd8110bb37c7f71686e76161a7b
6
+ metadata.gz: 602fc809e82c4f7edd47f22c8847a0c1a4dc643b2cc4fc502ec74abd065f863b90e2acef5f590cb559fc31e6520f94ee1d689560a7a109bb99c38ac2e7e64968
7
+ data.tar.gz: cfd6f6b81cd1efe3227ecb0ce799b3e4b5d010cf2f1b26aaac63e9ee09b7bc1b0007f4cbc9effa909c87571337593942a4be71d6a5220c70f388e1bd5eb5751a
@@ -1,13 +1,12 @@
1
1
  module IsoDoc
2
2
  module Ribose
3
3
  module BaseConvert
4
- def executivesummary(docxml, out)
5
- f = docxml.at(ns("//executivesummary")) || return
4
+ def executivesummary(clause, out)
6
5
  title_attr = { class: "IntroTitle" }
7
6
  page_break(out)
8
- out.div class: "Section3", id: f["id"] do |div|
9
- clause_name(f, f&.at(ns("./title")), div, title_attr)
10
- f.elements.each do |e|
7
+ out.div class: "Section3", id: clause["id"] do |div|
8
+ clause_name(clause, clause&.at(ns("./title")), div, title_attr)
9
+ clause.elements.each do |e|
11
10
  parse(e, div) unless e.name == "title"
12
11
  end
13
12
  end
@@ -1,5 +1,4 @@
1
1
  <nav>
2
- <h1 id="content">Contents</h1>
3
2
  <div id="toc"></div>
4
3
 
5
4
  </nav>
@@ -1,6 +1,3 @@
1
- <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">Contents</span></p>
2
-
3
- WORDTOC
4
1
 
5
2
  <div class="zzCopyright">
6
3
  <div id="boilerplate-copyright-destination" style='color:windowtext'/>
@@ -14,15 +14,9 @@ module IsoDoc
14
14
  end
15
15
 
16
16
  def make_body3(body, docxml)
17
- body.div **{ class: "main-section" } do |div3|
17
+ body.div class: "main-section" do |div3|
18
18
  boilerplate docxml, div3
19
- preface_block docxml, div3
20
- abstract docxml, div3
21
- foreword docxml, div3
22
- executivesummary docxml, div3
23
- introduction docxml, div3
24
- preface docxml, div3
25
- acknowledgements docxml, div3
19
+ front docxml, div3
26
20
  middle docxml, div3
27
21
  footnotes div3
28
22
  comments div3
@@ -13,11 +13,24 @@ module IsoDoc
13
13
  def termsource1(elem)
14
14
  mod = elem.at(ns("./modification")) and
15
15
  termsource_modification(mod)
16
- elem.children = l10n("<strong>#{@i18n.source}:</strong> "\
16
+ elem.children = l10n("<strong>#{@i18n.source}:</strong> " \
17
17
  "#{to_xml(elem.children).strip}")
18
18
  elem&.next_element&.name == "termsource" and elem.next = "; "
19
19
  end
20
20
 
21
+ def preface_rearrange(doc)
22
+ preface_move(doc.at(ns("//preface/abstract")),
23
+ %w(foreword executivesummary introduction clause acknowledgements), doc)
24
+ preface_move(doc.at(ns("//preface/foreword")),
25
+ %w(executivesummary introduction clause acknowledgements), doc)
26
+ preface_move(doc.at(ns("//preface/executivesummary")),
27
+ %w(introduction clause acknowledgements), doc)
28
+ preface_move(doc.at(ns("//preface/introduction")),
29
+ %w(clause acknowledgements), doc)
30
+ preface_move(doc.at(ns("//preface/acknowledgements")),
31
+ %w(), doc)
32
+ end
33
+
21
34
  include Init
22
35
  end
23
36
  end
@@ -1876,6 +1876,11 @@
1876
1876
  <!-- ========================== -->
1877
1877
  <!-- Definition's list styles -->
1878
1878
  <!-- ========================== -->
1879
+
1880
+ <xsl:attribute-set name="dl-block-style">
1881
+
1882
+ </xsl:attribute-set>
1883
+
1879
1884
  <xsl:attribute-set name="dt-row-style">
1880
1885
 
1881
1886
  <xsl:attribute name="min-height">7mm</xsl:attribute>
@@ -1883,6 +1888,7 @@
1883
1888
  </xsl:attribute-set>
1884
1889
 
1885
1890
  <xsl:attribute-set name="dt-cell-style">
1891
+
1886
1892
  </xsl:attribute-set>
1887
1893
 
1888
1894
  <xsl:attribute-set name="dt-block-style">
@@ -1904,6 +1910,7 @@
1904
1910
 
1905
1911
  <xsl:attribute-set name="dd-cell-style">
1906
1912
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
1913
+
1907
1914
  </xsl:attribute-set>
1908
1915
 
1909
1916
  <!-- ========================== -->
@@ -1929,6 +1936,7 @@
1929
1936
  </xsl:attribute-set>
1930
1937
 
1931
1938
  <xsl:attribute-set name="xref-style">
1939
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
1932
1940
 
1933
1941
  </xsl:attribute-set>
1934
1942
 
@@ -2058,6 +2066,10 @@
2058
2066
 
2059
2067
  </xsl:attribute-set>
2060
2068
 
2069
+ <xsl:attribute-set name="figure-source-style">
2070
+
2071
+ </xsl:attribute-set>
2072
+
2061
2073
  <!-- Formula's styles -->
2062
2074
  <xsl:attribute-set name="formula-style">
2063
2075
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
@@ -2626,7 +2638,7 @@
2626
2638
 
2627
2639
  <xsl:template name="processTables_Contents">
2628
2640
  <tables>
2629
- <xsl:for-each select="//*[local-name() = 'table'][@id and *[local-name() = 'name'] and normalize-space(@id) != '']">
2641
+ <xsl:for-each select="//*[local-name() = 'table'][not(ancestor::*[local-name() = 'metanorma-extension'])][@id and *[local-name() = 'name'] and normalize-space(@id) != '']">
2630
2642
  <table id="{@id}" alt-text="{*[local-name() = 'name']}">
2631
2643
  <xsl:copy-of select="*[local-name() = 'name']"/>
2632
2644
  </table>
@@ -2973,7 +2985,7 @@
2973
2985
  </xsl:attribute>
2974
2986
  </xsl:for-each>
2975
2987
 
2976
- <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name']"/>
2988
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
2977
2989
  <xsl:if test="$isNoteOrFnExist = 'true'">
2978
2990
  <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2979
2991
  </xsl:if>
@@ -3017,7 +3029,7 @@
3017
3029
  <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
3018
3030
  </xsl:when>
3019
3031
  <xsl:otherwise>
3020
- <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note and dl which render separaterely -->
3032
+ <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
3021
3033
  </xsl:otherwise>
3022
3034
  </xsl:choose>
3023
3035
 
@@ -3121,6 +3133,11 @@
3121
3133
  </xsl:if>
3122
3134
  </xsl:template> <!-- table/name -->
3123
3135
 
3136
+ <!-- SOURCE: ... -->
3137
+ <xsl:template match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
3138
+ <xsl:call-template name="termsource"/>
3139
+ </xsl:template>
3140
+
3124
3141
  <xsl:template name="calculate-columns-numbers">
3125
3142
  <xsl:param name="table-row"/>
3126
3143
  <xsl:variable name="columns-count" select="count($table-row/*)"/>
@@ -3477,7 +3494,7 @@
3477
3494
  </fo:table-header>
3478
3495
  </xsl:template> <!-- thead -->
3479
3496
 
3480
- <!-- template is using for iso, jcgm, bsi only -->
3497
+ <!-- template is using for iec, iso, jcgm, bsi only -->
3481
3498
  <xsl:template name="table-header-title">
3482
3499
  <xsl:param name="cols-count"/>
3483
3500
  <!-- row for title -->
@@ -3520,7 +3537,7 @@
3520
3537
  <xsl:param name="colwidths"/>
3521
3538
  <xsl:param name="colgroup"/>
3522
3539
 
3523
- <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
3540
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source']"/>
3524
3541
 
3525
3542
  <xsl:variable name="isNoteOrFnExistShowAfterTable">
3526
3543
 
@@ -3590,6 +3607,7 @@
3590
3607
 
3591
3608
  <xsl:apply-templates select="../*[local-name()='dl']"/>
3592
3609
  <xsl:apply-templates select="../*[local-name()='note']"/>
3610
+ <xsl:apply-templates select="../*[local-name()='source']"/>
3593
3611
 
3594
3612
  <xsl:variable name="isDisplayRowSeparator">
3595
3613
 
@@ -3953,9 +3971,13 @@
3953
3971
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
3954
3972
  </xsl:if>
3955
3973
 
3956
- <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
3957
- <xsl:value-of select="$current_fn_number_text"/>
3958
- </fo:basic-link>
3974
+ <xsl:call-template name="insert_basic_link">
3975
+ <xsl:with-param name="element">
3976
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
3977
+ <xsl:value-of select="$current_fn_number_text"/>
3978
+ </fo:basic-link>
3979
+ </xsl:with-param>
3980
+ </xsl:call-template>
3959
3981
  </fo:inline>
3960
3982
  </xsl:variable>
3961
3983
 
@@ -4227,7 +4249,7 @@
4227
4249
  <xsl:variable name="isAdded" select="@added"/>
4228
4250
  <xsl:variable name="isDeleted" select="@deleted"/>
4229
4251
  <!-- <dl><xsl:copy-of select="."/></dl> -->
4230
- <fo:block-container>
4252
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
4231
4253
 
4232
4254
  <xsl:call-template name="setBlockSpanAll"/>
4233
4255
 
@@ -4235,6 +4257,18 @@
4235
4257
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
4236
4258
  </xsl:if>
4237
4259
 
4260
+ <xsl:if test="ancestor::*[local-name() = 'sourcecode']">
4261
+ <!-- set font-size as sourcecode font-size -->
4262
+ <xsl:variable name="sourcecode_attributes">
4263
+ <xsl:call-template name="get_sourcecode_attributes"/>
4264
+ </xsl:variable>
4265
+ <xsl:for-each select="xalan:nodeset($sourcecode_attributes)/sourcecode_attributes/@font-size">
4266
+ <xsl:attribute name="{local-name()}">
4267
+ <xsl:value-of select="."/>
4268
+ </xsl:attribute>
4269
+ </xsl:for-each>
4270
+ </xsl:if>
4271
+
4238
4272
  <xsl:if test="parent::*[local-name() = 'note']">
4239
4273
  <xsl:attribute name="margin-left">
4240
4274
  <xsl:choose>
@@ -4276,8 +4310,10 @@
4276
4310
  <xsl:apply-templates select="preceding-sibling::*[1][local-name() = 'p' and @keep-with-next = 'true']/node()"/>
4277
4311
  <xsl:text> </xsl:text>
4278
4312
  <xsl:apply-templates select="*[local-name()='dt']/*"/>
4279
- <xsl:text/>
4280
- <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
4313
+ <xsl:if test="*[local-name()='dd']/node()[normalize-space() != ''][1][self::text()]">
4314
+ <xsl:text> </xsl:text>
4315
+ </xsl:if>
4316
+ <xsl:apply-templates select="*[local-name()='dd']/node()" mode="inline"/>
4281
4317
  </fo:block>
4282
4318
 
4283
4319
  </xsl:when> <!-- END: only one component -->
@@ -4671,6 +4707,7 @@
4671
4707
  <xsl:param name="split_keep-within-line"/>
4672
4708
 
4673
4709
  <fo:table-row xsl:use-attribute-sets="dt-row-style">
4710
+
4674
4711
  <xsl:call-template name="insert_dt_cell">
4675
4712
  <xsl:with-param name="key_iso" select="$key_iso"/>
4676
4713
  <xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
@@ -4692,6 +4729,7 @@
4692
4729
  <!-- border is mandatory, to calculate real width -->
4693
4730
  <xsl:attribute name="border">0.1pt solid black</xsl:attribute>
4694
4731
  <xsl:attribute name="text-align">left</xsl:attribute>
4732
+
4695
4733
  </xsl:if>
4696
4734
 
4697
4735
  <fo:block xsl:use-attribute-sets="dt-block-style">
@@ -4765,8 +4803,18 @@
4765
4803
  </xsl:if>
4766
4804
  </xsl:template>
4767
4805
 
4768
- <xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
4769
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
4806
+ <xsl:template match="*[local-name()='dd']/*" mode="inline">
4807
+ <xsl:variable name="is_inline_element_after_where">
4808
+ <xsl:if test="(local-name() = 'p') and not(preceding-sibling::node()[normalize-space() != ''])">true</xsl:if>
4809
+ </xsl:variable>
4810
+ <xsl:choose>
4811
+ <xsl:when test="$is_inline_element_after_where = 'true'">
4812
+ <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
4813
+ </xsl:when>
4814
+ <xsl:otherwise>
4815
+ <xsl:apply-templates select="."/>
4816
+ </xsl:otherwise>
4817
+ </xsl:choose>
4770
4818
  </xsl:template>
4771
4819
 
4772
4820
  <!-- virtual html table for dl/[dt and dd] for IF (Intermediate Format) -->
@@ -5144,6 +5192,7 @@
5144
5192
  <fo:inline>
5145
5193
  <xsl:for-each select="$styles/style">
5146
5194
  <xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
5195
+
5147
5196
  </xsl:for-each>
5148
5197
  <xsl:apply-templates/>
5149
5198
  </fo:inline>
@@ -6203,6 +6252,79 @@
6203
6252
  <xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
6204
6253
  </xsl:template>
6205
6254
 
6255
+ <!-- special case for:
6256
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
6257
+ <mstyle displaystyle="true">
6258
+ <msup>
6259
+ <mi color="#00000000">C</mi>
6260
+ <mtext>R</mtext>
6261
+ </msup>
6262
+ <msubsup>
6263
+ <mtext>C</mtext>
6264
+ <mi>n</mi>
6265
+ <mi>k</mi>
6266
+ </msubsup>
6267
+ </mstyle>
6268
+ </math>
6269
+ -->
6270
+ <xsl:template match="mathml:msup/mathml:mi[. = '‌' or . = ''][not(preceding-sibling::*)][following-sibling::mathml:mtext]" mode="mathml">
6271
+ <xsl:copy>
6272
+ <xsl:copy-of select="@*"/>
6273
+ <xsl:variable name="next_mtext" select="ancestor::mathml:msup/following-sibling::*[1][self::mathml:msubsup or self::mathml:msub or self::mathml:msup]/mathml:mtext"/>
6274
+ <xsl:if test="string-length($next_mtext) != ''">
6275
+ <xsl:attribute name="color">#00000000</xsl:attribute>
6276
+ </xsl:if>
6277
+ <xsl:apply-templates/>
6278
+ <xsl:value-of select="$next_mtext"/>
6279
+ </xsl:copy>
6280
+ </xsl:template>
6281
+
6282
+ <!-- special case for:
6283
+ <msup>
6284
+ <mtext/>
6285
+ <mn>1</mn>
6286
+ </msup>
6287
+ convert to (add mspace after mtext and enclose them into mrow):
6288
+ <msup>
6289
+ <mrow>
6290
+ <mtext/>
6291
+ <mspace height="1.47ex"/>
6292
+ </mrow>
6293
+ <mn>1</mn>
6294
+ </msup>
6295
+ -->
6296
+ <xsl:template match="mathml:msup/mathml:mtext[not(preceding-sibling::*)]" mode="mathml">
6297
+ <mathml:mrow>
6298
+ <xsl:copy-of select="."/>
6299
+ <mathml:mspace height="1.47ex"/>
6300
+ </mathml:mrow>
6301
+ </xsl:template>
6302
+
6303
+ <!-- add space around vertical line -->
6304
+ <xsl:template match="mathml:mo[normalize-space(text()) = '|']" mode="mathml">
6305
+ <xsl:copy>
6306
+ <xsl:apply-templates select="@*" mode="mathml"/>
6307
+ <xsl:if test="not(@lspace)">
6308
+ <xsl:attribute name="lspace">0.4em</xsl:attribute>
6309
+ </xsl:if>
6310
+ <xsl:if test="not(@rspace)">
6311
+ <xsl:attribute name="rspace">0.4em</xsl:attribute>
6312
+ </xsl:if>
6313
+ <xsl:apply-templates mode="mathml"/>
6314
+ </xsl:copy>
6315
+ </xsl:template>
6316
+
6317
+ <!-- decrease fontsize for 'Circled Times' char -->
6318
+ <xsl:template match="mathml:mo[normalize-space(text()) = '⊗']" mode="mathml">
6319
+ <xsl:copy>
6320
+ <xsl:apply-templates select="@*" mode="mathml"/>
6321
+ <xsl:if test="not(@fontsize)">
6322
+ <xsl:attribute name="fontsize">55%</xsl:attribute>
6323
+ </xsl:if>
6324
+ <xsl:apply-templates mode="mathml"/>
6325
+ </xsl:copy>
6326
+ </xsl:template>
6327
+
6206
6328
  <!-- Examples:
6207
6329
  <stem type="AsciiMath">x = 1</stem>
6208
6330
  <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
@@ -6266,19 +6388,23 @@
6266
6388
  <xsl:apply-templates/>
6267
6389
  </xsl:when>
6268
6390
  <xsl:otherwise>
6269
- <fo:basic-link external-destination="{$target}" fox:alt-text="{$target}">
6270
- <xsl:choose>
6271
- <xsl:when test="normalize-space(.) = ''">
6272
- <xsl:call-template name="add-zero-spaces-link-java">
6273
- <xsl:with-param name="text" select="$target_text"/>
6274
- </xsl:call-template>
6275
- </xsl:when>
6276
- <xsl:otherwise>
6277
- <!-- output text from <link>text</link> -->
6278
- <xsl:apply-templates/>
6279
- </xsl:otherwise>
6280
- </xsl:choose>
6281
- </fo:basic-link>
6391
+ <xsl:call-template name="insert_basic_link">
6392
+ <xsl:with-param name="element">
6393
+ <fo:basic-link external-destination="{$target}" fox:alt-text="{$target}">
6394
+ <xsl:choose>
6395
+ <xsl:when test="normalize-space(.) = ''">
6396
+ <xsl:call-template name="add-zero-spaces-link-java">
6397
+ <xsl:with-param name="text" select="$target_text"/>
6398
+ </xsl:call-template>
6399
+ </xsl:when>
6400
+ <xsl:otherwise>
6401
+ <!-- output text from <link>text</link> -->
6402
+ <xsl:apply-templates/>
6403
+ </xsl:otherwise>
6404
+ </xsl:choose>
6405
+ </fo:basic-link>
6406
+ </xsl:with-param>
6407
+ </xsl:call-template>
6282
6408
  </xsl:otherwise>
6283
6409
  </xsl:choose>
6284
6410
  </fo:inline>
@@ -6341,12 +6467,16 @@
6341
6467
  </xsl:template>
6342
6468
 
6343
6469
  <xsl:template match="*[local-name() = 'xref']">
6344
- <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
6345
- <xsl:if test="parent::*[local-name() = 'add']">
6346
- <xsl:call-template name="append_add-style"/>
6347
- </xsl:if>
6348
- <xsl:apply-templates/>
6349
- </fo:basic-link>
6470
+ <xsl:call-template name="insert_basic_link">
6471
+ <xsl:with-param name="element">
6472
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
6473
+ <xsl:if test="parent::*[local-name() = 'add']">
6474
+ <xsl:call-template name="append_add-style"/>
6475
+ </xsl:if>
6476
+ <xsl:apply-templates/>
6477
+ </fo:basic-link>
6478
+ </xsl:with-param>
6479
+ </xsl:call-template>
6350
6480
  </xsl:template>
6351
6481
 
6352
6482
  <!-- ====== -->
@@ -6657,6 +6787,13 @@
6657
6787
  </fo:block>
6658
6788
  </xsl:template>
6659
6789
 
6790
+ <!-- SOURCE: ... -->
6791
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
6792
+
6793
+ <xsl:call-template name="termsource"/>
6794
+
6795
+ </xsl:template>
6796
+
6660
6797
  <xsl:template match="*[local-name() = 'image']">
6661
6798
  <xsl:variable name="isAdded" select="../@added"/>
6662
6799
  <xsl:variable name="isDeleted" select="../@deleted"/>
@@ -6730,7 +6867,7 @@
6730
6867
  <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
6731
6868
  </xsl:when>
6732
6869
  <xsl:when test="not(starts-with(@src, 'data:'))">
6733
- <xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
6870
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
6734
6871
  </xsl:when>
6735
6872
  <xsl:otherwise>
6736
6873
  <xsl:value-of select="@src"/>
@@ -6752,7 +6889,7 @@
6752
6889
  </xsl:when>
6753
6890
  <xsl:when test="not(starts-with(@src, 'data:'))">
6754
6891
  <xsl:variable name="src">
6755
- <xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
6892
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
6756
6893
  </xsl:variable>
6757
6894
  <xsl:variable name="file" select="java:java.io.File.new(@src)"/>
6758
6895
  <xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($file)"/>
@@ -7138,15 +7275,19 @@
7138
7275
  <xsl:param name="dest"/>
7139
7276
  <fo:block-container position="absolute" left="{$left}px" top="{$top}px" width="{$width}px" height="{$height}px">
7140
7277
  <fo:block font-size="1pt">
7141
- <fo:basic-link internal-destination="{$dest}" fox:alt-text="svg link">
7142
- <fo:inline-container inline-progression-dimension="100%">
7143
- <fo:block-container height="{$height - 1}px" width="100%">
7144
- <!-- DEBUG <xsl:if test="local-name()='polygon'">
7145
- <xsl:attribute name="background-color">magenta</xsl:attribute>
7146
- </xsl:if> -->
7147
- <fo:block> </fo:block></fo:block-container>
7148
- </fo:inline-container>
7149
- </fo:basic-link>
7278
+ <xsl:call-template name="insert_basic_link">
7279
+ <xsl:with-param name="element">
7280
+ <fo:basic-link internal-destination="{$dest}" fox:alt-text="svg link">
7281
+ <fo:inline-container inline-progression-dimension="100%">
7282
+ <fo:block-container height="{$height - 1}px" width="100%">
7283
+ <!-- DEBUG <xsl:if test="local-name()='polygon'">
7284
+ <xsl:attribute name="background-color">magenta</xsl:attribute>
7285
+ </xsl:if> -->
7286
+ <fo:block> </fo:block></fo:block-container>
7287
+ </fo:inline-container>
7288
+ </fo:basic-link>
7289
+ </xsl:with-param>
7290
+ </xsl:call-template>
7150
7291
  </fo:block>
7151
7292
  </fo:block-container>
7152
7293
  </xsl:template>
@@ -7807,9 +7948,11 @@
7807
7948
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
7808
7949
  </xsl:if>
7809
7950
 
7810
- <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
7951
+ <xsl:apply-templates select="node()[not(local-name() = 'name' or local-name() = 'dl')]"/>
7811
7952
  </fo:block>
7812
7953
 
7954
+ <xsl:apply-templates select="*[local-name() = 'dl']"/> <!-- Key table -->
7955
+
7813
7956
  </fo:block-container>
7814
7957
  </fo:block-container>
7815
7958
  </xsl:otherwise>
@@ -7839,11 +7982,22 @@
7839
7982
  <!-- add sourcecode highlighting -->
7840
7983
  <xsl:template match="*[local-name()='sourcecode']//*[local-name()='span'][@class]" priority="2">
7841
7984
  <xsl:variable name="class" select="@class"/>
7985
+
7986
+ <!-- Example: <1> -->
7987
+ <xsl:variable name="is_callout">
7988
+ <xsl:if test="parent::*[local-name() = 'dt']">
7989
+ <xsl:variable name="dt_id" select="../@id"/>
7990
+ <xsl:if test="ancestor::*[local-name() = 'sourcecode']//*[local-name() = 'callout'][@target = $dt_id]">true</xsl:if>
7991
+ </xsl:if>
7992
+ </xsl:variable>
7993
+
7842
7994
  <xsl:choose>
7843
7995
  <xsl:when test="$sourcecode_css//class[@name = $class]">
7844
7996
  <fo:inline>
7845
7997
  <xsl:apply-templates select="$sourcecode_css//class[@name = $class]" mode="css"/>
7998
+ <xsl:if test="$is_callout = 'true'">&lt;</xsl:if>
7846
7999
  <xsl:apply-templates/>
8000
+ <xsl:if test="$is_callout = 'true'">&gt;</xsl:if>
7847
8001
  </fo:inline>
7848
8002
  </xsl:when>
7849
8003
  <xsl:otherwise>
@@ -8267,6 +8421,10 @@
8267
8421
  </fo:block>
8268
8422
  </xsl:template>
8269
8423
 
8424
+ <xsl:template match="*[local-name() = 'div']">
8425
+ <fo:block><xsl:apply-templates/></fo:block>
8426
+ </xsl:template>
8427
+
8270
8428
  <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8271
8429
  <fo:block xsl:use-attribute-sets="inherit-style">
8272
8430
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
@@ -8702,14 +8860,18 @@
8702
8860
  </xsl:template>
8703
8861
 
8704
8862
  <xsl:template match="*[local-name() = 'origin']">
8705
- <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
8706
- <xsl:if test="normalize-space(@citeas) = ''">
8707
- <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
8708
- </xsl:if>
8709
- <fo:inline xsl:use-attribute-sets="origin-style">
8710
- <xsl:apply-templates/>
8711
- </fo:inline>
8712
- </fo:basic-link>
8863
+ <xsl:call-template name="insert_basic_link">
8864
+ <xsl:with-param name="element">
8865
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
8866
+ <xsl:if test="normalize-space(@citeas) = ''">
8867
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
8868
+ </xsl:if>
8869
+ <fo:inline xsl:use-attribute-sets="origin-style">
8870
+ <xsl:apply-templates/>
8871
+ </fo:inline>
8872
+ </fo:basic-link>
8873
+ </xsl:with-param>
8874
+ </xsl:call-template>
8713
8875
  </xsl:template>
8714
8876
 
8715
8877
  <!-- not using, see https://github.com/glossarist/iev-document/issues/23 -->
@@ -8783,9 +8945,13 @@
8783
8945
  <xsl:if test="../*[local-name() = 'author']">
8784
8946
  <xsl:text>, </xsl:text>
8785
8947
  </xsl:if>
8786
- <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
8787
- <xsl:apply-templates/>
8788
- </fo:basic-link>
8948
+ <xsl:call-template name="insert_basic_link">
8949
+ <xsl:with-param name="element">
8950
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
8951
+ <xsl:apply-templates/>
8952
+ </fo:basic-link>
8953
+ </xsl:with-param>
8954
+ </xsl:call-template>
8789
8955
  </xsl:template>
8790
8956
 
8791
8957
  <xsl:template match="*[local-name() = 'author']">
@@ -8834,25 +9000,29 @@
8834
9000
  <xsl:variable name="citeas" select="java:replaceAll(java:java.lang.String.new(@citeas),'^\[?(.+?)\]?$','$1')"/> <!-- remove leading and trailing brackets -->
8835
9001
  <xsl:variable name="text" select="normalize-space()"/>
8836
9002
 
8837
- <fo:basic-link fox:alt-text="{@citeas}">
8838
- <xsl:if test="normalize-space(@citeas) = ''">
8839
- <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
8840
- </xsl:if>
8841
- <xsl:if test="@type = 'inline'">
9003
+ <xsl:call-template name="insert_basic_link">
9004
+ <xsl:with-param name="element">
9005
+ <fo:basic-link fox:alt-text="{@citeas}">
9006
+ <xsl:if test="normalize-space(@citeas) = ''">
9007
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
9008
+ </xsl:if>
9009
+ <xsl:if test="@type = 'inline'">
8842
9010
 
8843
- </xsl:if>
9011
+ </xsl:if>
8844
9012
 
8845
- <xsl:choose>
8846
- <xsl:when test="$external-destination != ''"> <!-- external hyperlink -->
8847
- <xsl:attribute name="external-destination"><xsl:value-of select="$external-destination"/></xsl:attribute>
8848
- </xsl:when>
8849
- <xsl:otherwise>
8850
- <xsl:attribute name="internal-destination"><xsl:value-of select="@bibitemid"/></xsl:attribute>
8851
- </xsl:otherwise>
8852
- </xsl:choose>
9013
+ <xsl:choose>
9014
+ <xsl:when test="$external-destination != ''"> <!-- external hyperlink -->
9015
+ <xsl:attribute name="external-destination"><xsl:value-of select="$external-destination"/></xsl:attribute>
9016
+ </xsl:when>
9017
+ <xsl:otherwise>
9018
+ <xsl:attribute name="internal-destination"><xsl:value-of select="@bibitemid"/></xsl:attribute>
9019
+ </xsl:otherwise>
9020
+ </xsl:choose>
8853
9021
 
8854
- <xsl:apply-templates/>
8855
- </fo:basic-link>
9022
+ <xsl:apply-templates/>
9023
+ </fo:basic-link>
9024
+ </xsl:with-param>
9025
+ </xsl:call-template>
8856
9026
 
8857
9027
  </fo:inline>
8858
9028
  </xsl:when>
@@ -8966,13 +9136,8 @@
8966
9136
  </xsl:template>
8967
9137
 
8968
9138
  <xsl:template match="*[local-name() = 'deprecates']">
8969
- <xsl:variable name="title-deprecated">
8970
- <xsl:call-template name="getLocalizedString">
8971
- <xsl:with-param name="key">deprecated</xsl:with-param>
8972
- </xsl:call-template>
8973
- </xsl:variable>
8974
9139
  <fo:block xsl:use-attribute-sets="deprecates-style">
8975
- <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
9140
+ <xsl:apply-templates/>
8976
9141
  </fo:block>
8977
9142
  </xsl:template>
8978
9143
 
@@ -9097,7 +9262,10 @@
9097
9262
  <xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
9098
9263
 
9099
9264
  <xsl:template name="setULLabel">
9100
- <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9265
+ <xsl:variable name="list_level__">
9266
+ <xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9267
+ </xsl:variable>
9268
+ <xsl:variable name="list_level_" select="number($list_level__)"/>
9101
9269
  <xsl:variable name="list_level">
9102
9270
  <xsl:choose>
9103
9271
  <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
@@ -9230,9 +9398,11 @@
9230
9398
  </fo:block-container>
9231
9399
  </xsl:when>
9232
9400
  <xsl:otherwise>
9233
- <fo:block>
9234
- <xsl:apply-templates select="." mode="list"/>
9235
- </fo:block>
9401
+
9402
+ <fo:block>
9403
+ <xsl:apply-templates select="." mode="list"/>
9404
+ </fo:block>
9405
+
9236
9406
  </xsl:otherwise>
9237
9407
  </xsl:choose>
9238
9408
  </xsl:template>
@@ -9912,24 +10082,32 @@
9912
10082
  <xsl:for-each select="*[local-name() = 'tab']">
9913
10083
  <xsl:variable name="current_id" select="generate-id()"/>
9914
10084
  <fo:table-cell>
9915
- <fo:block>
9916
- <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
9917
- <xsl:for-each select="following-sibling::node()[not(self::*[local-name() = 'tab']) and preceding-sibling::*[local-name() = 'tab'][1][generate-id() = $current_id]]">
9918
- <xsl:choose>
9919
- <xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
9920
- <xsl:otherwise><xsl:apply-templates select="."/></xsl:otherwise>
9921
- </xsl:choose>
9922
- </xsl:for-each>
9923
- </fo:basic-link>
10085
+ <fo:block line-height-shift-adjustment="disregard-shifts">
10086
+ <xsl:call-template name="insert_basic_link">
10087
+ <xsl:with-param name="element">
10088
+ <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
10089
+ <xsl:for-each select="following-sibling::node()[not(self::*[local-name() = 'tab']) and preceding-sibling::*[local-name() = 'tab'][1][generate-id() = $current_id]]">
10090
+ <xsl:choose>
10091
+ <xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
10092
+ <xsl:otherwise><xsl:apply-templates select="."/></xsl:otherwise>
10093
+ </xsl:choose>
10094
+ </xsl:for-each>
10095
+ </fo:basic-link>
10096
+ </xsl:with-param>
10097
+ </xsl:call-template>
9924
10098
  </fo:block>
9925
10099
  </fo:table-cell>
9926
10100
  </xsl:for-each>
9927
10101
  <!-- last column - for page numbers -->
9928
10102
  <fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
9929
10103
  <fo:block>
9930
- <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
9931
- <fo:page-number-citation ref-id="{$target}"/>
9932
- </fo:basic-link>
10104
+ <xsl:call-template name="insert_basic_link">
10105
+ <xsl:with-param name="element">
10106
+ <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
10107
+ <fo:page-number-citation ref-id="{$target}"/>
10108
+ </fo:basic-link>
10109
+ </xsl:with-param>
10110
+ </xsl:call-template>
9933
10111
  </fo:block>
9934
10112
  </fo:table-cell>
9935
10113
  </xsl:template>
@@ -9971,6 +10149,27 @@
9971
10149
  <!-- End Table of Contents (ToC) processing -->
9972
10150
  <!-- =================== -->
9973
10151
 
10152
+ <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
10153
+ <xsl:template name="insert_basic_link">
10154
+ <xsl:param name="element"/>
10155
+ <xsl:variable name="element_node" select="xalan:nodeset($element)"/>
10156
+ <xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
10157
+ <xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
10158
+ <xsl:choose>
10159
+ <xsl:when test="$external-destination = 'true' or $internal-destination = 'true'">
10160
+ <xsl:copy-of select="$element_node"/>
10161
+ </xsl:when>
10162
+ <xsl:otherwise>
10163
+ <fo:inline>
10164
+ <xsl:for-each select="$element_node/fo:basic-link/@*[local-name() != 'external-destination' and local-name() != 'internal-destination' and local-name() != 'alt-text']">
10165
+ <xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
10166
+ </xsl:for-each>
10167
+ <xsl:copy-of select="$element_node/fo:basic-link/node()"/>
10168
+ </fo:inline>
10169
+ </xsl:otherwise>
10170
+ </xsl:choose>
10171
+ </xsl:template>
10172
+
9974
10173
  <xsl:template match="*[local-name() = 'variant-title']"/> <!-- [@type = 'sub'] -->
9975
10174
  <xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
9976
10175
  <fo:inline padding-right="5mm"> </fo:inline>
@@ -10193,6 +10392,23 @@
10193
10392
  <xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image']" mode="update_xml_step1">
10194
10393
  <xsl:copy-of select="."/>
10195
10394
  </xsl:template>
10395
+
10396
+ <!-- add @id, redundant for table auto-layout algorithm -->
10397
+ <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
10398
+ <xsl:copy>
10399
+ <xsl:copy-of select="@*"/>
10400
+ <xsl:call-template name="add_id"/>
10401
+ <xsl:apply-templates mode="update_xml_step1"/>
10402
+ </xsl:copy>
10403
+ </xsl:template>
10404
+
10405
+ <xsl:template name="add_id">
10406
+ <xsl:if test="not(@id)">
10407
+ <!-- add @id - first element with @id plus '_element_name' -->
10408
+ <xsl:attribute name="id"><xsl:value-of select="(.//*[@id])[1]/@id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
10409
+ </xsl:if>
10410
+ </xsl:template>
10411
+
10196
10412
  <!-- =========================================================================== -->
10197
10413
  <!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
10198
10414
  <!-- =========================================================================== -->
@@ -12,21 +12,6 @@ module IsoDoc
12
12
  Metanorma::Ribose.configuration
13
13
  end
14
14
 
15
- def make_body2(body, docxml)
16
- body.div **{ class: "WordSection2" } do |div2|
17
- boilerplate docxml, div2
18
- preface_block docxml, div2
19
- abstract docxml, div2
20
- foreword docxml, div2
21
- executivesummary docxml, div2
22
- introduction docxml, div2
23
- preface docxml, div2
24
- acknowledgements docxml, div2
25
- div2.p { |p| p << "&#xa0;" } # placeholder
26
- end
27
- section_break(body)
28
- end
29
-
30
15
  include BaseConvert
31
16
  include Init
32
17
  end
@@ -8,7 +8,7 @@ module Metanorma
8
8
  #
9
9
  class Converter < Metanorma::Generic::Converter
10
10
  XML_ROOT_TAG = "rsd-standard".freeze
11
- XML_NAMESPACE = "https://www.metanorma.org/ns/rsd".freeze
11
+ XML_NAMESPACE = "https://www.metanorma.org/ns/ribose".freeze
12
12
 
13
13
  register_for "ribose"
14
14
 
@@ -17,6 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
+ <!-- VERSION v1.2.1 -->
20
21
  <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">
21
22
  <include href="reqt.rng"/>
22
23
  <include href="basicdoc.rng">
@@ -382,6 +383,9 @@
382
383
  <optional>
383
384
  <ref name="dl"/>
384
385
  </optional>
386
+ <optional>
387
+ <ref name="source"/>
388
+ </optional>
385
389
  </element>
386
390
  </define>
387
391
  <define name="figure">
@@ -404,9 +408,6 @@
404
408
  <attribute name="class"/>
405
409
  </optional>
406
410
  <ref name="BlockAttributes"/>
407
- <optional>
408
- <ref name="source"/>
409
- </optional>
410
411
  <optional>
411
412
  <ref name="tname"/>
412
413
  </optional>
@@ -431,6 +432,20 @@
431
432
  <zeroOrMore>
432
433
  <ref name="note"/>
433
434
  </zeroOrMore>
435
+ <optional>
436
+ <ref name="source"/>
437
+ </optional>
438
+ </element>
439
+ </define>
440
+ <define name="source">
441
+ <element name="source">
442
+ <attribute name="status">
443
+ <ref name="SourceStatusType"/>
444
+ </attribute>
445
+ <ref name="origin"/>
446
+ <optional>
447
+ <ref name="modification"/>
448
+ </optional>
434
449
  </element>
435
450
  </define>
436
451
  <define name="sourcecode">
@@ -1335,15 +1350,19 @@
1335
1350
  </choice>
1336
1351
  </element>
1337
1352
  </define>
1353
+ <define name="Root-Attributes">
1354
+ <attribute name="version"/>
1355
+ <attribute name="schema-version"/>
1356
+ <attribute name="type">
1357
+ <choice>
1358
+ <value>semantic</value>
1359
+ <value>presentation</value>
1360
+ </choice>
1361
+ </attribute>
1362
+ </define>
1338
1363
  <define name="standard-document">
1339
1364
  <element name="standard-document">
1340
- <attribute name="version"/>
1341
- <attribute name="type">
1342
- <choice>
1343
- <value>semantic</value>
1344
- <value>presentation</value>
1345
- </choice>
1346
- </attribute>
1365
+ <ref name="Root-Attributes"/>
1347
1366
  <ref name="bibdata"/>
1348
1367
  <optional>
1349
1368
  <ref name="misccontainer"/>
@@ -2099,10 +2118,7 @@
2099
2118
  <define name="termsource">
2100
2119
  <element name="termsource">
2101
2120
  <attribute name="status">
2102
- <choice>
2103
- <value>identical</value>
2104
- <value>modified</value>
2105
- </choice>
2121
+ <ref name="SourceStatusType"/>
2106
2122
  </attribute>
2107
2123
  <attribute name="type">
2108
2124
  <choice>
@@ -2116,6 +2132,17 @@
2116
2132
  </optional>
2117
2133
  </element>
2118
2134
  </define>
2135
+ <define name="SourceStatusType">
2136
+ <choice>
2137
+ <value>identical</value>
2138
+ <value>modified</value>
2139
+ <value>restyled</value>
2140
+ <value>context-added</value>
2141
+ <value>generalisation</value>
2142
+ <value>specialisation</value>
2143
+ <value>unspecified</value>
2144
+ </choice>
2145
+ </define>
2119
2146
  <define name="origin">
2120
2147
  <element name="origin">
2121
2148
  <choice>
@@ -1,6 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns="https://www.metanorma.org/ns/rsd" xmlns="http://relaxng.org/ns/structure/1.0">
2
+ <grammar ns='https://www.metanorma.org/ns/ribose' xmlns="http://relaxng.org/ns/structure/1.0">
3
3
  <!--
4
+ VERSION v1.2.1
4
5
  Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
5
6
  we cannot have a new default namespace: we will end up with a grammar with two different
6
7
  namespaces, one for isostandard and one for csand additions. And we do not want that.
@@ -13,13 +14,7 @@
13
14
  </include>
14
15
  <define name="rsd-standard">
15
16
  <element name="rsd-standard">
16
- <attribute name="version"/>
17
- <attribute name="type">
18
- <choice>
19
- <value>semantic</value>
20
- <value>presentation</value>
21
- </choice>
22
- </attribute>
17
+ <ref name="Root-Attributes"/>
23
18
  <ref name="bibdata"/>
24
19
  <zeroOrMore>
25
20
  <ref name="termdocsource"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.2.6".freeze
3
+ VERSION = "2.2.8".freeze
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
31
31
 
32
- spec.add_dependency "metanorma-generic", "~> 2.4.0"
32
+ spec.add_dependency "metanorma-generic", "~> 2.4.1"
33
33
 
34
34
  spec.add_development_dependency "debug"
35
35
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
data/metanorma.yml CHANGED
@@ -1,10 +1,10 @@
1
1
  metanorma_name: ribose
2
2
  organization_name_short: Ribose
3
3
  organization_name_long: Ribose Asia Limited
4
- document_namespace: https://www.metanorma.org/ns/rsd
4
+ document_namespace: https://www.metanorma.org/ns/ribose
5
5
  xml_root_tag: 'rsd-standard'
6
6
  logo_path: lib/isodoc/ribose/html/logo.png
7
- validate_rng_file: lib/metanorma/ribose/rsd.rng
7
+ validate_rng_file: lib/metanorma/ribose/ribose.rng
8
8
  i18nyaml: lib/isodoc/ribose/i18n-en.yaml
9
9
  htmlcoverpage: lib/isodoc/ribose/html/html_rsd_titlepage.html
10
10
  htmlintropage: lib/isodoc/ribose/html/html_rsd_intro.html
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.2.6
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.0
19
+ version: 2.4.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.4.0
26
+ version: 2.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ files:
218
218
  - lib/metanorma/ribose/processor.rb
219
219
  - lib/metanorma/ribose/relaton-ribose.rng
220
220
  - lib/metanorma/ribose/reqt.rng
221
- - lib/metanorma/ribose/rsd.rng
221
+ - lib/metanorma/ribose/ribose.rng
222
222
  - lib/metanorma/ribose/version.rb
223
223
  - metanorma-ribose.gemspec
224
224
  - metanorma.yml