metanorma-ribose 2.2.12 → 2.2.13

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: 2597a251bd77d5c5d9bca4f9901956a69bd0e4a04a99c81da66d587fbbb153dd
4
- data.tar.gz: ec498d468745f70797c3b3460bfff9d155fa58061e49d41b6323ce09727a9bec
3
+ metadata.gz: 6050feccc1fe58b1346459237604117fc356f67789dff7c37a79f58ca292bf01
4
+ data.tar.gz: 7f5266ed502813bcd9eb610bb022adf98b08cca5573f9b9deb4353e5e9803435
5
5
  SHA512:
6
- metadata.gz: 5caa1261ccd6b4f0ca92013e60fe2bd0a8f7413cc187ffac8b1a1adbd000ad5c0f44736557cba729845dff04abb3f71480b6e5d370f5f7860fd9450439b00044
7
- data.tar.gz: 219923a62718f199b9cd5d95548c1ac78dc8fba367f3871b4c5f63657d9245fe92e1cd6a7791c3d846e3d63ac3b6525cf294ee77a0ecf03dcecfe18bbd2e9cbc
6
+ metadata.gz: 8d8a75a61dacfe0084e371a5ade4739d6b080108866f1f3d589b60a5678def496aac3f95d9e8ec911df53e772a9bd5422ac1cbd59dcc2c33185051ec9274e5a1
7
+ data.tar.gz: '08051535eca77df632609d2e459f2c32802f38e8de4a34389cf07e0ab189abf34fefa4d593587e7686cf70a3bd86bd694ba93b4a37a92ff13eef63b9e84c2313'
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
97
97
 
98
98
  blockquote, q {
99
99
  quotes: none; }
100
- blockquote:before, blockquote:after, q:before, q:after {
100
+ blockquote::before, blockquote::after, q::before, q::after {
101
101
  content: '';
102
102
  content: none; }
103
103
 
@@ -120,14 +120,18 @@ b, strong {
120
120
  div.document-stage-band, div.document-type-band {
121
121
  background-color: #333333; }
122
122
 
123
- a.FootnoteRef + a.FootnoteRef:before {
123
+ a.FootnoteRef + a.FootnoteRef::before {
124
124
  content: ", ";
125
125
  vertical-align: super; }
126
126
 
127
- a.TableFootnoteRef + a.TableFootnoteRef:before {
127
+ a.TableFootnoteRef + a.TableFootnoteRef::before {
128
128
  content: ", ";
129
129
  vertical-align: super; }
130
130
 
131
+ a.TableFootnoteRef, span.TableFootnoteRef,
132
+ a.FootnoteRef, span.FootnoteRef {
133
+ vertical-align: super; }
134
+
131
135
  .addition {
132
136
  color: blue; }
133
137
 
@@ -1349,19 +1349,32 @@
1349
1349
  <xsl:variable name="titles_">
1350
1350
 
1351
1351
  <!-- These titles of Table of contents renders different than determined in localized-strings -->
1352
- <title-toc lang="en">
1353
-
1354
- </title-toc>
1355
- <title-toc lang="fr">
1352
+ <!-- <title-toc lang="en">
1353
+ <xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
1354
+ <xsl:text>Contents</xsl:text>
1355
+ </xsl:if>
1356
+ <xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
1357
+ <xsl:text>Table of Contents</xsl:text>
1358
+ </xsl:if>
1359
+ <xsl:if test="$namespace = 'gb'">
1360
+ <xsl:text>Table of contents</xsl:text>
1361
+ </xsl:if>
1362
+ </title-toc> -->
1363
+ <title-toc lang="en">Table of contents</title-toc>
1364
+ <!-- <title-toc lang="fr">
1356
1365
  <xsl:text>Sommaire</xsl:text>
1357
- </title-toc>
1358
- <title-toc lang="zh">
1359
-
1366
+ </title-toc> -->
1367
+ <!-- <title-toc lang="zh">
1368
+ <xsl:choose>
1369
+ <xsl:when test="$namespace = 'gb'">
1370
+ <xsl:text>目次</xsl:text>
1371
+ </xsl:when>
1372
+ <xsl:otherwise>
1360
1373
  <xsl:text>Contents</xsl:text>
1361
-
1362
- </title-toc>
1363
-
1364
- <title-descriptors lang="en">Descriptors</title-descriptors>
1374
+ </xsl:otherwise>
1375
+ </xsl:choose>
1376
+ </title-toc> -->
1377
+ <title-toc lang="zh">目次</title-toc>
1365
1378
 
1366
1379
  <title-part lang="en">
1367
1380
 
@@ -1377,20 +1390,6 @@
1377
1390
  <title-subpart lang="en">Sub-part #</title-subpart>
1378
1391
  <title-subpart lang="fr">Partie de sub #</title-subpart>
1379
1392
 
1380
- <title-list-tables lang="en">List of Tables</title-list-tables>
1381
-
1382
- <title-list-figures lang="en">List of Figures</title-list-figures>
1383
-
1384
- <title-table-figures lang="en">Table of Figures</title-table-figures>
1385
-
1386
- <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
1387
-
1388
- <title-summary lang="en">Summary</title-summary>
1389
-
1390
- <title-continued lang="ru">(продолжение)</title-continued>
1391
- <title-continued lang="en">(continued)</title-continued>
1392
- <title-continued lang="fr">(continué)</title-continued>
1393
-
1394
1393
  </xsl:variable>
1395
1394
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
1396
1395
 
@@ -1398,8 +1397,8 @@
1398
1397
  <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
1399
1398
  <xsl:value-of select="$toc_table_title"/>
1400
1399
  <xsl:if test="normalize-space($toc_table_title) = ''">
1401
- <xsl:call-template name="getTitle">
1402
- <xsl:with-param name="name" select="'title-list-tables'"/>
1400
+ <xsl:call-template name="getLocalizedString">
1401
+ <xsl:with-param name="key">toc_tables</xsl:with-param>
1403
1402
  </xsl:call-template>
1404
1403
  </xsl:if>
1405
1404
  </xsl:variable>
@@ -1408,8 +1407,8 @@
1408
1407
  <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
1409
1408
  <xsl:value-of select="$toc_figure_title"/>
1410
1409
  <xsl:if test="normalize-space($toc_figure_title) = ''">
1411
- <xsl:call-template name="getTitle">
1412
- <xsl:with-param name="name" select="'title-list-figures'"/>
1410
+ <xsl:call-template name="getLocalizedString">
1411
+ <xsl:with-param name="key">toc_figures</xsl:with-param>
1413
1412
  </xsl:call-template>
1414
1413
  </xsl:if>
1415
1414
  </xsl:variable>
@@ -1418,8 +1417,8 @@
1418
1417
  <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
1419
1418
  <xsl:value-of select="$toc_requirement_title"/>
1420
1419
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
1421
- <xsl:call-template name="getTitle">
1422
- <xsl:with-param name="name" select="'title-list-recommendations'"/>
1420
+ <xsl:call-template name="getLocalizedString">
1421
+ <xsl:with-param name="key">toc_recommendations</xsl:with-param>
1423
1422
  </xsl:call-template>
1424
1423
  </xsl:if>
1425
1424
  </xsl:variable>
@@ -5296,7 +5295,7 @@
5296
5295
  <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
5297
5296
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
5298
5297
  <xsl:choose>
5299
- <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
5298
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
5300
5299
  <!-- url -->
5301
5300
  <xsl:call-template name="add-zero-spaces-link-java"/>
5302
5301
  </xsl:when>
@@ -5758,10 +5757,13 @@
5758
5757
  </xsl:choose>
5759
5758
  </xsl:variable>
5760
5759
 
5760
+ <!-- replace sequence #x200B to one &#x200B -->
5761
+ <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '​')"/>
5762
+
5761
5763
  <!-- replace sequence #x200B and space TO space -->
5762
- <xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
5764
+ <xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
5763
5765
 
5764
- <xsl:value-of select="$text10"/>
5766
+ <xsl:value-of select="$text11"/>
5765
5767
  </xsl:template>
5766
5768
 
5767
5769
  <xsl:template name="add-zero-spaces-link-java">
@@ -5771,8 +5773,12 @@
5771
5773
  <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5772
5774
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
5773
5775
  <xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1​')"/>
5776
+
5777
+ <!-- replace sequence #x200B to one &#x200B -->
5778
+ <xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '​')"/>
5779
+
5774
5780
  <!-- remove zero-width space at the end -->
5775
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url), '​$', '')"/>
5781
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '​$', '')"/>
5776
5782
  </xsl:template>
5777
5783
 
5778
5784
  <!-- add zero space after dash character (for table's entries) -->
@@ -7035,7 +7041,7 @@
7035
7041
 
7036
7042
  <xsl:call-template name="refine_note_block_style"/>
7037
7043
 
7038
- <fo:inline xsl:use-attribute-sets="note-name-style">
7044
+ <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
7039
7045
 
7040
7046
  <xsl:call-template name="refine_note-name-style"/>
7041
7047
 
@@ -7072,12 +7078,12 @@
7072
7078
  <xsl:variable name="num"><xsl:number/></xsl:variable>
7073
7079
  <xsl:choose>
7074
7080
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
7075
- <fo:inline xsl:use-attribute-sets="note-p-style">
7081
+ <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
7076
7082
  <xsl:apply-templates/>
7077
7083
  </fo:inline>
7078
7084
  </xsl:when>
7079
7085
  <xsl:otherwise>
7080
- <fo:block xsl:use-attribute-sets="note-p-style">
7086
+ <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
7081
7087
  <xsl:apply-templates/>
7082
7088
  </fo:block>
7083
7089
  </xsl:otherwise>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.2.12".freeze
3
+ VERSION = "2.2.13".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.2.12
4
+ version: 2.2.13
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-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic