metanorma-ogc 1.2.17 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/ogc/isodoc.rng +130 -1
- data/lib/isodoc/ogc/html/htmlstyle.css +7 -0
- data/lib/isodoc/ogc/html_convert.rb +0 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +44 -18
- data/lib/isodoc/ogc/ogc.best-practice.xsl +44 -18
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +44 -18
- data/lib/isodoc/ogc/ogc.community-practice.xsl +44 -18
- data/lib/isodoc/ogc/ogc.community-standard.xsl +44 -18
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +44 -18
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +44 -18
- data/lib/isodoc/ogc/ogc.other.xsl +44 -18
- data/lib/isodoc/ogc/ogc.policy.xsl +44 -18
- data/lib/isodoc/ogc/ogc.reference-model.xsl +44 -18
- data/lib/isodoc/ogc/ogc.release-notes.xsl +44 -18
- data/lib/isodoc/ogc/ogc.standard.xsl +44 -18
- data/lib/isodoc/ogc/ogc.test-suite.xsl +44 -18
- data/lib/isodoc/ogc/ogc.user-guide.xsl +44 -18
- data/lib/isodoc/ogc/ogc.white-paper.xsl +44 -18
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +4 -4
- metadata +28 -28
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
<xsl:variable name="pageWidth" select="'215.9mm'"/>
|
10
11
|
<xsl:variable name="pageHeight" select="'279.4mm'"/>
|
@@ -1993,7 +1994,7 @@
|
|
1993
1994
|
|
1994
1995
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1995
1996
|
|
1996
|
-
|
1997
|
+
|
1997
1998
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1998
1999
|
|
1999
2000
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
@@ -2001,6 +2002,12 @@
|
|
2001
2002
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
2002
2003
|
|
2003
2004
|
|
2005
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2006
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2007
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2008
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2009
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2010
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2004
2011
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2005
2012
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2006
2013
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3390,8 +3397,12 @@
|
|
3390
3397
|
<fo:inline text-decoration="underline">
|
3391
3398
|
<xsl:apply-templates/>
|
3392
3399
|
</fo:inline>
|
3400
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3401
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3402
|
+
<xsl:apply-templates/>
|
3403
|
+
</fo:inline>
|
3393
3404
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3394
|
-
<fo:inline
|
3405
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3395
3406
|
<xsl:apply-templates/>
|
3396
3407
|
</fo:inline>
|
3397
3408
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4011,22 +4022,37 @@
|
|
4011
4022
|
<xsl:apply-templates/>
|
4012
4023
|
</fo:block>
|
4013
4024
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4014
|
-
<
|
4015
|
-
|
4016
|
-
|
4017
|
-
|
4018
|
-
|
4019
|
-
|
4020
|
-
|
4021
|
-
|
4022
|
-
|
4023
|
-
|
4024
|
-
|
4025
|
-
|
4026
|
-
|
4027
|
-
|
4028
|
-
|
4029
|
-
|
4025
|
+
<xsl:choose>
|
4026
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4027
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4028
|
+
<xsl:variable name="src">
|
4029
|
+
<xsl:call-template name="image_src"/>
|
4030
|
+
</xsl:variable>
|
4031
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4032
|
+
</fo:inline>
|
4033
|
+
</xsl:when>
|
4034
|
+
<xsl:otherwise>
|
4035
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4036
|
+
|
4037
|
+
<xsl:variable name="src">
|
4038
|
+
<xsl:call-template name="image_src"/>
|
4039
|
+
</xsl:variable>
|
4040
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4041
|
+
</fo:block>
|
4042
|
+
</xsl:otherwise>
|
4043
|
+
</xsl:choose>
|
4044
|
+
</xsl:template><xsl:template name="image_src">
|
4045
|
+
<xsl:choose>
|
4046
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4047
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4048
|
+
</xsl:when>
|
4049
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4050
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4051
|
+
</xsl:when>
|
4052
|
+
<xsl:otherwise>
|
4053
|
+
<xsl:value-of select="@src"/>
|
4054
|
+
</xsl:otherwise>
|
4055
|
+
</xsl:choose>
|
4030
4056
|
</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">
|
4031
4057
|
<xsl:apply-templates mode="contents"/>
|
4032
4058
|
<xsl:text> </xsl:text>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
<xsl:variable name="pageWidth" select="'215.9mm'"/>
|
10
11
|
<xsl:variable name="pageHeight" select="'279.4mm'"/>
|
@@ -1444,7 +1445,7 @@
|
|
1444
1445
|
|
1445
1446
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1446
1447
|
|
1447
|
-
|
1448
|
+
|
1448
1449
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1449
1450
|
|
1450
1451
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
@@ -1452,6 +1453,12 @@
|
|
1452
1453
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
1453
1454
|
|
1454
1455
|
|
1456
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
1457
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
1458
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1459
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
1460
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
1461
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
1455
1462
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1456
1463
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1457
1464
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -2828,8 +2835,12 @@
|
|
2828
2835
|
<fo:inline text-decoration="underline">
|
2829
2836
|
<xsl:apply-templates/>
|
2830
2837
|
</fo:inline>
|
2838
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
2839
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
2840
|
+
<xsl:apply-templates/>
|
2841
|
+
</fo:inline>
|
2831
2842
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
2832
|
-
<fo:inline
|
2843
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
2833
2844
|
<xsl:apply-templates/>
|
2834
2845
|
</fo:inline>
|
2835
2846
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -3447,22 +3458,37 @@
|
|
3447
3458
|
<xsl:apply-templates/>
|
3448
3459
|
</fo:block>
|
3449
3460
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
3450
|
-
<
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
|
3465
|
-
|
3461
|
+
<xsl:choose>
|
3462
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
3463
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
3464
|
+
<xsl:variable name="src">
|
3465
|
+
<xsl:call-template name="image_src"/>
|
3466
|
+
</xsl:variable>
|
3467
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
3468
|
+
</fo:inline>
|
3469
|
+
</xsl:when>
|
3470
|
+
<xsl:otherwise>
|
3471
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
3472
|
+
|
3473
|
+
<xsl:variable name="src">
|
3474
|
+
<xsl:call-template name="image_src"/>
|
3475
|
+
</xsl:variable>
|
3476
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
3477
|
+
</fo:block>
|
3478
|
+
</xsl:otherwise>
|
3479
|
+
</xsl:choose>
|
3480
|
+
</xsl:template><xsl:template name="image_src">
|
3481
|
+
<xsl:choose>
|
3482
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
3483
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
3484
|
+
</xsl:when>
|
3485
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
3486
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
3487
|
+
</xsl:when>
|
3488
|
+
<xsl:otherwise>
|
3489
|
+
<xsl:value-of select="@src"/>
|
3490
|
+
</xsl:otherwise>
|
3491
|
+
</xsl:choose>
|
3466
3492
|
</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">
|
3467
3493
|
<xsl:apply-templates mode="contents"/>
|
3468
3494
|
<xsl:text> </xsl:text>
|
data/metanorma-ogc.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path("
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require "metanorma/ogc/version"
|
4
4
|
|
@@ -24,18 +24,18 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
26
26
|
|
27
|
-
spec.add_dependency "metanorma-standoc", "~> 1.8.0"
|
28
|
-
spec.add_dependency "isodoc", "~> 1.5.0"
|
29
27
|
spec.add_dependency "iso-639"
|
28
|
+
spec.add_dependency "isodoc", "~> 1.6.0"
|
29
|
+
spec.add_dependency "metanorma-standoc", "~> 1.9.0"
|
30
30
|
|
31
31
|
spec.add_development_dependency "byebug", "~> 9.1"
|
32
|
-
spec.add_development_dependency "sassc", "2.4.0"
|
33
32
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
34
33
|
spec.add_development_dependency "guard", "~> 2.14"
|
35
34
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
36
35
|
spec.add_development_dependency "rake", "~> 13.0"
|
37
36
|
spec.add_development_dependency "rspec", "~> 3.6"
|
38
37
|
spec.add_development_dependency "rubocop", "~> 1.5.2"
|
38
|
+
spec.add_development_dependency "sassc", "2.4.0"
|
39
39
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
40
40
|
spec.add_development_dependency "timecop", "~> 0.9"
|
41
41
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
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-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: iso-639
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
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:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: isodoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.6.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.6.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: metanorma-standoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.9.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '9.1'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sassc
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.4.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.4.0
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: equivalent-xml
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +150,20 @@ dependencies:
|
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: 1.5.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: sassc
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 2.4.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 2.4.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: simplecov
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|