metanorma-bipm 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/base_convert.rb +1 -1
- data/lib/isodoc/bipm/bipm.brochure.xsl +133 -84
- data/lib/isodoc/bipm/bipm.guide.xsl +133 -84
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +133 -84
- data/lib/isodoc/bipm/bipm.rapport.xsl +133 -84
- data/lib/isodoc/bipm/html_convert.rb +4 -4
- data/lib/isodoc/bipm/jcgm.standard.xsl +113 -73
- data/lib/isodoc/bipm/presentation_xml_convert.rb +3 -1
- data/lib/metanorma/bipm/isodoc.rng +5 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +2 -2
@@ -2048,7 +2048,10 @@
|
|
2048
2048
|
|
2049
2049
|
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
2050
2050
|
|
2051
|
+
|
2051
2052
|
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
2053
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2054
|
+
|
2052
2055
|
|
2053
2056
|
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
2054
2057
|
|
@@ -2154,6 +2157,7 @@
|
|
2154
2157
|
|
2155
2158
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
2156
2159
|
|
2160
|
+
|
2157
2161
|
|
2158
2162
|
|
2159
2163
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
@@ -2513,7 +2517,8 @@
|
|
2513
2517
|
|
2514
2518
|
|
2515
2519
|
|
2516
|
-
|
2520
|
+
|
2521
|
+
|
2517
2522
|
|
2518
2523
|
|
2519
2524
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
@@ -2529,6 +2534,7 @@
|
|
2529
2534
|
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
2530
2535
|
|
2531
2536
|
|
2537
|
+
|
2532
2538
|
|
2533
2539
|
|
2534
2540
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
@@ -2975,7 +2981,10 @@
|
|
2975
2981
|
|
2976
2982
|
|
2977
2983
|
|
2978
|
-
|
2984
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
2985
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
2986
|
+
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
2987
|
+
</xsl:if> -->
|
2979
2988
|
|
2980
2989
|
|
2981
2990
|
|
@@ -4182,80 +4191,88 @@
|
|
4182
4191
|
</xsl:choose>
|
4183
4192
|
</xsl:variable>
|
4184
4193
|
|
4185
|
-
|
4186
|
-
|
4187
|
-
|
4194
|
+
|
4195
|
+
<xsl:variable name="tableWithNotesAndFootnotes">
|
4196
|
+
|
4197
|
+
<fo:table keep-with-previous="always">
|
4198
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
4199
|
+
<xsl:variable name="name" select="local-name()"/>
|
4200
|
+
<xsl:choose>
|
4201
|
+
<xsl:when test="$name = 'border-top'">
|
4202
|
+
<xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
|
4203
|
+
</xsl:when>
|
4204
|
+
<xsl:when test="$name = 'border'">
|
4205
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4206
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
4207
|
+
</xsl:when>
|
4208
|
+
<xsl:otherwise>
|
4209
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4210
|
+
</xsl:otherwise>
|
4211
|
+
</xsl:choose>
|
4212
|
+
</xsl:for-each>
|
4213
|
+
|
4214
|
+
|
4215
|
+
|
4188
4216
|
<xsl:choose>
|
4189
|
-
<xsl:when test="$name
|
4190
|
-
<xsl:
|
4191
|
-
|
4192
|
-
|
4193
|
-
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
4194
|
-
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
4217
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4218
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4219
|
+
<fo:table-column column-width="{@width}"/>
|
4220
|
+
</xsl:for-each>
|
4195
4221
|
</xsl:when>
|
4196
4222
|
<xsl:otherwise>
|
4197
|
-
|
4223
|
+
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
4224
|
+
<xsl:call-template name="insertTableColumnWidth">
|
4225
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
4226
|
+
</xsl:call-template>
|
4198
4227
|
</xsl:otherwise>
|
4199
4228
|
</xsl:choose>
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4203
|
-
|
4204
|
-
|
4205
|
-
|
4206
|
-
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
4207
|
-
<fo:table-column column-width="{@width}"/>
|
4208
|
-
</xsl:for-each>
|
4209
|
-
</xsl:when>
|
4210
|
-
<xsl:otherwise>
|
4211
|
-
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
4212
|
-
<xsl:call-template name="insertTableColumnWidth">
|
4213
|
-
<xsl:with-param name="colwidths" select="$colwidths"/>
|
4214
|
-
</xsl:call-template>
|
4215
|
-
</xsl:otherwise>
|
4216
|
-
</xsl:choose>
|
4217
|
-
|
4218
|
-
<fo:table-body>
|
4219
|
-
<fo:table-row>
|
4220
|
-
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
4221
|
-
|
4222
|
-
|
4229
|
+
|
4230
|
+
<fo:table-body>
|
4231
|
+
<fo:table-row>
|
4232
|
+
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
4233
|
+
|
4234
|
+
|
4223
4235
|
|
4224
|
-
|
4225
|
-
|
4226
|
-
<!-- fn will be processed inside 'note' processing -->
|
4227
|
-
|
4228
|
-
|
4229
|
-
|
4230
|
-
|
4231
|
-
|
4232
|
-
|
4233
|
-
<!-- for BSI (not PAS) display Notes before footnotes -->
|
4234
|
-
|
4235
|
-
|
4236
|
-
<!-- except gb and bsi -->
|
4237
|
-
|
4238
|
-
<xsl:apply-templates select="../*[local-name()='note']"/>
|
4239
4236
|
|
4240
|
-
|
4241
|
-
|
4242
|
-
<!-- horizontal row separator -->
|
4243
|
-
|
4244
|
-
|
4245
|
-
<!-- fn processing -->
|
4246
|
-
|
4247
|
-
<xsl:call-template name="table_fn_display"/>
|
4248
4237
|
|
4249
|
-
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4253
|
-
|
4254
|
-
|
4255
|
-
|
4256
|
-
|
4257
|
-
|
4258
|
-
|
4238
|
+
<!-- fn will be processed inside 'note' processing -->
|
4239
|
+
|
4240
|
+
|
4241
|
+
|
4242
|
+
|
4243
|
+
|
4244
|
+
|
4245
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
4246
|
+
|
4247
|
+
|
4248
|
+
<!-- except gb and bsi -->
|
4249
|
+
|
4250
|
+
<xsl:apply-templates select="../*[local-name()='note']"/>
|
4251
|
+
|
4252
|
+
|
4253
|
+
|
4254
|
+
<!-- horizontal row separator -->
|
4255
|
+
|
4256
|
+
|
4257
|
+
<!-- fn processing -->
|
4258
|
+
|
4259
|
+
<xsl:call-template name="table_fn_display"/>
|
4260
|
+
|
4261
|
+
|
4262
|
+
|
4263
|
+
<!-- for PAS display Notes after footnotes -->
|
4264
|
+
|
4265
|
+
|
4266
|
+
</fo:table-cell>
|
4267
|
+
</fo:table-row>
|
4268
|
+
</fo:table-body>
|
4269
|
+
|
4270
|
+
</fo:table>
|
4271
|
+
</xsl:variable>
|
4272
|
+
|
4273
|
+
<xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
|
4274
|
+
<xsl:copy-of select="$tableWithNotesAndFootnotes"/>
|
4275
|
+
</xsl:if>
|
4259
4276
|
|
4260
4277
|
|
4261
4278
|
|
@@ -4612,6 +4629,7 @@
|
|
4612
4629
|
<xsl:variable name="footnote_inline">
|
4613
4630
|
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
4614
4631
|
|
4632
|
+
|
4615
4633
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
4616
4634
|
<xsl:value-of select="$current_fn_number_text"/>
|
4617
4635
|
</fo:basic-link>
|
@@ -4633,8 +4651,12 @@
|
|
4633
4651
|
<fo:block xsl:use-attribute-sets="fn-body-style">
|
4634
4652
|
|
4635
4653
|
|
4654
|
+
|
4636
4655
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
4637
4656
|
|
4657
|
+
|
4658
|
+
|
4659
|
+
|
4638
4660
|
<xsl:value-of select="$current_fn_number_text"/>
|
4639
4661
|
</fo:inline>
|
4640
4662
|
<xsl:apply-templates/>
|
@@ -6345,6 +6367,8 @@
|
|
6345
6367
|
|
6346
6368
|
|
6347
6369
|
|
6370
|
+
|
6371
|
+
|
6348
6372
|
<xsl:choose>
|
6349
6373
|
<xsl:when test="$target_text = ''">
|
6350
6374
|
<xsl:apply-templates/>
|
@@ -6552,6 +6576,7 @@
|
|
6552
6576
|
|
6553
6577
|
|
6554
6578
|
|
6579
|
+
|
6555
6580
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
6556
6581
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
6557
6582
|
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
@@ -6574,6 +6599,7 @@
|
|
6574
6599
|
<xsl:otherwise>
|
6575
6600
|
|
6576
6601
|
|
6602
|
+
|
6577
6603
|
</xsl:otherwise>
|
6578
6604
|
</xsl:choose>
|
6579
6605
|
</xsl:variable>
|
@@ -6590,6 +6616,7 @@
|
|
6590
6616
|
</xsl:when>
|
6591
6617
|
<xsl:otherwise>
|
6592
6618
|
|
6619
|
+
|
6593
6620
|
<xsl:text>:</xsl:text>
|
6594
6621
|
|
6595
6622
|
|
@@ -7368,6 +7395,9 @@
|
|
7368
7395
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
7369
7396
|
|
7370
7397
|
|
7398
|
+
|
7399
|
+
|
7400
|
+
|
7371
7401
|
<xsl:apply-templates/>
|
7372
7402
|
</fo:block>
|
7373
7403
|
</xsl:if>
|
@@ -7428,7 +7458,7 @@
|
|
7428
7458
|
<xsl:apply-templates/>
|
7429
7459
|
</xsl:otherwise>
|
7430
7460
|
</xsl:choose>
|
7431
|
-
</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">
|
7461
|
+
</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'] | *[local-name() = 'eref']" mode="contents">
|
7432
7462
|
<xsl:value-of select="."/>
|
7433
7463
|
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
7434
7464
|
<xsl:text> </xsl:text>
|
@@ -7504,6 +7534,9 @@
|
|
7504
7534
|
<!-- 9 -->
|
7505
7535
|
|
7506
7536
|
9
|
7537
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
7538
|
+
<xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
|
7539
|
+
</xsl:if> -->
|
7507
7540
|
|
7508
7541
|
|
7509
7542
|
|
@@ -7948,10 +7981,14 @@
|
|
7948
7981
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
7949
7982
|
<xsl:variable name="element">inline
|
7950
7983
|
|
7984
|
+
|
7951
7985
|
</xsl:variable>
|
7952
7986
|
<xsl:choose>
|
7953
7987
|
<xsl:when test="contains($element, 'block')">
|
7954
7988
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
7989
|
+
|
7990
|
+
|
7991
|
+
|
7955
7992
|
<xsl:apply-templates/>
|
7956
7993
|
</fo:block>
|
7957
7994
|
</xsl:when>
|
@@ -8064,6 +8101,7 @@
|
|
8064
8101
|
</xsl:if>
|
8065
8102
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
8066
8103
|
|
8104
|
+
|
8067
8105
|
<xsl:apply-templates/>
|
8068
8106
|
</fo:block>
|
8069
8107
|
</fo:block-container>
|
@@ -8230,6 +8268,8 @@
|
|
8230
8268
|
|
8231
8269
|
|
8232
8270
|
|
8271
|
+
|
8272
|
+
|
8233
8273
|
<fo:basic-link fox:alt-text="{@citeas}">
|
8234
8274
|
<xsl:if test="normalize-space(@citeas) = ''">
|
8235
8275
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
@@ -8652,6 +8692,8 @@
|
|
8652
8692
|
|
8653
8693
|
|
8654
8694
|
|
8695
|
+
|
8696
|
+
|
8655
8697
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
8656
8698
|
<xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
8657
8699
|
<xsl:call-template name="append_add-style"/>
|
@@ -8909,7 +8951,7 @@
|
|
8909
8951
|
</fo:block>
|
8910
8952
|
|
8911
8953
|
|
8912
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
8954
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
8913
8955
|
|
8914
8956
|
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
8915
8957
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
@@ -8922,9 +8964,7 @@
|
|
8922
8964
|
|
8923
8965
|
<xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
|
8924
8966
|
<xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
|
8925
|
-
|
8926
|
-
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
8927
|
-
|
8967
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
8928
8968
|
</xsl:if>
|
8929
8969
|
|
8930
8970
|
</fo:inline>
|
@@ -164,7 +164,7 @@ module IsoDoc
|
|
164
164
|
end
|
165
165
|
elem.children = l10n("[#{@i18n.source} #{elem.children.to_xml.strip}]")
|
166
166
|
end
|
167
|
-
|
167
|
+
=begin
|
168
168
|
def expand_citeas(text)
|
169
169
|
ret = super
|
170
170
|
if @lang == "fr" && /^(CGPM|CIPM) /.match?(ret)
|
@@ -180,7 +180,9 @@ module IsoDoc
|
|
180
180
|
Decision: "Décision",
|
181
181
|
Recommendation: "Recommandation",
|
182
182
|
Declaration: "Déclaration",
|
183
|
+
Meeting: "Réunion",
|
183
184
|
}.freeze
|
185
|
+
=end
|
184
186
|
|
185
187
|
include Init
|
186
188
|
end
|
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: 2.1.
|
4
|
+
version: 2.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: 2022-
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|