metanorma-ribose 2.1.2 → 2.1.3

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: 4b01f4b4b2238e9ae48eb5b174ee5e1b56342e356fa82f4f0976e12456633430
4
- data.tar.gz: ea96ec56d44388731e58f29f2e618423f57dccd82fd06cfe714fb178c58d31cf
3
+ metadata.gz: f8abab18fdcf1c67e0ef4a8fbb3a070c7f2ec6d1f966df067114f0cd2d247c67
4
+ data.tar.gz: 23772d4304458ac1aa2337630dc38ef6750dae613ccd6da2116dae917e68ebcb
5
5
  SHA512:
6
- metadata.gz: 48defe9cb9e094cbe27ed601c4e1df9733b6cc05a5f1bb14d0f5934fadfbc76b19e0b9214dff1aa309448fc7836619fa8706ddd2a2595cfbc311edb10749ac9f
7
- data.tar.gz: 0d2c7cfa89ed0ffa775b17d70767ca4f64f12a766a9ccf73005797f2f5f558edc4cf1bce4085ca9971f6256656022a307ab73e20088a6aa09ed337baba35ead3
6
+ metadata.gz: 2b1948424517d0d984f272351c865e9290ea59560618715727d0ca5469a7dcfd3f44a2dd26265e89a2220c2f1e46f30902b931c2d754000841c08ee84815937f
7
+ data.tar.gz: 2c42ae49443af52421e2ee308d9ddd09f5915aeb2ae19ae16a50c993a1607fd8834cbae30e4eef5d3a56dcc228ad424b0d0a02e09bdd0001e583a2a848903a1f
@@ -1359,7 +1359,7 @@
1359
1359
  <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
1360
1360
  </xsl:otherwise>
1361
1361
  </xsl:choose>
1362
- </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:attribute-set name="root-style">
1362
+ </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable><xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable><xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable><xsl:attribute-set name="root-style">
1363
1363
 
1364
1364
 
1365
1365
 
@@ -1375,7 +1375,9 @@
1375
1375
 
1376
1376
 
1377
1377
 
1378
- <xsl:attribute name="font-family">OpenSans, STIX Two Math</xsl:attribute>
1378
+
1379
+ <xsl:attribute name="font-family">OpenSans, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
1380
+ <xsl:attribute name="font-family-generic">Sans</xsl:attribute>
1379
1381
  <xsl:attribute name="font-weight">300</xsl:attribute>
1380
1382
  <xsl:attribute name="font-size">11pt</xsl:attribute>
1381
1383
  <xsl:attribute name="color">rgb(88, 88, 90)</xsl:attribute>
@@ -1392,17 +1394,60 @@
1392
1394
  </xsl:variable>
1393
1395
  <xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
1394
1396
 
1397
+ <xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
1398
+
1395
1399
  <xsl:for-each select="$root-style_/root-style/@*">
1400
+
1396
1401
  <xsl:choose>
1397
- <xsl:when test="local-name() = 'font-family' and $additional_fonts != ''">
1402
+ <xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
1403
+ <xsl:when test="local-name() = 'font-family'">
1404
+
1405
+ <xsl:variable name="font_regional_prefix">
1406
+ <xsl:choose>
1407
+ <xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
1408
+ <xsl:otherwise>Noto Serif</xsl:otherwise>
1409
+ </xsl:choose>
1410
+ </xsl:variable>
1411
+
1398
1412
  <xsl:attribute name="{local-name()}">
1399
- <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
1413
+
1414
+ <xsl:variable name="font_extended">
1415
+ <xsl:choose>
1416
+ <xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
1417
+ <xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
1418
+ <xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
1419
+ <xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
1420
+ <xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
1421
+ <xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
1422
+ </xsl:choose>
1423
+ </xsl:variable>
1424
+ <xsl:if test="normalize-space($font_extended) != ''">
1425
+ <xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
1426
+ <xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
1427
+ </xsl:if>
1428
+
1429
+ <xsl:value-of select="."/>
1430
+
1431
+ <xsl:if test="$additional_fonts != ''">
1432
+ <xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
1433
+ </xsl:if>
1400
1434
  </xsl:attribute>
1401
1435
  </xsl:when>
1402
1436
  <xsl:otherwise>
1403
1437
  <xsl:copy-of select="."/>
1404
1438
  </xsl:otherwise>
1405
1439
  </xsl:choose>
1440
+
1441
+ <!-- <xsl:choose>
1442
+ <xsl:when test="local-name() = 'font-family'">
1443
+ <xsl:attribute name="{local-name()}">
1444
+ <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
1445
+ </xsl:attribute>
1446
+ </xsl:when>
1447
+ <xsl:otherwise>
1448
+ <xsl:copy-of select="."/>
1449
+ </xsl:otherwise>
1450
+ </xsl:choose> -->
1406
1451
  </xsl:for-each>
1407
1452
  </xsl:template><xsl:attribute-set name="copyright-statement-style">
1408
1453
 
@@ -1483,11 +1528,12 @@
1483
1528
 
1484
1529
 
1485
1530
 
1531
+
1486
1532
 
1487
1533
 
1488
1534
 
1489
1535
 
1490
- <xsl:attribute name="font-family">Source Code Pro</xsl:attribute>
1536
+ <xsl:attribute name="font-family">Source Code Pro, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
1491
1537
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1492
1538
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1493
1539
  <xsl:attribute name="line-height">113%</xsl:attribute>
@@ -1528,6 +1574,7 @@
1528
1574
 
1529
1575
 
1530
1576
 
1577
+
1531
1578
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1532
1579
 
1533
1580
 
@@ -1545,6 +1592,7 @@
1545
1592
 
1546
1593
 
1547
1594
 
1595
+
1548
1596
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
1549
1597
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1550
1598
 
@@ -1568,6 +1616,7 @@
1568
1616
 
1569
1617
 
1570
1618
 
1619
+
1571
1620
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1572
1621
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
1573
1622
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
@@ -1607,6 +1656,7 @@
1607
1656
 
1608
1657
  </xsl:attribute-set><xsl:variable name="table-border_">
1609
1658
 
1659
+
1610
1660
  </xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
1611
1661
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
1612
1662
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -1628,6 +1678,7 @@
1628
1678
 
1629
1679
 
1630
1680
 
1681
+
1631
1682
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1632
1683
 
1633
1684
 
@@ -1656,6 +1707,7 @@
1656
1707
 
1657
1708
 
1658
1709
 
1710
+
1659
1711
  <xsl:attribute name="border">0pt solid black</xsl:attribute>
1660
1712
  <xsl:attribute name="font-size">9.5pt</xsl:attribute> <!-- 8pt -->
1661
1713
 
@@ -1667,6 +1719,7 @@
1667
1719
 
1668
1720
 
1669
1721
 
1722
+
1670
1723
 
1671
1724
 
1672
1725
 
@@ -1751,6 +1804,7 @@
1751
1804
 
1752
1805
 
1753
1806
 
1807
+
1754
1808
  <xsl:attribute name="border">0pt solid black</xsl:attribute>
1755
1809
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
1756
1810
 
@@ -1768,7 +1822,7 @@
1768
1822
 
1769
1823
 
1770
1824
 
1771
-
1825
+
1772
1826
 
1773
1827
 
1774
1828
 
@@ -1785,6 +1839,7 @@
1785
1839
 
1786
1840
 
1787
1841
 
1842
+
1788
1843
  <xsl:attribute name="font-size">8pt</xsl:attribute>
1789
1844
 
1790
1845
  </xsl:attribute-set><xsl:attribute-set name="table-fn-style">
@@ -1795,6 +1850,8 @@
1795
1850
 
1796
1851
 
1797
1852
 
1853
+
1854
+
1798
1855
  </xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
1799
1856
  <xsl:attribute name="font-size">80%</xsl:attribute>
1800
1857
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
@@ -1810,6 +1867,7 @@
1810
1867
 
1811
1868
 
1812
1869
 
1870
+
1813
1871
  </xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
1814
1872
  <xsl:attribute name="text-indent">0</xsl:attribute>
1815
1873
  <xsl:attribute name="start-indent">0</xsl:attribute>
@@ -1844,6 +1902,7 @@
1844
1902
 
1845
1903
 
1846
1904
 
1905
+
1847
1906
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
1848
1907
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1849
1908
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
@@ -1856,6 +1915,7 @@
1856
1915
 
1857
1916
 
1858
1917
 
1918
+
1859
1919
 
1860
1920
 
1861
1921
 
@@ -1909,6 +1969,7 @@
1909
1969
 
1910
1970
 
1911
1971
 
1972
+
1912
1973
 
1913
1974
 
1914
1975
 
@@ -1986,6 +2047,8 @@
1986
2047
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
1987
2048
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
1988
2049
 
2050
+ </xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
2051
+
1989
2052
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
1990
2053
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
1991
2054
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
@@ -2045,6 +2108,7 @@
2045
2108
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
2046
2109
 
2047
2110
 
2111
+
2048
2112
 
2049
2113
 
2050
2114
 
@@ -2093,6 +2157,7 @@
2093
2157
 
2094
2158
 
2095
2159
 
2160
+
2096
2161
  <xsl:attribute name="text-align">left</xsl:attribute>
2097
2162
  <xsl:attribute name="margin-left">5mm</xsl:attribute>
2098
2163
 
@@ -2114,19 +2179,19 @@
2114
2179
  </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
2115
2180
 
2116
2181
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
2182
+ <xsl:attribute name="width">100%</xsl:attribute>
2183
+ <xsl:attribute name="content-height">100%</xsl:attribute>
2184
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
2117
2185
 
2118
2186
 
2119
- <xsl:attribute name="width">100%</xsl:attribute>
2120
2187
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
2121
- <xsl:attribute name="scaling">uniform</xsl:attribute>
2122
2188
 
2123
2189
 
2124
2190
 
2125
-
2126
-
2191
+
2127
2192
  </xsl:attribute-set><xsl:attribute-set name="tt-style">
2128
2193
 
2129
- <xsl:attribute name="font-family">Source Code Pro</xsl:attribute>
2194
+ <xsl:attribute name="font-family">Source Code Pro, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
2130
2195
 
2131
2196
 
2132
2197
 
@@ -2220,6 +2285,7 @@
2220
2285
 
2221
2286
 
2222
2287
 
2288
+
2223
2289
  <xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
2224
2290
 
2225
2291
 
@@ -2296,6 +2362,7 @@
2296
2362
 
2297
2363
 
2298
2364
 
2365
+
2299
2366
  <xsl:attribute name="font-size">65%</xsl:attribute>
2300
2367
  <xsl:attribute name="vertical-align">super</xsl:attribute>
2301
2368
 
@@ -2322,6 +2389,7 @@
2322
2389
 
2323
2390
 
2324
2391
 
2392
+
2325
2393
  <xsl:attribute name="font-size">10pt</xsl:attribute>
2326
2394
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2327
2395
  <xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
@@ -2346,6 +2414,7 @@
2346
2414
 
2347
2415
 
2348
2416
 
2417
+
2349
2418
  <xsl:attribute name="font-size">60%</xsl:attribute>
2350
2419
  <xsl:attribute name="vertical-align">super</xsl:attribute>
2351
2420
 
@@ -2364,6 +2433,7 @@
2364
2433
 
2365
2434
 
2366
2435
 
2436
+
2367
2437
  <xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
2368
2438
  <xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
2369
2439
  <xsl:attribute name="margin-left">16mm</xsl:attribute>
@@ -2373,6 +2443,9 @@
2373
2443
 
2374
2444
 
2375
2445
  </xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
2446
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2447
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2448
+
2376
2449
 
2377
2450
 
2378
2451
 
@@ -2381,8 +2454,6 @@
2381
2454
 
2382
2455
 
2383
2456
 
2384
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
2385
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
2386
2457
  <xsl:attribute name="padding">2mm</xsl:attribute>
2387
2458
  <xsl:attribute name="padding-top">3mm</xsl:attribute>
2388
2459
 
@@ -2419,6 +2490,7 @@
2419
2490
 
2420
2491
 
2421
2492
 
2493
+
2422
2494
  <xsl:attribute name="font-style">italic</xsl:attribute>
2423
2495
 
2424
2496
 
@@ -2459,6 +2531,7 @@
2459
2531
 
2460
2532
 
2461
2533
 
2534
+
2462
2535
  <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
2463
2536
  <xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
2464
2537
 
@@ -2481,6 +2554,7 @@
2481
2554
 
2482
2555
 
2483
2556
 
2557
+
2484
2558
  <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
2485
2559
  <xsl:attribute name="provisional-distance-between-starts">8mm</xsl:attribute>
2486
2560
 
@@ -2509,6 +2583,7 @@
2509
2583
 
2510
2584
 
2511
2585
 
2586
+
2512
2587
  <xsl:attribute name="vertical-align">super</xsl:attribute>
2513
2588
 
2514
2589
 
@@ -2529,6 +2604,7 @@
2529
2604
 
2530
2605
 
2531
2606
 
2607
+
2532
2608
  <xsl:attribute name="font-size">60%</xsl:attribute>
2533
2609
  <xsl:attribute name="vertical-align">super</xsl:attribute>
2534
2610
 
@@ -2548,6 +2624,7 @@
2548
2624
 
2549
2625
 
2550
2626
 
2627
+
2551
2628
  <xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
2552
2629
 
2553
2630
  </xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
@@ -2981,6 +3058,8 @@
2981
3058
 
2982
3059
 
2983
3060
 
3061
+
3062
+
2984
3063
 
2985
3064
 
2986
3065
 
@@ -3017,6 +3096,8 @@
3017
3096
 
3018
3097
 
3019
3098
 
3099
+
3100
+
3020
3101
  </xsl:element>
3021
3102
  </xsl:variable>
3022
3103
 
@@ -3162,23 +3243,29 @@
3162
3243
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
3163
3244
  <xsl:param name="continued"/>
3164
3245
  <xsl:if test="normalize-space() != ''">
3165
- <fo:block xsl:use-attribute-sets="table-name-style">
3166
-
3167
-
3168
-
3169
-
3246
+
3247
+
3170
3248
 
3171
- <xsl:choose>
3172
- <xsl:when test="$continued = 'true'">
3249
+ <fo:block xsl:use-attribute-sets="table-name-style">
3250
+
3173
3251
 
3174
- </xsl:when>
3175
- <xsl:otherwise>
3176
- <xsl:apply-templates/>
3177
- </xsl:otherwise>
3178
- </xsl:choose>
3179
-
3252
+
3253
+
3254
+
3255
+ <xsl:choose>
3256
+ <xsl:when test="$continued = 'true'">
3257
+
3258
+ </xsl:when>
3259
+ <xsl:otherwise>
3260
+ <xsl:apply-templates/>
3261
+ </xsl:otherwise>
3262
+ </xsl:choose>
3263
+
3264
+
3265
+ </fo:block>
3266
+
3180
3267
 
3181
- </fo:block>
3268
+
3182
3269
  </xsl:if>
3183
3270
  </xsl:template><xsl:template name="calculate-columns-numbers">
3184
3271
  <xsl:param name="table-row"/>
@@ -3576,12 +3663,18 @@
3576
3663
  <fo:table-row>
3577
3664
  <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
3578
3665
 
3579
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
3580
- <xsl:with-param name="continued">true</xsl:with-param>
3581
- </xsl:apply-templates>
3582
3666
 
3583
3667
 
3584
3668
 
3669
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
3670
+ <xsl:with-param name="continued">true</xsl:with-param>
3671
+ </xsl:apply-templates>
3672
+
3673
+
3674
+
3675
+
3676
+
3677
+
3585
3678
  </fo:table-cell>
3586
3679
  </fo:table-row>
3587
3680
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -3682,7 +3775,10 @@
3682
3775
 
3683
3776
 
3684
3777
  <!-- fn processing -->
3685
- <xsl:call-template name="table_fn_display"/>
3778
+
3779
+ <xsl:call-template name="table_fn_display"/>
3780
+
3781
+
3686
3782
 
3687
3783
  <!-- for PAS display Notes after footnotes -->
3688
3784
 
@@ -3692,6 +3788,9 @@
3692
3788
  </fo:table-body>
3693
3789
 
3694
3790
  </fo:table>
3791
+
3792
+
3793
+
3695
3794
  </xsl:if>
3696
3795
  </xsl:template><xsl:template match="*[local-name()='tbody']">
3697
3796
 
@@ -3780,6 +3879,9 @@
3780
3879
 
3781
3880
 
3782
3881
 
3882
+
3883
+
3884
+
3783
3885
 
3784
3886
 
3785
3887
  <xsl:call-template name="setTableRowAttributes"/>
@@ -3798,6 +3900,8 @@
3798
3900
 
3799
3901
 
3800
3902
 
3903
+
3904
+
3801
3905
  <xsl:variable name="number"><xsl:number/></xsl:variable>
3802
3906
  <xsl:if test="$number mod 2 = 0">
3803
3907
  <xsl:attribute name="background-color">rgb(254, 247, 228)</xsl:attribute>
@@ -3885,6 +3989,8 @@
3885
3989
 
3886
3990
 
3887
3991
 
3992
+
3993
+
3888
3994
 
3889
3995
 
3890
3996
 
@@ -3956,7 +4062,11 @@
3956
4062
 
3957
4063
  <xsl:variable name="gen_id" select="generate-id(.)"/>
3958
4064
  <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
3959
- <xsl:variable name="reference" select="@reference"/>
4065
+ <xsl:variable name="reference_">
4066
+ <xsl:value-of select="@reference"/>
4067
+ <xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
4068
+ </xsl:variable>
4069
+ <xsl:variable name="reference" select="normalize-space($reference_)"/>
3960
4070
  <!-- fn sequence number in document -->
3961
4071
  <xsl:variable name="current_fn_number">
3962
4072
  <xsl:choose>
@@ -4031,7 +4141,7 @@
4031
4141
  <xsl:copy-of select="node()"/>
4032
4142
  </fn>
4033
4143
  </xsl:for-each>
4034
- <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
4144
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='boilerplate']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
4035
4145
  <xsl:sort select="@displayorder" data-type="number"/>
4036
4146
  <xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
4037
4147
  <!-- copy unique fn -->
@@ -5685,6 +5795,10 @@
5685
5795
  </xsl:variable>
5686
5796
  <fo:inline xsl:use-attribute-sets="link-style">
5687
5797
 
5798
+ <xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
5799
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
5800
+ </xsl:if>
5801
+
5688
5802
 
5689
5803
 
5690
5804
 
@@ -5697,6 +5811,7 @@
5697
5811
  </xsl:if>
5698
5812
 
5699
5813
 
5814
+
5700
5815
  <xsl:choose>
5701
5816
  <xsl:when test="$target_text = ''">
5702
5817
  <xsl:apply-templates/>
@@ -5960,7 +6075,19 @@
5960
6075
  <xsl:value-of select="$suffix"/>
5961
6076
  </xsl:if>
5962
6077
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5963
- <fo:inline><xsl:apply-templates/></fo:inline>
6078
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
6079
+ <xsl:choose>
6080
+ <xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
6081
+ <fo:inline xsl:use-attribute-sets="termnote-p-style">
6082
+ <xsl:apply-templates/>
6083
+ </fo:inline>
6084
+ </xsl:when>
6085
+ <xsl:otherwise>
6086
+ <fo:block xsl:use-attribute-sets="termnote-p-style">
6087
+ <xsl:apply-templates/>
6088
+ </fo:block>
6089
+ </xsl:otherwise>
6090
+ </xsl:choose>
5964
6091
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5965
6092
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5966
6093
  <fo:block id="{@id}">
@@ -6777,7 +6904,7 @@
6777
6904
  </xsl:choose>
6778
6905
  </xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref']" mode="contents">
6779
6906
  <xsl:value-of select="."/>
6780
- </xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
6907
+ </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
6781
6908
  <xsl:text> </xsl:text>
6782
6909
  </xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
6783
6910
  <xsl:copy>
@@ -7650,6 +7777,7 @@
7650
7777
 
7651
7778
 
7652
7779
 
7780
+
7653
7781
  1.5
7654
7782
 
7655
7783
 
@@ -8268,7 +8396,7 @@
8268
8396
  <fo:block>
8269
8397
  <fo:inline>
8270
8398
 
8271
- <xsl:number format="1."/>
8399
+ <xsl:number format="1." count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
8272
8400
 
8273
8401
  </fo:inline>
8274
8402
  </fo:block>
@@ -8615,12 +8743,16 @@
8615
8743
  <fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
8616
8744
 
8617
8745
 
8746
+
8747
+
8618
8748
 
8619
8749
 
8620
8750
 
8621
8751
  <fo:block-container xsl:use-attribute-sets="admonition-container-style">
8622
8752
 
8623
8753
 
8754
+
8755
+
8624
8756
  <fo:block xsl:use-attribute-sets="admonition-name-style">
8625
8757
  <xsl:call-template name="displayAdmonitionName"/>
8626
8758
  </fo:block>
@@ -8829,6 +8961,8 @@
8829
8961
  </xsl:when>
8830
8962
  <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
8831
8963
  </xsl:choose>
8964
+ </xsl:template><xsl:template match="*[local-name() = 'lang_none']">
8965
+ <fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
8832
8966
  </xsl:template><xsl:template name="printEdition">
8833
8967
  <xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
8834
8968
  <xsl:text> </xsl:text>
@@ -8935,6 +9069,27 @@
8935
9069
  </xsl:when>
8936
9070
  <xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
8937
9071
  </xsl:choose>
9072
+ </xsl:template><xsl:template name="getMonthLocalizedByNum">
9073
+ <xsl:param name="num"/>
9074
+ <xsl:variable name="monthStr">
9075
+ <xsl:choose>
9076
+ <xsl:when test="$num = '01'">january</xsl:when>
9077
+ <xsl:when test="$num = '02'">february</xsl:when>
9078
+ <xsl:when test="$num = '03'">march</xsl:when>
9079
+ <xsl:when test="$num = '04'">april</xsl:when>
9080
+ <xsl:when test="$num = '05'">may</xsl:when>
9081
+ <xsl:when test="$num = '06'">june</xsl:when>
9082
+ <xsl:when test="$num = '07'">july</xsl:when>
9083
+ <xsl:when test="$num = '08'">august</xsl:when>
9084
+ <xsl:when test="$num = '09'">september</xsl:when>
9085
+ <xsl:when test="$num = '10'">october</xsl:when>
9086
+ <xsl:when test="$num = '11'">november</xsl:when>
9087
+ <xsl:when test="$num = '12'">december</xsl:when>
9088
+ </xsl:choose>
9089
+ </xsl:variable>
9090
+ <xsl:call-template name="getLocalizedString">
9091
+ <xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
9092
+ </xsl:call-template>
8938
9093
  </xsl:template><xsl:template name="insertKeywords">
8939
9094
  <xsl:param name="sorting" select="'true'"/>
8940
9095
  <xsl:param name="charAtEnd" select="'.'"/>
@@ -9131,6 +9286,7 @@
9131
9286
 
9132
9287
 
9133
9288
 
9289
+
9134
9290
  <xsl:value-of select="document('')//*/namespace::rsd"/>
9135
9291
 
9136
9292
 
@@ -623,6 +623,97 @@
623
623
  <zeroOrMore>
624
624
  <ref name="bsource"/>
625
625
  </zeroOrMore>
626
+ <oneOrMore>
627
+ <ref name="docidentifier"/>
628
+ </oneOrMore>
629
+ <optional>
630
+ <ref name="docnumber"/>
631
+ </optional>
632
+ <zeroOrMore>
633
+ <ref name="bdate"/>
634
+ </zeroOrMore>
635
+ <zeroOrMore>
636
+ <ref name="contributor"/>
637
+ </zeroOrMore>
638
+ <optional>
639
+ <ref name="edition"/>
640
+ </optional>
641
+ <zeroOrMore>
642
+ <ref name="version"/>
643
+ </zeroOrMore>
644
+ <zeroOrMore>
645
+ <ref name="biblionote"/>
646
+ </zeroOrMore>
647
+ <zeroOrMore>
648
+ <ref name="language"/>
649
+ </zeroOrMore>
650
+ <zeroOrMore>
651
+ <ref name="script"/>
652
+ </zeroOrMore>
653
+ <zeroOrMore>
654
+ <ref name="bibabstract"/>
655
+ </zeroOrMore>
656
+ <optional>
657
+ <ref name="status"/>
658
+ </optional>
659
+ <zeroOrMore>
660
+ <ref name="copyright"/>
661
+ </zeroOrMore>
662
+ <zeroOrMore>
663
+ <ref name="docrelation"/>
664
+ </zeroOrMore>
665
+ <zeroOrMore>
666
+ <ref name="series"/>
667
+ </zeroOrMore>
668
+ <optional>
669
+ <ref name="medium"/>
670
+ </optional>
671
+ <zeroOrMore>
672
+ <ref name="bplace"/>
673
+ </zeroOrMore>
674
+ <zeroOrMore>
675
+ <ref name="bprice"/>
676
+ </zeroOrMore>
677
+ <zeroOrMore>
678
+ <ref name="extent"/>
679
+ </zeroOrMore>
680
+ <optional>
681
+ <ref name="bibliographic_size"/>
682
+ </optional>
683
+ <zeroOrMore>
684
+ <ref name="accesslocation"/>
685
+ </zeroOrMore>
686
+ <zeroOrMore>
687
+ <ref name="license"/>
688
+ </zeroOrMore>
689
+ <zeroOrMore>
690
+ <ref name="bclassification"/>
691
+ </zeroOrMore>
692
+ <zeroOrMore>
693
+ <ref name="bkeyword"/>
694
+ </zeroOrMore>
695
+ <optional>
696
+ <ref name="validity"/>
697
+ </optional>
698
+ </define>
699
+ <define name="ReducedBibliographicItem">
700
+ <optional>
701
+ <attribute name="type">
702
+ <ref name="BibItemType"/>
703
+ </attribute>
704
+ </optional>
705
+ <optional>
706
+ <ref name="fetched"/>
707
+ </optional>
708
+ <optional>
709
+ <ref name="formattedref"/>
710
+ </optional>
711
+ <zeroOrMore>
712
+ <ref name="btitle"/>
713
+ </zeroOrMore>
714
+ <zeroOrMore>
715
+ <ref name="bsource"/>
716
+ </zeroOrMore>
626
717
  <zeroOrMore>
627
718
  <ref name="docidentifier"/>
628
719
  </zeroOrMore>
@@ -638,9 +729,9 @@
638
729
  <optional>
639
730
  <ref name="edition"/>
640
731
  </optional>
641
- <optional>
732
+ <zeroOrMore>
642
733
  <ref name="version"/>
643
- </optional>
734
+ </zeroOrMore>
644
735
  <zeroOrMore>
645
736
  <ref name="biblionote"/>
646
737
  </zeroOrMore>
@@ -833,6 +924,12 @@
833
924
  <data type="boolean"/>
834
925
  </attribute>
835
926
  </optional>
927
+ <optional>
928
+ <attribute name="language"/>
929
+ </optional>
930
+ <optional>
931
+ <attribute name="script"/>
932
+ </optional>
836
933
  <text/>
837
934
  </element>
838
935
  </define>
@@ -1172,7 +1269,7 @@
1172
1269
  </element>
1173
1270
  </optional>
1174
1271
  <element name="bibitem">
1175
- <ref name="BibliographicItem"/>
1272
+ <ref name="ReducedBibliographicItem"/>
1176
1273
  </element>
1177
1274
  <choice>
1178
1275
  <zeroOrMore>
@@ -1197,9 +1294,9 @@
1197
1294
  <optional>
1198
1295
  <ref name="revision-date"/>
1199
1296
  </optional>
1200
- <zeroOrMore>
1297
+ <optional>
1201
1298
  <ref name="draft"/>
1202
- </zeroOrMore>
1299
+ </optional>
1203
1300
  </element>
1204
1301
  </define>
1205
1302
  <define name="vedition">
@@ -703,6 +703,9 @@
703
703
  <optional>
704
704
  <attribute name="tag"/>
705
705
  </optional>
706
+ <optional>
707
+ <attribute name="type"/>
708
+ </optional>
706
709
  <optional>
707
710
  <attribute name="multilingual-rendering">
708
711
  <ref name="MultilingualRenderingType"/>
@@ -738,6 +741,9 @@
738
741
  <optional>
739
742
  <attribute name="tag"/>
740
743
  </optional>
744
+ <optional>
745
+ <attribute name="type"/>
746
+ </optional>
741
747
  <optional>
742
748
  <attribute name="multilingual-rendering">
743
749
  <ref name="MultilingualRenderingType"/>
@@ -2059,6 +2065,7 @@
2059
2065
  <value>compare</value>
2060
2066
  <value>contrast</value>
2061
2067
  <value>see</value>
2068
+ <value>seealso</value>
2062
2069
  </choice>
2063
2070
  </define>
2064
2071
  <define name="deprecates">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.1.2".freeze
3
+ VERSION = "2.1.3".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.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-06 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.3.7
247
+ rubygems_version: 3.3.16
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.