metanorma-bipm 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2301,7 +2301,7 @@
2301
2301
 
2302
2302
 
2303
2303
 
2304
-
2304
+
2305
2305
  </xsl:attribute-set><xsl:attribute-set name="example-style">
2306
2306
 
2307
2307
 
@@ -2369,6 +2369,7 @@
2369
2369
  <xsl:attribute name="padding-right">5mm</xsl:attribute>
2370
2370
 
2371
2371
 
2372
+
2372
2373
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
2373
2374
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
2374
2375
 
@@ -2391,6 +2392,8 @@
2391
2392
 
2392
2393
 
2393
2394
 
2395
+ </xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
2396
+
2394
2397
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2395
2398
 
2396
2399
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -2444,6 +2447,7 @@
2444
2447
 
2445
2448
 
2446
2449
 
2450
+
2447
2451
  </xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
2448
2452
 
2449
2453
 
@@ -2489,10 +2493,12 @@
2489
2493
 
2490
2494
 
2491
2495
 
2496
+
2492
2497
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
2493
2498
 
2494
2499
 
2495
2500
 
2501
+
2496
2502
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
2497
2503
 
2498
2504
 
@@ -2554,6 +2560,7 @@
2554
2560
 
2555
2561
 
2556
2562
 
2563
+
2557
2564
 
2558
2565
 
2559
2566
 
@@ -2629,6 +2636,8 @@
2629
2636
  <xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
2630
2637
 
2631
2638
 
2639
+ </xsl:attribute-set><xsl:attribute-set name="list-style">
2640
+
2632
2641
  </xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
2633
2642
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2634
2643
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2682,11 +2691,11 @@
2682
2691
  <xsl:variable name="table">
2683
2692
 
2684
2693
  <xsl:variable name="simple-table">
2685
- <xsl:call-template name="getSimpleTable"/>
2694
+ <xsl:call-template name="getSimpleTable"/>
2686
2695
  </xsl:variable>
2687
2696
 
2688
2697
  <!-- <xsl:if test="$namespace = 'bipm'">
2689
- <fo:block>&#xA0;</fo:block>
2698
+ <fo:block>&#xA0;</fo:block>
2690
2699
  </xsl:if> -->
2691
2700
 
2692
2701
  <!-- $namespace = 'iso' or -->
@@ -2799,6 +2808,7 @@
2799
2808
 
2800
2809
 
2801
2810
 
2811
+
2802
2812
  </xsl:variable>
2803
2813
 
2804
2814
 
@@ -2942,6 +2952,9 @@
2942
2952
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
2943
2953
 
2944
2954
 
2955
+
2956
+
2957
+
2945
2958
  <xsl:choose>
2946
2959
  <xsl:when test="$continued = 'true'">
2947
2960
  <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
@@ -3095,6 +3108,7 @@
3095
3108
  <xsl:with-param name="cols-count" select="$cols-count"/>
3096
3109
  </xsl:call-template>
3097
3110
 
3111
+
3098
3112
  <xsl:apply-templates/>
3099
3113
  </fo:table-header>
3100
3114
  </xsl:template><xsl:template name="table-header-title">
@@ -3353,8 +3367,8 @@
3353
3367
  <fo:table-cell>
3354
3368
 
3355
3369
  <fo:marker marker-class-name="table_continued">
3356
- <xsl:value-of select="$title_continued"/>
3357
- </fo:marker>
3370
+ <xsl:value-of select="$title_continued"/>
3371
+ </fo:marker>
3358
3372
  <fo:block/>
3359
3373
  </fo:table-cell>
3360
3374
  </fo:table-row>
@@ -3405,6 +3419,10 @@
3405
3419
 
3406
3420
 
3407
3421
 
3422
+
3423
+
3424
+
3425
+
3408
3426
  <!-- <xsl:if test="$namespace = 'bipm'">
3409
3427
  <xsl:attribute name="height">8mm</xsl:attribute>
3410
3428
  </xsl:if> -->
@@ -3502,6 +3520,9 @@
3502
3520
 
3503
3521
 
3504
3522
 
3523
+
3524
+
3525
+
3505
3526
  <xsl:if test=".//*[local-name() = 'table']">
3506
3527
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3507
3528
  </xsl:if>
@@ -3729,6 +3750,7 @@
3729
3750
 
3730
3751
 
3731
3752
 
3753
+
3732
3754
  <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
3733
3755
 
3734
3756
 
@@ -4045,6 +4067,7 @@
4045
4067
 
4046
4068
  <fo:table-row>
4047
4069
 
4070
+
4048
4071
  <fo:table-cell>
4049
4072
 
4050
4073
  <fo:block margin-top="6pt">
@@ -4062,6 +4085,7 @@
4062
4085
 
4063
4086
 
4064
4087
 
4088
+
4065
4089
  <xsl:apply-templates/>
4066
4090
  <!-- <xsl:if test="$namespace = 'gb'">
4067
4091
  <xsl:if test="ancestor::*[local-name()='formula']">
@@ -4609,7 +4633,15 @@
4609
4633
  <xsl:copy>
4610
4634
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
4611
4635
  </xsl:copy>
4612
- <mathml:mspace width="0.5ex"/>
4636
+ <xsl:choose>
4637
+ <!-- if in msub, then don't add space -->
4638
+ <xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
4639
+ <!-- if next char in digit, don't add space -->
4640
+ <xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
4641
+ <xsl:otherwise>
4642
+ <mathml:mspace width="0.5ex"/>
4643
+ </xsl:otherwise>
4644
+ </xsl:choose>
4613
4645
  </xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
4614
4646
  <xsl:variable name="target">
4615
4647
  <xsl:choose>
@@ -4633,6 +4665,7 @@
4633
4665
  </xsl:variable>
4634
4666
  <fo:inline xsl:use-attribute-sets="link-style">
4635
4667
 
4668
+
4636
4669
  <xsl:choose>
4637
4670
  <xsl:when test="$target_text = ''">
4638
4671
  <xsl:apply-templates/>
@@ -4784,6 +4817,7 @@
4784
4817
  </xsl:choose>
4785
4818
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
4786
4819
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4820
+
4787
4821
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4788
4822
 
4789
4823
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
@@ -4859,6 +4893,7 @@
4859
4893
  </xsl:call-template>
4860
4894
 
4861
4895
  <fo:block>
4896
+
4862
4897
  <xsl:apply-templates/>
4863
4898
  </fo:block>
4864
4899
  <xsl:call-template name="fn_display_figure"/>
@@ -5143,6 +5178,7 @@
5143
5178
  <xsl:if test="normalize-space() != ''">
5144
5179
  <fo:block xsl:use-attribute-sets="figure-name-style">
5145
5180
 
5181
+
5146
5182
  <xsl:apply-templates/>
5147
5183
  </fo:block>
5148
5184
  </xsl:if>
@@ -5223,6 +5259,7 @@
5223
5259
 
5224
5260
  <fo:block-container margin-left="0mm">
5225
5261
  <xsl:copy-of select="@id"/>
5262
+
5226
5263
  <xsl:if test="parent::*[local-name() = 'note']">
5227
5264
  <xsl:attribute name="margin-left">
5228
5265
  <xsl:choose>
@@ -5233,7 +5270,9 @@
5233
5270
 
5234
5271
  </xsl:if>
5235
5272
  <fo:block-container margin-left="0mm">
5236
-
5273
+
5274
+
5275
+
5237
5276
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5238
5277
  <xsl:variable name="_font-size">
5239
5278
 
@@ -5262,10 +5301,14 @@
5262
5301
  </xsl:choose>
5263
5302
  </xsl:attribute>
5264
5303
  </xsl:if>
5265
- <xsl:apply-templates/>
5266
- </fo:block>
5304
+
5305
+ <xsl:apply-templates/>
5306
+ </fo:block>
5307
+
5308
+
5267
5309
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5268
5310
 
5311
+
5269
5312
  </fo:block-container>
5270
5313
  </fo:block-container>
5271
5314
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -5615,6 +5658,8 @@
5615
5658
 
5616
5659
 
5617
5660
 
5661
+
5662
+
5618
5663
  <xsl:value-of select="$localized.source"/>
5619
5664
  <xsl:text> </xsl:text>
5620
5665
 
@@ -5854,6 +5899,7 @@
5854
5899
  <xsl:call-template name="setId"/>
5855
5900
 
5856
5901
 
5902
+
5857
5903
  <xsl:if test="@inline-header='true'">
5858
5904
  <xsl:attribute name="text-align">justify</xsl:attribute>
5859
5905
  </xsl:if>
@@ -6104,17 +6150,17 @@
6104
6150
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
6105
6151
  <xsl:choose>
6106
6152
  <xsl:when test="normalize-space($_doc_ident) != ''">
6107
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
6153
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]/@type"/>
6108
6154
  <xsl:if test="$type != '' and not(contains($_doc_ident, $type))">
6109
6155
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6110
- </xsl:if>
6156
+ </xsl:if> -->
6111
6157
  <xsl:value-of select="$_doc_ident"/>
6112
6158
  </xsl:when>
6113
6159
  <xsl:otherwise>
6114
- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6160
+ <!-- <xsl:variable name="type" select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]/@type"/>
6115
6161
  <xsl:if test="$type != ''">
6116
6162
  <xsl:value-of select="$type"/><xsl:text> </xsl:text>
6117
- </xsl:if>
6163
+ </xsl:if> -->
6118
6164
  <xsl:value-of select="*[local-name() = 'docidentifier'][not(@type = 'metanorma')]"/>
6119
6165
  </xsl:otherwise>
6120
6166
  </xsl:choose>
@@ -6617,4 +6663,14 @@
6617
6663
  <xsl:value-of select="$align"/>
6618
6664
  </xsl:when>
6619
6665
  </xsl:choose>
6666
+ </xsl:template><xsl:template name="setTextAlignment">
6667
+ <xsl:param name="default">left</xsl:param>
6668
+ <xsl:attribute name="text-align">
6669
+ <xsl:choose>
6670
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6671
+ <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6672
+ <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6673
+ <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6674
+ </xsl:choose>
6675
+ </xsl:attribute>
6620
6676
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "1.1.3".freeze
3
+ VERSION = "1.1.4".freeze
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.bindir = "exe"
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
27
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
28
 
29
29
  spec.add_dependency "metanorma-generic", "~> 1.10.0"
30
30
  spec.add_dependency "metanorma-iso", "~> 1.8.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -264,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
264
  requirements:
265
265
  - - ">="
266
266
  - !ruby/object:Gem::Version
267
- version: 2.4.0
267
+ version: 2.5.0
268
268
  required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  requirements:
270
270
  - - ">="