metanorma-ribose 2.4.12 → 2.5.1

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: ead04a3f02a2de2f0d13bee5b3769b1bb3481b97168a7653d90296466f1bf39a
4
- data.tar.gz: d56daa4297255da6ebcdb64ff0397ac22480d0802febab8e9824df81ecdfd29b
3
+ metadata.gz: a585eb3c6e6911e374a2f56a8aee8951388e1ab2810eb6034d216a6dcc978635
4
+ data.tar.gz: 806f318cc8c824e4647e10dc78fe0377db3b03bb29ec419d870335a1f2bc69fe
5
5
  SHA512:
6
- metadata.gz: 779ef1ff124ce316f7684f47486d76f62b72f20c5aac64105f08e982f875cafa7b68af27e741a6b4947feb7cf0d03a3e2c53a1600162428385d0bdd52a6d4332
7
- data.tar.gz: 37a61afdf7f21a230eacf50189f116f7f79c4ed2f0f11da550dbad05b307842fac68026ee88387345a4f24707a013497affda511080168784b23c91fe57eed4f
6
+ metadata.gz: d15596b24bf061829be99da2547d9584cdd32f597484021bedf0169ba72e29c227bf0dd52ef81861ee16fab97a67b58e6e55295121e5e840b3965a08d5804ef0
7
+ data.tar.gz: 0cde58ef6d4647aca47451564ffb12c12c2fc5e9f9ac1893aa48375b7e25f72056a37030fea1bfd4344bfa20ad5fd67fb6c54abc1b327351e3b14aee7a8cbabb
@@ -21,6 +21,10 @@ module IsoDoc
21
21
  def clausedelim
22
22
  ""
23
23
  end
24
+
25
+ def configuration
26
+ Metanorma::Ribose.configuration
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -229,6 +229,46 @@ h6:hover > a.anchor,
229
229
  .inline-header:hover > a.anchor {
230
230
  visibility: visible; }
231
231
 
232
+ /* collapsible snippets: collapsible before hidable */
233
+ .hidable {
234
+ max-height: 0;
235
+ overflow: hidden;
236
+ transition: max-height 0.2s ease-out; }
237
+
238
+ .collapsible {
239
+ background-color: #777;
240
+ color: white;
241
+ cursor: pointer;
242
+ padding: 12px 0;
243
+ margin: 0;
244
+ width: 100%;
245
+ border: none;
246
+ text-align: left;
247
+ outline: none;
248
+ font-size: 15px; }
249
+
250
+ .active, .collapsible:hover {
251
+ background-color: #555; }
252
+
253
+ .collapsible:after {
254
+ content: '\25bc';
255
+ color: white;
256
+ font-weight: bold;
257
+ float: right;
258
+ margin-left: 12px;
259
+ margin-right: 12px; }
260
+
261
+ .active:after {
262
+ content: "\25b2"; }
263
+
264
+ /* collapsible: */
265
+ .collapsible + .hidable {
266
+ margin-top: 0; }
267
+
268
+ .collapsible:not(.active) + .hidable {
269
+ overflow: hidden;
270
+ padding: 0; }
271
+
232
272
  #standard-band {
233
273
  background-color: #0AC442; }
234
274
 
@@ -9,10 +9,6 @@ module IsoDoc
9
9
  # schema encapsulation of the document for validation
10
10
  #
11
11
  class HtmlConvert < IsoDoc::Generic::HtmlConvert
12
- def configuration
13
- Metanorma::Ribose.configuration
14
- end
15
-
16
12
  include BaseConvert
17
13
  include Init
18
14
  end
@@ -1,18 +1,18 @@
1
1
  require "isodoc"
2
+ require_relative "base_convert"
2
3
 
3
4
  module IsoDoc
4
5
  module Ribose
5
6
  # A {Converter} implementation that generates PDF HTML output, and a
6
7
  # document schema encapsulation of the document for validation
7
- class PdfConvert < IsoDoc::XslfoPdfConvert
8
+ class PdfConvert < IsoDoc::Generic::PdfConvert
8
9
  def initialize(options)
9
10
  @libdir = File.dirname(__FILE__)
10
11
  super
11
12
  end
12
13
 
13
- def pdf_stylesheet(_docxml)
14
- "ribose.standard.xsl"
15
- end
14
+ include BaseConvert
15
+ include Init
16
16
  end
17
17
  end
18
18
  end
@@ -3216,13 +3216,35 @@
3216
3216
  </xsl:for-each>
3217
3217
  </xsl:element>
3218
3218
 
3219
- <xsl:call-template name="insertAnnexInSeparatePageSequences"/>
3219
+ <xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
3220
3220
 
3221
- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
3221
+ <!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
3222
3222
 
3223
3223
  <!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
3224
3224
  </xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
3225
3225
 
3226
+ <xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
3227
+ <xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
3228
+ <xsl:sort select="@displayorder" data-type="number"/>
3229
+ <xsl:choose>
3230
+ <xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
3231
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
3232
+ <xsl:attribute name="main_page_sequence"/>
3233
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
3234
+ </xsl:element>
3235
+ </xsl:when>
3236
+ <xsl:otherwise> <!-- bibliography -->
3237
+ <xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
3238
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
3239
+ <xsl:attribute name="main_page_sequence"/>
3240
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
3241
+ </xsl:element>
3242
+ </xsl:element>
3243
+ </xsl:otherwise>
3244
+ </xsl:choose>
3245
+ </xsl:for-each>
3246
+ </xsl:template>
3247
+
3226
3248
  <xsl:template name="insertAnnexInSeparatePageSequences">
3227
3249
  <xsl:for-each select="/*/*[local-name()='annex']">
3228
3250
  <xsl:sort select="@displayorder" data-type="number"/>
@@ -7423,6 +7445,12 @@
7423
7445
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7424
7446
  <attachment filename="{@name}"/>
7425
7447
  </xsl:for-each>
7448
+ <xsl:if test="not(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
7449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
7450
+ <xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
7451
+ <attachment filename="{$attachment_path}"/>
7452
+ </xsl:for-each>
7453
+ </xsl:if>
7426
7454
  </xsl:variable>
7427
7455
  <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7428
7456
 
@@ -7435,7 +7463,7 @@
7435
7463
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7436
7464
  </xsl:when>
7437
7465
  <!-- link to the PDF attachment -->
7438
- <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7466
+ <xsl:when test="@attachment = 'true' and $pdfAttachmentsList//attachment[@filename = current()/@target]">
7439
7467
  <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7440
7468
  </xsl:when>
7441
7469
  <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
@@ -8087,7 +8115,16 @@
8087
8115
  </xsl:variable>
8088
8116
  <xsl:variable name="img_src">
8089
8117
  <xsl:choose>
8090
- <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
8118
+ <xsl:when test="not(starts-with(@src, 'data:'))">
8119
+ <xsl:choose>
8120
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
8121
+ <xsl:value-of select="@src"/>
8122
+ </xsl:when>
8123
+ <xsl:otherwise>
8124
+ <xsl:value-of select="concat($basepath, @src)"/>
8125
+ </xsl:otherwise>
8126
+ </xsl:choose>
8127
+ </xsl:when>
8091
8128
  <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
8092
8129
  </xsl:choose>
8093
8130
  </xsl:variable>
@@ -8100,7 +8137,7 @@
8100
8137
  <!-- <xsl:message>width_effective=<xsl:value-of select="$width_effective"/></xsl:message>
8101
8138
  <xsl:message>indent_left=<xsl:value-of select="$indent_left"/></xsl:message>
8102
8139
  <xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
8103
- <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
8140
+ <xsl:variable name="scale" select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
8104
8141
  <xsl:value-of select="$scale"/>
8105
8142
  </xsl:template>
8106
8143
 
@@ -8119,7 +8156,14 @@
8119
8156
  <xsl:value-of select="concat('url(file:///',$basepath, $src_png, ')')"/>
8120
8157
  </xsl:when>
8121
8158
  <xsl:when test="not(starts-with(@src, 'data:'))">
8122
- <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
8159
+ <xsl:choose>
8160
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
8161
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
8162
+ </xsl:when>
8163
+ <xsl:otherwise>
8164
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
8165
+ </xsl:otherwise>
8166
+ </xsl:choose>
8123
8167
  </xsl:when>
8124
8168
  <xsl:otherwise>
8125
8169
  <xsl:value-of select="@src"/>
@@ -8141,7 +8185,14 @@
8141
8185
  </xsl:when>
8142
8186
  <xsl:when test="not(starts-with(@src, 'data:'))">
8143
8187
  <xsl:variable name="src">
8144
- <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
8188
+ <xsl:choose>
8189
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
8190
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
8191
+ </xsl:when>
8192
+ <xsl:otherwise>
8193
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
8194
+ </xsl:otherwise>
8195
+ </xsl:choose>
8145
8196
  </xsl:variable>
8146
8197
  <xsl:variable name="file" select="java:java.io.File.new(@src)"/>
8147
8198
  <xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($file)"/>
@@ -12044,10 +12095,12 @@
12044
12095
  <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12045
12096
  <xsl:copy>
12046
12097
  <xsl:copy-of select="@*"/>
12047
- <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12048
- <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12049
- <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12050
- <xsl:value-of select="."/>
12098
+ <xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
12099
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12100
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12101
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12102
+ <xsl:value-of select="normalize-space(.)"/>
12103
+ </xsl:if>
12051
12104
  </xsl:if>
12052
12105
  </xsl:copy>
12053
12106
  </xsl:template>
@@ -12920,25 +12973,37 @@
12920
12973
  </x:xmpmeta>
12921
12974
  <!-- add attachments -->
12922
12975
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
12923
- <xsl:choose>
12924
- <xsl:when test="normalize-space() != ''">
12925
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{.}" filename="{@name}"/>
12926
- </xsl:when>
12927
- <xsl:otherwise>
12928
- <!-- _{filename}_attachments -->
12929
- <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
12930
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
12931
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
12932
- </xsl:otherwise>
12933
- </xsl:choose>
12976
+ <xsl:variable name="description" select="normalize-space(//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment'] = current()/@name]/*[local-name() = 'formattedref'])"/>
12977
+
12978
+ <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" filename="{@name}">
12979
+ <xsl:attribute name="src">
12980
+ <xsl:choose>
12981
+ <xsl:when test="normalize-space() != ''">
12982
+ <xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'(&#13;&#10;|&#13;|&#10;)', '')"/> <!-- remove line breaks -->
12983
+ <xsl:value-of select="$src_attachment"/>
12984
+ </xsl:when>
12985
+ <xsl:otherwise>
12986
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
12987
+ <xsl:value-of select="$url"/>
12988
+ </xsl:otherwise>
12989
+ </xsl:choose>
12990
+ </xsl:attribute>
12991
+ <xsl:if test="$description != ''">
12992
+ <xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
12993
+ </xsl:if>
12994
+ </pdf:embedded-file>
12934
12995
  </xsl:for-each>
12935
12996
  <!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
12936
12997
  <xsl:if test="not(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
12937
12998
  <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
12938
12999
  <xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
12939
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, $attachment_path, ')')"/>
12940
- <xsl:variable name="filename_embedded" select="substring-after($attachment_path, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
12941
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{$filename_embedded}"/>
13000
+ <xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
13001
+ <xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
13002
+ <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{$attachment_path}">
13003
+ <xsl:if test="$description != ''">
13004
+ <xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
13005
+ </xsl:if>
13006
+ </pdf:embedded-file>
12942
13007
  </xsl:for-each>
12943
13008
  </xsl:if>
12944
13009
  </xsl:template> <!-- addPDFUAmeta -->
@@ -13316,7 +13381,14 @@
13316
13381
  <xsl:value-of select="$src"/>
13317
13382
  </xsl:when>
13318
13383
  <xsl:otherwise>
13319
- <xsl:value-of select="concat('url(file:///',$basepath, $src, ')')"/>
13384
+ <xsl:choose>
13385
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
13386
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
13387
+ </xsl:when>
13388
+ <xsl:otherwise>
13389
+ <xsl:value-of select="concat('url(file:///',$basepath, $src, ')')"/>
13390
+ </xsl:otherwise>
13391
+ </xsl:choose>
13320
13392
  </xsl:otherwise>
13321
13393
  </xsl:choose>
13322
13394
  </xsl:template>
@@ -1000,14 +1000,14 @@
1000
1000
  <define name="PureTextElement">
1001
1001
  <choice>
1002
1002
  <text/>
1003
- <ref name="em"/>
1004
- <ref name="strong"/>
1003
+ <ref name="pure_em"/>
1004
+ <ref name="pure_strong"/>
1005
1005
  <ref name="sub"/>
1006
1006
  <ref name="sup"/>
1007
- <ref name="tt"/>
1008
- <ref name="underline"/>
1009
- <ref name="strike"/>
1010
- <ref name="smallcap"/>
1007
+ <ref name="pure_tt"/>
1008
+ <ref name="pure_underline"/>
1009
+ <ref name="pure_strike"/>
1010
+ <ref name="pure_smallcap"/>
1011
1011
  <ref name="br"/>
1012
1012
  </choice>
1013
1013
  </define>
@@ -1031,6 +1031,13 @@
1031
1031
  </zeroOrMore>
1032
1032
  </element>
1033
1033
  </define>
1034
+ <define name="pure_em">
1035
+ <element name="em">
1036
+ <zeroOrMore>
1037
+ <ref name="PureTextElement"/>
1038
+ </zeroOrMore>
1039
+ </element>
1040
+ </define>
1034
1041
  <define name="strong">
1035
1042
  <element name="strong">
1036
1043
  <zeroOrMore>
@@ -1046,6 +1053,13 @@
1046
1053
  </zeroOrMore>
1047
1054
  </element>
1048
1055
  </define>
1056
+ <define name="pure_strong">
1057
+ <element name="strong">
1058
+ <zeroOrMore>
1059
+ <ref name="PureTextElement"/>
1060
+ </zeroOrMore>
1061
+ </element>
1062
+ </define>
1049
1063
  <define name="tt">
1050
1064
  <element name="tt">
1051
1065
  <zeroOrMore>
@@ -1060,6 +1074,13 @@
1060
1074
  </zeroOrMore>
1061
1075
  </element>
1062
1076
  </define>
1077
+ <define name="pure_tt">
1078
+ <element name="tt">
1079
+ <zeroOrMore>
1080
+ <ref name="PureTextElement"/>
1081
+ </zeroOrMore>
1082
+ </element>
1083
+ </define>
1063
1084
  <define name="keyword">
1064
1085
  <element name="keyword">
1065
1086
  <zeroOrMore>
@@ -1090,13 +1111,42 @@
1090
1111
  <zeroOrMore>
1091
1112
  <choice>
1092
1113
  <ref name="PureTextElement"/>
1114
+ <ref name="stem"/>
1115
+ <ref name="eref"/>
1116
+ <ref name="xref"/>
1117
+ <ref name="hyperlink"/>
1093
1118
  <ref name="index"/>
1094
1119
  <ref name="index-xref"/>
1095
1120
  </choice>
1096
1121
  </zeroOrMore>
1097
1122
  </element>
1098
1123
  </define>
1124
+ <define name="pure_strike">
1125
+ <element name="strike">
1126
+ <zeroOrMore>
1127
+ <ref name="PureTextElement"/>
1128
+ </zeroOrMore>
1129
+ </element>
1130
+ </define>
1099
1131
  <define name="underline">
1132
+ <element name="underline">
1133
+ <optional>
1134
+ <attribute name="style"/>
1135
+ </optional>
1136
+ <zeroOrMore>
1137
+ <choice>
1138
+ <ref name="PureTextElement"/>
1139
+ <ref name="stem"/>
1140
+ <ref name="eref"/>
1141
+ <ref name="xref"/>
1142
+ <ref name="hyperlink"/>
1143
+ <ref name="index"/>
1144
+ <ref name="index-xref"/>
1145
+ </choice>
1146
+ </zeroOrMore>
1147
+ </element>
1148
+ </define>
1149
+ <define name="pure_underline">
1100
1150
  <element name="underline">
1101
1151
  <optional>
1102
1152
  <attribute name="style"/>
@@ -1107,6 +1157,21 @@
1107
1157
  </element>
1108
1158
  </define>
1109
1159
  <define name="smallcap">
1160
+ <element name="smallcap">
1161
+ <zeroOrMore>
1162
+ <choice>
1163
+ <ref name="PureTextElement"/>
1164
+ <ref name="stem"/>
1165
+ <ref name="eref"/>
1166
+ <ref name="xref"/>
1167
+ <ref name="hyperlink"/>
1168
+ <ref name="index"/>
1169
+ <ref name="index-xref"/>
1170
+ </choice>
1171
+ </zeroOrMore>
1172
+ </element>
1173
+ </define>
1174
+ <define name="pure_smallcap">
1110
1175
  <element name="smallcap">
1111
1176
  <zeroOrMore>
1112
1177
  <ref name="PureTextElement"/>
@@ -1204,7 +1204,9 @@
1204
1204
  <optional>
1205
1205
  <ref name="formattedref"/>
1206
1206
  </optional>
1207
- <ref name="btitle"/>
1207
+ <oneOrMore>
1208
+ <ref name="btitle"/>
1209
+ </oneOrMore>
1208
1210
  <optional>
1209
1211
  <ref name="bplace"/>
1210
1212
  </optional>
@@ -662,6 +662,9 @@
662
662
  <value>LatexMath</value>
663
663
  </choice>
664
664
  </attribute>
665
+ <optional>
666
+ <attribute name="number-format"/>
667
+ </optional>
665
668
  <attribute name="block">
666
669
  <data type="boolean"/>
667
670
  </attribute>
@@ -15,15 +15,6 @@ module Metanorma
15
15
  )
16
16
  end
17
17
 
18
- def fonts_manifest
19
- {
20
- "Source Sans Pro" => nil,
21
- "STIX Two Math" => nil,
22
- "Source Serif Pro" => nil,
23
- "Source Code Pro" => nil,
24
- }
25
- end
26
-
27
18
  def version
28
19
  "Metanorma::Ribose #{Metanorma::Ribose::VERSION}"
29
20
  end
@@ -66,6 +66,9 @@
66
66
  <ref name="MultilingualRenderingType"/>
67
67
  </attribute>
68
68
  </optional>
69
+ <optional>
70
+ <attribute name="class"/>
71
+ </optional>
69
72
  <optional>
70
73
  <ref name="reqtitle"/>
71
74
  </optional>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.4.12".freeze
3
+ VERSION = "2.5.1".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(">= 3.1.0")
31
31
 
32
- spec.add_dependency "metanorma-generic", "~> 2.6.2"
32
+ spec.add_dependency "metanorma-generic", "~> 2.7.0"
33
33
 
34
34
  spec.add_development_dependency "debug"
35
35
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
data/metanorma.yml CHANGED
@@ -21,6 +21,7 @@ header: lib/isodoc/ribose/html/header.html
21
21
  wordcoverpage: lib/isodoc/ribose/html/word_rsd_titlepage.html
22
22
  wordintropage: lib/isodoc/ribose/html/word_rsd_intro.html
23
23
  wordstylesheet: lib/isodoc/ribose/html/wordstyle.scss
24
+ pdf_stylesheet: lib/isodoc/ribose/ribose.standard.xsl
24
25
  word_bodyfont: '"Source Sans Pro","Arial",sans-serif'
25
26
  word_headerfont: '"Source Sans Pro","Arial",sans-serif'
26
27
  word_monospacefont: '"Source Code Pro",monospace'
@@ -49,3 +50,8 @@ metadata_extensions:
49
50
  webfont:
50
51
  - "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600,600i&display=swap"
51
52
  - "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,300;0,600;1,300;1,600&display=swap"
53
+ fonts_manifest:
54
+ Source Sans Pro:
55
+ STIX Two Math:
56
+ Source Serif Pro:
57
+ Source Code Pro:
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.4.12
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-05 00:00:00.000000000 Z
11
+ date: 2024-09-02 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.6.2
19
+ version: 2.7.0
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.6.2
26
+ version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement