metanorma-ogc 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +12 -11
- data/.hound.yml +3 -1
- data/.rubocop.yml +3 -5
- data/lib/asciidoctor/ogc/isodoc.rng +16 -0
- data/lib/asciidoctor/ogc/ogc.rng +12 -14
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +44 -9
- data/lib/isodoc/ogc/ogc.best-practice.xsl +44 -9
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +44 -9
- data/lib/isodoc/ogc/ogc.community-practice.xsl +44 -9
- data/lib/isodoc/ogc/ogc.community-standard.xsl +44 -9
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +44 -9
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +44 -9
- data/lib/isodoc/ogc/ogc.other.xsl +44 -9
- data/lib/isodoc/ogc/ogc.policy.xsl +44 -9
- data/lib/isodoc/ogc/ogc.reference-model.xsl +44 -9
- data/lib/isodoc/ogc/ogc.release-notes.xsl +44 -9
- data/lib/isodoc/ogc/ogc.standard.xsl +44 -9
- data/lib/isodoc/ogc/ogc.test-suite.xsl +44 -9
- data/lib/isodoc/ogc/ogc.user-guide.xsl +44 -9
- data/lib/isodoc/ogc/ogc.white-paper.xsl +44 -9
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -1064,6 +1064,7 @@
|
|
1064
1064
|
|
1065
1065
|
|
1066
1066
|
|
1067
|
+
|
1067
1068
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
1068
1069
|
<xsl:attribute name="white-space">pre</xsl:attribute>
|
1069
1070
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
@@ -1169,6 +1170,7 @@
|
|
1169
1170
|
|
1170
1171
|
|
1171
1172
|
|
1173
|
+
|
1172
1174
|
</xsl:attribute-set><xsl:attribute-set name="example-body-style">
|
1173
1175
|
|
1174
1176
|
|
@@ -1192,9 +1194,7 @@
|
|
1192
1194
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1193
1195
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1194
1196
|
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1197
|
+
|
1198
1198
|
|
1199
1199
|
|
1200
1200
|
|
@@ -1247,6 +1247,7 @@
|
|
1247
1247
|
|
1248
1248
|
|
1249
1249
|
|
1250
|
+
|
1250
1251
|
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
1251
1252
|
|
1252
1253
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
@@ -1272,6 +1273,7 @@
|
|
1272
1273
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1273
1274
|
|
1274
1275
|
|
1276
|
+
|
1275
1277
|
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
1276
1278
|
|
1277
1279
|
|
@@ -1280,6 +1282,7 @@
|
|
1280
1282
|
|
1281
1283
|
|
1282
1284
|
|
1285
|
+
|
1283
1286
|
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
1284
1287
|
|
1285
1288
|
|
@@ -1377,6 +1380,7 @@
|
|
1377
1380
|
|
1378
1381
|
|
1379
1382
|
|
1383
|
+
|
1380
1384
|
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1381
1385
|
|
1382
1386
|
|
@@ -1384,6 +1388,7 @@
|
|
1384
1388
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1385
1389
|
|
1386
1390
|
|
1391
|
+
|
1387
1392
|
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1388
1393
|
|
1389
1394
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
@@ -1461,8 +1466,10 @@
|
|
1461
1466
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1462
1467
|
|
1463
1468
|
|
1469
|
+
|
1464
1470
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1465
1471
|
|
1472
|
+
|
1466
1473
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1467
1474
|
|
1468
1475
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
@@ -2225,6 +2232,7 @@
|
|
2225
2232
|
|
2226
2233
|
|
2227
2234
|
|
2235
|
+
|
2228
2236
|
<xsl:if test="$lang = 'ar'">
|
2229
2237
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2230
2238
|
</xsl:if>
|
@@ -2606,6 +2614,7 @@
|
|
2606
2614
|
|
2607
2615
|
|
2608
2616
|
|
2617
|
+
|
2609
2618
|
<xsl:variable name="title-key">
|
2610
2619
|
|
2611
2620
|
|
@@ -2890,6 +2899,8 @@
|
|
2890
2899
|
|
2891
2900
|
<xsl:apply-templates/>
|
2892
2901
|
</fo:inline>
|
2902
|
+
</xsl:template><xsl:template match="*[local-name()='padding']">
|
2903
|
+
<fo:inline padding-right="{@value}"> </fo:inline>
|
2893
2904
|
</xsl:template><xsl:template match="*[local-name()='sup']">
|
2894
2905
|
<fo:inline font-size="80%" vertical-align="super">
|
2895
2906
|
<xsl:apply-templates/>
|
@@ -3382,6 +3393,16 @@
|
|
3382
3393
|
<mathml:mspace width="0.5ex"/>
|
3383
3394
|
</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">
|
3384
3395
|
<xsl:variable name="target">
|
3396
|
+
<xsl:choose>
|
3397
|
+
<xsl:when test="@updatetype = 'true'">
|
3398
|
+
<xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
|
3399
|
+
</xsl:when>
|
3400
|
+
<xsl:otherwise>
|
3401
|
+
<xsl:value-of select="normalize-space(@target)"/>
|
3402
|
+
</xsl:otherwise>
|
3403
|
+
</xsl:choose>
|
3404
|
+
</xsl:variable>
|
3405
|
+
<xsl:variable name="target_text">
|
3385
3406
|
<xsl:choose>
|
3386
3407
|
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
|
3387
3408
|
<xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
|
@@ -3394,19 +3415,19 @@
|
|
3394
3415
|
<fo:inline xsl:use-attribute-sets="link-style">
|
3395
3416
|
|
3396
3417
|
<xsl:choose>
|
3397
|
-
<xsl:when test="$
|
3418
|
+
<xsl:when test="$target_text = ''">
|
3398
3419
|
<xsl:apply-templates/>
|
3399
3420
|
</xsl:when>
|
3400
3421
|
<xsl:otherwise>
|
3401
|
-
<fo:basic-link external-destination="{
|
3422
|
+
<fo:basic-link external-destination="{$target}" fox:alt-text="{$target}">
|
3402
3423
|
<xsl:choose>
|
3403
3424
|
<xsl:when test="normalize-space(.) = ''">
|
3404
|
-
<!-- <xsl:value-of select="$target"/> -->
|
3405
3425
|
<xsl:call-template name="add-zero-spaces-link-java">
|
3406
|
-
<xsl:with-param name="text" select="$
|
3426
|
+
<xsl:with-param name="text" select="$target_text"/>
|
3407
3427
|
</xsl:call-template>
|
3408
3428
|
</xsl:when>
|
3409
3429
|
<xsl:otherwise>
|
3430
|
+
<!-- output text from <link>text</link> -->
|
3410
3431
|
<xsl:apply-templates/>
|
3411
3432
|
</xsl:otherwise>
|
3412
3433
|
</xsl:choose>
|
@@ -3997,6 +4018,7 @@
|
|
3997
4018
|
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
3998
4019
|
|
3999
4020
|
<fo:block-container margin-left="0mm">
|
4021
|
+
<xsl:copy-of select="@id"/>
|
4000
4022
|
<xsl:if test="parent::*[local-name() = 'note']">
|
4001
4023
|
<xsl:attribute name="margin-left">
|
4002
4024
|
<xsl:choose>
|
@@ -4282,6 +4304,7 @@
|
|
4282
4304
|
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
4283
4305
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
4284
4306
|
|
4307
|
+
|
4285
4308
|
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
4286
4309
|
|
4287
4310
|
<xsl:variable name="element">
|
@@ -4391,12 +4414,13 @@
|
|
4391
4414
|
|
4392
4415
|
|
4393
4416
|
|
4417
|
+
|
4394
4418
|
<xsl:call-template name="getTitle">
|
4395
4419
|
<xsl:with-param name="name" select="'title-source'"/>
|
4396
4420
|
</xsl:call-template>
|
4421
|
+
<xsl:text>: </xsl:text>
|
4397
4422
|
|
4398
4423
|
|
4399
|
-
<xsl:text>: </xsl:text>
|
4400
4424
|
</fo:inline>
|
4401
4425
|
|
4402
4426
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
@@ -4512,6 +4536,7 @@
|
|
4512
4536
|
|
4513
4537
|
|
4514
4538
|
|
4539
|
+
|
4515
4540
|
<xsl:choose>
|
4516
4541
|
<xsl:when test="$depth >= 5"/>
|
4517
4542
|
<xsl:when test="$depth >= 4">5</xsl:when>
|
@@ -5336,6 +5361,9 @@
|
|
5336
5361
|
<xsl:when test="parent::*[local-name() = 'preface']">
|
5337
5362
|
<xsl:value-of select="$level_total - 1"/>
|
5338
5363
|
</xsl:when>
|
5364
|
+
<xsl:when test="ancestor::*[local-name() = 'preface'] and not(ancestor::*[local-name() = 'foreword']) and not(ancestor::*[local-name() = 'introduction'])"> <!-- for preface/clause -->
|
5365
|
+
<xsl:value-of select="$level_total - 1"/>
|
5366
|
+
</xsl:when>
|
5339
5367
|
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
5340
5368
|
<xsl:value-of select="$level_total - 2"/>
|
5341
5369
|
</xsl:when>
|
@@ -5476,7 +5504,14 @@
|
|
5476
5504
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5477
5505
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5478
5506
|
</xsl:when>
|
5479
|
-
<xsl:otherwise
|
5507
|
+
<xsl:otherwise>
|
5508
|
+
<xsl:variable name="key_">
|
5509
|
+
<xsl:call-template name="capitalize">
|
5510
|
+
<xsl:with-param name="str" select="translate($key, '_', ' ')"/>
|
5511
|
+
</xsl:call-template>
|
5512
|
+
</xsl:variable>
|
5513
|
+
<xsl:value-of select="$key_"/>
|
5514
|
+
</xsl:otherwise>
|
5480
5515
|
</xsl:choose>
|
5481
5516
|
|
5482
5517
|
</xsl:template><xsl:template name="setTrackChangesStyles">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|