metanorma-gb 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/gb/basicdoc.rng +4 -11
- data/lib/asciidoctor/gb/gbstandard.rng +7 -0
- data/lib/asciidoctor/gb/isodoc.rng +13 -6
- data/lib/asciidoctor/gb/isostandard.rng +8 -1
- data/lib/isodoc/gb/gb.recommendation.xsl +166 -31
- data/lib/metanorma/gb/version.rb +1 -1
- data/metanorma-gb.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a63c4effd68819deb875d70cb1f6fbe71ac5a5dafe0aa573d7584ef9185d9667
|
4
|
+
data.tar.gz: 2be102605c20765a7f56ce2f9ad1ef4d3c0c52bb9c47368ba30e7ad60d200087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de3847076209208804802807521dadeb1cf9735a08abae7d1623b31fc21e8cc9325030d3245e670ef1c9003c9ff68d94895d915be49dcdd059858050697d399
|
7
|
+
data.tar.gz: 3265e0eebc1f9a75f6a9d0ba5ef2688795a9637183980984ee26774d29adc82d62fe0b645466792da2df7ea70e1d28b6d574e1dc046b16e9af9a999a5df5feb8
|
@@ -158,17 +158,7 @@
|
|
158
158
|
<data type="ID"/>
|
159
159
|
</attribute>
|
160
160
|
<oneOrMore>
|
161
|
-
<
|
162
|
-
<ref name="formula"/>
|
163
|
-
<ref name="ul"/>
|
164
|
-
<ref name="ol"/>
|
165
|
-
<ref name="dl"/>
|
166
|
-
<ref name="quote"/>
|
167
|
-
<ref name="sourcecode"/>
|
168
|
-
<ref name="paragraph"/>
|
169
|
-
<ref name="table"/>
|
170
|
-
<ref name="figure"/>
|
171
|
-
</choice>
|
161
|
+
<ref name="paragraph"/>
|
172
162
|
</oneOrMore>
|
173
163
|
</element>
|
174
164
|
</define>
|
@@ -1028,6 +1018,9 @@
|
|
1028
1018
|
<value>alphabet_upper</value>
|
1029
1019
|
</choice>
|
1030
1020
|
</attribute>
|
1021
|
+
<optional>
|
1022
|
+
<attribute name="start"/>
|
1023
|
+
</optional>
|
1031
1024
|
<oneOrMore>
|
1032
1025
|
<ref name="li"/>
|
1033
1026
|
</oneOrMore>
|
@@ -183,6 +183,13 @@
|
|
183
183
|
<!-- identical structure to iso-standard -->
|
184
184
|
<define name="gb-standard">
|
185
185
|
<element name="gb-standard">
|
186
|
+
<attribute name="version"/>
|
187
|
+
<attribute name="type">
|
188
|
+
<choice>
|
189
|
+
<value>semantic</value>
|
190
|
+
<value>presentation</value>
|
191
|
+
</choice>
|
192
|
+
</attribute>
|
186
193
|
<ref name="bibdata"/>
|
187
194
|
<zeroOrMore>
|
188
195
|
<ref name="termdocsource"/>
|
@@ -64,6 +64,11 @@
|
|
64
64
|
</choice>
|
65
65
|
</attribute>
|
66
66
|
</optional>
|
67
|
+
<optional>
|
68
|
+
<attribute name="droploc">
|
69
|
+
<data type="boolean"/>
|
70
|
+
</attribute>
|
71
|
+
</optional>
|
67
72
|
<text/>
|
68
73
|
</element>
|
69
74
|
</define>
|
@@ -859,6 +864,13 @@
|
|
859
864
|
</define>
|
860
865
|
<define name="standard-document">
|
861
866
|
<element name="standard-document">
|
867
|
+
<attribute name="version"/>
|
868
|
+
<attribute name="type">
|
869
|
+
<choice>
|
870
|
+
<value>semantic</value>
|
871
|
+
<value>presentation</value>
|
872
|
+
</choice>
|
873
|
+
</attribute>
|
862
874
|
<ref name="bibdata"/>
|
863
875
|
<optional>
|
864
876
|
<ref name="boilerplate"/>
|
@@ -880,7 +892,7 @@
|
|
880
892
|
<oneOrMore>
|
881
893
|
<choice>
|
882
894
|
<ref name="content"/>
|
883
|
-
<ref name="
|
895
|
+
<ref name="abstract"/>
|
884
896
|
<ref name="foreword"/>
|
885
897
|
<ref name="introduction"/>
|
886
898
|
<ref name="acknowledgements"/>
|
@@ -1481,11 +1493,6 @@
|
|
1481
1493
|
</optional>
|
1482
1494
|
</element>
|
1483
1495
|
</define>
|
1484
|
-
<define name="preface_abstract">
|
1485
|
-
<element name="abstract">
|
1486
|
-
<ref name="Basic-Section"/>
|
1487
|
-
</element>
|
1488
|
-
</define>
|
1489
1496
|
<define name="term-clause">
|
1490
1497
|
<element name="clause">
|
1491
1498
|
<optional>
|
@@ -253,7 +253,7 @@
|
|
253
253
|
<define name="preface">
|
254
254
|
<element name="preface">
|
255
255
|
<optional>
|
256
|
-
<ref name="
|
256
|
+
<ref name="abstract"/>
|
257
257
|
</optional>
|
258
258
|
<ref name="foreword"/>
|
259
259
|
<optional>
|
@@ -405,6 +405,13 @@
|
|
405
405
|
-->
|
406
406
|
<define name="iso-standard">
|
407
407
|
<element name="iso-standard">
|
408
|
+
<attribute name="version"/>
|
409
|
+
<attribute name="type">
|
410
|
+
<choice>
|
411
|
+
<value>semantic</value>
|
412
|
+
<value>presentation</value>
|
413
|
+
</choice>
|
414
|
+
</attribute>
|
408
415
|
<ref name="bibdata"/>
|
409
416
|
<zeroOrMore>
|
410
417
|
<ref name="termdocsource"/>
|
@@ -113,6 +113,10 @@
|
|
113
113
|
</fo:layout-master-set>
|
114
114
|
|
115
115
|
<xsl:call-template name="addPDFUAmeta"/>
|
116
|
+
|
117
|
+
<xsl:call-template name="addBookmarks">
|
118
|
+
<xsl:with-param name="contents" select="$contents"/>
|
119
|
+
</xsl:call-template>
|
116
120
|
|
117
121
|
<fo:page-sequence master-reference="cover" force-page-count="no-force">
|
118
122
|
<fo:flow flow-name="xsl-region-body">
|
@@ -329,19 +333,19 @@
|
|
329
333
|
|
330
334
|
<fo:block line-height="220%">
|
331
335
|
<xsl:variable name="margin-left">12</xsl:variable>
|
332
|
-
<xsl:for-each select="xalan:nodeset($contents)//item"><!-- [@display = 'true'][not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
|
336
|
+
<xsl:for-each select="xalan:nodeset($contents)//item[@display = 'true']"><!-- [@display = 'true'][not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
|
333
337
|
<fo:block text-align-last="justify">
|
334
338
|
<xsl:if test="@level =2">
|
335
339
|
<xsl:attribute name="margin-left">3.7mm</xsl:attribute>
|
336
340
|
</xsl:if>
|
337
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{
|
341
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{title}">
|
338
342
|
<xsl:if test="normalize-space(@section) != ''">
|
339
343
|
<fo:inline>
|
340
344
|
<xsl:value-of select="@section"/>
|
341
345
|
</fo:inline>
|
342
346
|
<xsl:value-of select="$tab_zh"/>
|
343
347
|
</xsl:if>
|
344
|
-
<xsl:apply-templates/>
|
348
|
+
<xsl:apply-templates select="title"/>
|
345
349
|
<fo:inline keep-together.within-line="always">
|
346
350
|
<fo:leader font-weight="normal" leader-pattern="dots"/>
|
347
351
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
@@ -456,15 +460,21 @@
|
|
456
460
|
</xsl:variable>
|
457
461
|
|
458
462
|
<xsl:variable name="display">
|
459
|
-
<xsl:choose>
|
460
|
-
<xsl:when test="ancestor-or-self::gb:bibitem">false</xsl:when>
|
461
|
-
<xsl:when test="ancestor-or-self::gb:term">false</xsl:when>
|
463
|
+
<xsl:choose>
|
462
464
|
<xsl:when test="$level <= 2">true</xsl:when>
|
463
465
|
<xsl:otherwise>false</xsl:otherwise>
|
464
466
|
</xsl:choose>
|
465
467
|
</xsl:variable>
|
466
468
|
|
467
|
-
<xsl:
|
469
|
+
<xsl:variable name="skip">
|
470
|
+
<xsl:choose>
|
471
|
+
<xsl:when test="ancestor-or-self::gb:bibitem">true</xsl:when>
|
472
|
+
<xsl:when test="ancestor-or-self::gb:term">true</xsl:when>
|
473
|
+
<xsl:otherwise>false</xsl:otherwise>
|
474
|
+
</xsl:choose>
|
475
|
+
</xsl:variable>
|
476
|
+
|
477
|
+
<xsl:if test="$skip = 'false'">
|
468
478
|
|
469
479
|
<xsl:variable name="section">
|
470
480
|
<xsl:call-template name="getSection"/>
|
@@ -478,10 +488,13 @@
|
|
478
488
|
<xsl:value-of select="local-name()"/>
|
479
489
|
</xsl:variable>
|
480
490
|
|
481
|
-
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}">
|
482
|
-
<
|
491
|
+
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}" display="{$display}">
|
492
|
+
<title>
|
493
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
494
|
+
</title>
|
495
|
+
<xsl:apply-templates mode="contents"/>
|
483
496
|
</item>
|
484
|
-
|
497
|
+
|
485
498
|
</xsl:if>
|
486
499
|
|
487
500
|
</xsl:template>
|
@@ -1122,6 +1135,10 @@
|
|
1122
1135
|
<title-edition lang="en">
|
1123
1136
|
|
1124
1137
|
|
1138
|
+
</title-edition>
|
1139
|
+
|
1140
|
+
<title-edition lang="fr">
|
1141
|
+
|
1125
1142
|
</title-edition>
|
1126
1143
|
|
1127
1144
|
|
@@ -1236,7 +1253,9 @@
|
|
1236
1253
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
1237
1254
|
</xsl:otherwise>
|
1238
1255
|
</xsl:choose>
|
1239
|
-
</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="linebreak" select="'
'"/><xsl:attribute-set name="
|
1256
|
+
</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="linebreak" select="'
'"/><xsl:attribute-set name="root-style">
|
1257
|
+
|
1258
|
+
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
1240
1259
|
|
1241
1260
|
|
1242
1261
|
|
@@ -3222,12 +3241,101 @@
|
|
3222
3241
|
|
3223
3242
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
3224
3243
|
</fo:block>
|
3225
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
3244
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
3226
3245
|
<xsl:apply-templates mode="contents"/>
|
3227
3246
|
<xsl:text> </xsl:text>
|
3228
|
-
</xsl:template><xsl:template match="
|
3247
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
|
3248
|
+
<xsl:apply-templates mode="bookmarks"/>
|
3249
|
+
<xsl:text> </xsl:text>
|
3250
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
3251
|
+
<xsl:value-of select="."/>
|
3252
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
3229
3253
|
<xsl:value-of select="."/>
|
3230
|
-
</xsl:template><xsl:template match="
|
3254
|
+
</xsl:template><xsl:template match="node()" mode="contents">
|
3255
|
+
<xsl:apply-templates mode="contents"/>
|
3256
|
+
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
3257
|
+
<xsl:apply-templates mode="bookmarks"/>
|
3258
|
+
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3259
|
+
<xsl:apply-templates select="."/>
|
3260
|
+
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3261
|
+
<xsl:apply-templates mode="bookmarks"/>
|
3262
|
+
</xsl:template><xsl:template name="addBookmarks">
|
3263
|
+
<xsl:param name="contents"/>
|
3264
|
+
<xsl:if test="xalan:nodeset($contents)//item">
|
3265
|
+
<fo:bookmark-tree>
|
3266
|
+
<xsl:choose>
|
3267
|
+
<xsl:when test="xalan:nodeset($contents)/doc">
|
3268
|
+
<xsl:choose>
|
3269
|
+
<xsl:when test="count(xalan:nodeset($contents)/doc) > 1">
|
3270
|
+
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
3271
|
+
<fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
|
3272
|
+
<fo:bookmark-title>
|
3273
|
+
<xsl:variable name="bookmark-title_">
|
3274
|
+
<xsl:choose>
|
3275
|
+
<xsl:when test="@lang = 'en'">
|
3276
|
+
|
3277
|
+
|
3278
|
+
</xsl:when>
|
3279
|
+
<xsl:when test="@lang = 'fr'">
|
3280
|
+
|
3281
|
+
|
3282
|
+
</xsl:when>
|
3283
|
+
<xsl:when test="@lang = 'de'">Deutsche</xsl:when>
|
3284
|
+
<xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
|
3285
|
+
</xsl:choose>
|
3286
|
+
</xsl:variable>
|
3287
|
+
<xsl:choose>
|
3288
|
+
<xsl:when test="normalize-space($bookmark-title_) != ''">
|
3289
|
+
<xsl:value-of select="normalize-space($bookmark-title_)"/>
|
3290
|
+
</xsl:when>
|
3291
|
+
<xsl:otherwise>
|
3292
|
+
<xsl:choose>
|
3293
|
+
<xsl:when test="@lang = 'en'">English</xsl:when>
|
3294
|
+
<xsl:when test="@lang = 'fr'">Français</xsl:when>
|
3295
|
+
<xsl:when test="@lang = 'de'">Deutsche</xsl:when>
|
3296
|
+
<xsl:otherwise><xsl:value-of select="@lang"/> version</xsl:otherwise>
|
3297
|
+
</xsl:choose>
|
3298
|
+
</xsl:otherwise>
|
3299
|
+
</xsl:choose>
|
3300
|
+
</fo:bookmark-title>
|
3301
|
+
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
3302
|
+
</fo:bookmark>
|
3303
|
+
|
3304
|
+
</xsl:for-each>
|
3305
|
+
</xsl:when>
|
3306
|
+
<xsl:otherwise>
|
3307
|
+
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
3308
|
+
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
3309
|
+
</xsl:for-each>
|
3310
|
+
</xsl:otherwise>
|
3311
|
+
</xsl:choose>
|
3312
|
+
</xsl:when>
|
3313
|
+
<xsl:otherwise>
|
3314
|
+
<xsl:apply-templates select="xalan:nodeset($contents)/contents/item" mode="bookmark"/>
|
3315
|
+
</xsl:otherwise>
|
3316
|
+
</xsl:choose>
|
3317
|
+
|
3318
|
+
|
3319
|
+
|
3320
|
+
|
3321
|
+
|
3322
|
+
|
3323
|
+
|
3324
|
+
|
3325
|
+
</fo:bookmark-tree>
|
3326
|
+
</xsl:if>
|
3327
|
+
</xsl:template><xsl:template match="item" mode="bookmark">
|
3328
|
+
<fo:bookmark internal-destination="{@id}" starting-state="hide">
|
3329
|
+
<fo:bookmark-title>
|
3330
|
+
<xsl:if test="@section != ''">
|
3331
|
+
<xsl:value-of select="@section"/>
|
3332
|
+
<xsl:text> </xsl:text>
|
3333
|
+
</xsl:if>
|
3334
|
+
<xsl:value-of select="normalize-space(title)"/>
|
3335
|
+
</fo:bookmark-title>
|
3336
|
+
<xsl:apply-templates mode="bookmark"/>
|
3337
|
+
</fo:bookmark>
|
3338
|
+
</xsl:template><xsl:template match="title" mode="bookmark"/><xsl:template match="text()" mode="bookmark"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
|
3231
3339
|
<xsl:if test="normalize-space() != ''">
|
3232
3340
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3233
3341
|
|
@@ -3285,7 +3393,7 @@
|
|
3285
3393
|
<xsl:apply-templates/>
|
3286
3394
|
</xsl:otherwise>
|
3287
3395
|
</xsl:choose>
|
3288
|
-
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
3396
|
+
</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() = 'tab']" mode="contents_item">
|
3289
3397
|
<xsl:text> </xsl:text>
|
3290
3398
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
3291
3399
|
<xsl:copy>
|
@@ -3883,22 +3991,31 @@
|
|
3883
3991
|
<!-- 0xA0 to space replacement -->
|
3884
3992
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
3885
3993
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
3886
|
-
<
|
3887
|
-
<xsl:
|
3888
|
-
<
|
3889
|
-
<xsl:
|
3890
|
-
<xsl:
|
3891
|
-
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
3901
|
-
|
3994
|
+
<xsl:choose>
|
3995
|
+
<xsl:when test="parent::*[local-name() = 'note']">
|
3996
|
+
<fo:block-container>
|
3997
|
+
<xsl:attribute name="margin-left">
|
3998
|
+
<xsl:choose>
|
3999
|
+
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
4000
|
+
<xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
|
4001
|
+
</xsl:choose>
|
4002
|
+
</xsl:attribute>
|
4003
|
+
|
4004
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4005
|
+
|
4006
|
+
<fo:block-container margin-left="0mm">
|
4007
|
+
<fo:block>
|
4008
|
+
<xsl:apply-templates select="." mode="ul_ol"/>
|
4009
|
+
</fo:block>
|
4010
|
+
</fo:block-container>
|
4011
|
+
</fo:block-container>
|
4012
|
+
</xsl:when>
|
4013
|
+
<xsl:otherwise>
|
4014
|
+
<fo:block>
|
4015
|
+
<xsl:apply-templates select="." mode="ul_ol"/>
|
4016
|
+
</fo:block>
|
4017
|
+
</xsl:otherwise>
|
4018
|
+
</xsl:choose>
|
3902
4019
|
</xsl:template><xsl:template match="*[local-name() = 'errata']">
|
3903
4020
|
<!-- <row>
|
3904
4021
|
<date>05-07-2013</date>
|
@@ -4196,6 +4313,7 @@
|
|
4196
4313
|
<xsl:value-of select="document('')//*/namespace::gb"/>
|
4197
4314
|
|
4198
4315
|
|
4316
|
+
|
4199
4317
|
</xsl:variable>
|
4200
4318
|
<xsl:if test="$documentNS != $XSLNS">
|
4201
4319
|
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
@@ -4221,4 +4339,21 @@
|
|
4221
4339
|
</xsl:otherwise>
|
4222
4340
|
</xsl:choose>
|
4223
4341
|
</xsl:attribute>
|
4342
|
+
</xsl:template><xsl:template name="add-letter-spacing">
|
4343
|
+
<xsl:param name="text"/>
|
4344
|
+
<xsl:param name="letter-spacing" select="'0.15'"/>
|
4345
|
+
<xsl:if test="string-length($text) > 0">
|
4346
|
+
<xsl:variable name="char" select="substring($text, 1, 1)"/>
|
4347
|
+
<fo:inline padding-right="{$letter-spacing}mm">
|
4348
|
+
<xsl:if test="$char = '®'">
|
4349
|
+
<xsl:attribute name="font-size">58%</xsl:attribute>
|
4350
|
+
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
4351
|
+
</xsl:if>
|
4352
|
+
<xsl:value-of select="$char"/>
|
4353
|
+
</fo:inline>
|
4354
|
+
<xsl:call-template name="add-letter-spacing">
|
4355
|
+
<xsl:with-param name="text" select="substring($text, 2)"/>
|
4356
|
+
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
|
4357
|
+
</xsl:call-template>
|
4358
|
+
</xsl:if>
|
4224
4359
|
</xsl:template></xsl:stylesheet>
|
data/lib/metanorma/gb/version.rb
CHANGED
data/metanorma-gb.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
31
31
|
|
32
|
-
spec.add_dependency "metanorma-iso", "~> 1.5.
|
32
|
+
spec.add_dependency "metanorma-iso", "~> 1.5.9"
|
33
33
|
spec.add_dependency "isodoc", "~> 1.2.0"
|
34
34
|
spec.add_dependency "twitter_cldr", "~> 4.4.4"
|
35
35
|
spec.add_dependency "gb-agencies", "~> 0.0.4"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-gb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.5.
|
19
|
+
version: 1.5.9
|
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: 1.5.
|
26
|
+
version: 1.5.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: isodoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|