metanorma-itu 1.2.16 → 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/itu/cleanup.rb +9 -6
- data/lib/asciidoctor/itu/converter.rb +13 -15
- data/lib/asciidoctor/itu/isodoc.rng +130 -1
- data/lib/asciidoctor/itu/itu.rng +0 -30
- data/lib/isodoc/itu/base_convert.rb +25 -37
- data/lib/isodoc/itu/html/_coverpage.css +7 -0
- data/lib/isodoc/itu/html/htmlstyle.css +14 -7
- data/lib/isodoc/itu/html/htmlstyle.scss +0 -9
- data/lib/isodoc/itu/html/itu.css +0 -7
- data/lib/isodoc/itu/html/itu.scss +0 -7
- data/lib/isodoc/itu/html_convert.rb +0 -1
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +80 -0
- data/lib/isodoc/itu/i18n.rb +4 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +44 -18
- data/lib/isodoc/itu/itu.in-force.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation.xsl +44 -18
- data/lib/isodoc/itu/itu.resolution.xsl +44 -18
- data/lib/isodoc/itu/itu.technical-paper.xsl +44 -18
- data/lib/isodoc/itu/itu.technical-report.xsl +44 -18
- data/lib/isodoc/itu/presentation_xml_convert.rb +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +4 -4
- metadata +29 -29
- data/lib/asciidoctor/itu/macros.rb +0 -27
@@ -108,6 +108,13 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
108
108
|
content: ", ";
|
109
109
|
vertical-align: super; }
|
110
110
|
|
111
|
+
.addition {
|
112
|
+
color: blue; }
|
113
|
+
|
114
|
+
.deletion {
|
115
|
+
color: red;
|
116
|
+
text-decoration: line-through; }
|
117
|
+
|
111
118
|
#standard-band {
|
112
119
|
background-color: #0AC442; }
|
113
120
|
|
@@ -108,6 +108,13 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
108
108
|
content: ", ";
|
109
109
|
vertical-align: super; }
|
110
110
|
|
111
|
+
.addition {
|
112
|
+
color: blue; }
|
113
|
+
|
114
|
+
.deletion {
|
115
|
+
color: red;
|
116
|
+
text-decoration: line-through; }
|
117
|
+
|
111
118
|
#recommendation-band {
|
112
119
|
background-color: #a3d88f; }
|
113
120
|
|
@@ -338,6 +345,13 @@ a.FootnoteRef + a.FootnoteRef:before {
|
|
338
345
|
content: ", ";
|
339
346
|
vertical-align: super; }
|
340
347
|
|
348
|
+
.addition {
|
349
|
+
color: blue; }
|
350
|
+
|
351
|
+
.deletion {
|
352
|
+
color: red;
|
353
|
+
text-decoration: line-through; }
|
354
|
+
|
341
355
|
#recommendation-band {
|
342
356
|
background-color: #a3d88f; }
|
343
357
|
|
@@ -1158,13 +1172,6 @@ p {
|
|
1158
1172
|
margin-top: 1em;
|
1159
1173
|
margin-bottom: 1em; }
|
1160
1174
|
|
1161
|
-
.addition {
|
1162
|
-
color: blue; }
|
1163
|
-
|
1164
|
-
.deletion {
|
1165
|
-
color: red;
|
1166
|
-
text-decoration: line-through; }
|
1167
|
-
|
1168
1175
|
#myBtn {
|
1169
1176
|
font-family: {{monospacefont}};
|
1170
1177
|
font-variant-ligatures: none;
|
data/lib/isodoc/itu/html/itu.css
CHANGED
@@ -887,13 +887,6 @@ p.draftwarningHdr {
|
|
887
887
|
font-size: 16.0pt;
|
888
888
|
font-style: italic; }
|
889
889
|
|
890
|
-
span.addition {
|
891
|
-
color: blue; }
|
892
|
-
|
893
|
-
span.deletion {
|
894
|
-
color: red;
|
895
|
-
text-decoration: line-through; }
|
896
|
-
|
897
890
|
@page {
|
898
891
|
mso-page-border-surround-header: no;
|
899
892
|
mso-page-border-surround-footer: no;
|
@@ -849,13 +849,6 @@ font-weight:bold;
|
|
849
849
|
font-size:16.0pt;
|
850
850
|
font-style:italic;
|
851
851
|
}
|
852
|
-
span.addition {
|
853
|
-
color: blue;
|
854
|
-
}
|
855
|
-
span.deletion {
|
856
|
-
color: red;
|
857
|
-
text-decoration: line-through;
|
858
|
-
}
|
859
852
|
|
860
853
|
@page {
|
861
854
|
mso-page-border-surround-header:no;
|
@@ -0,0 +1,80 @@
|
|
1
|
+
termsdef: 定义
|
2
|
+
termsdefsymbolsabbrev: 定义
|
3
|
+
termsdefsymbols: 定义
|
4
|
+
termsdefabbrev: 定义
|
5
|
+
termnote: 注 %
|
6
|
+
normref: 规范性参考文献
|
7
|
+
symbolsabbrev: 缩略语与缩写
|
8
|
+
abbrev: 缩略语与缩写
|
9
|
+
symbols: 缩略语与缩写
|
10
|
+
conventions: 惯例
|
11
|
+
elsewhere_terms: >-
|
12
|
+
本建议书采用下列他处定义的术语:
|
13
|
+
here_terms: >-
|
14
|
+
本建议书定义下列术语:
|
15
|
+
norm_annex: (本附件不构成本%的不可或缺部分)
|
16
|
+
inform_annex: (本附件构成本%的组成部分)
|
17
|
+
formula: 方程式
|
18
|
+
inequality: 不等式
|
19
|
+
clause: 条款
|
20
|
+
section: 节
|
21
|
+
annex_subclause: 条款
|
22
|
+
in: in
|
23
|
+
to: to
|
24
|
+
where: 式中:
|
25
|
+
blankclause: This clause is intentionally left blank.
|
26
|
+
norm_with_refs_pref:
|
27
|
+
下列ITU-T建议书和其他参考文献的条款,通过在本建议书中的引用而构成本建议书的条款。在出版 时,所指出的版本是有效的。所有的建议书和其他参考文献都面临修订,使用本建议书的各方应探讨使用 下列建议书或其他参考文献最新版本的可能性。当前有效的ITU-T建议书清单定期出版。
|
28
|
+
internal_termsdef: 本建议书定义的术语
|
29
|
+
external_termsdef: 其他地方定义的术语
|
30
|
+
term_def_boilerplate: 本建议书定义下列术语:
|
31
|
+
internal_terms_boilerplate: 本建议书定义下列术语:
|
32
|
+
external_terms_boilerplate: 本建议书采用下列他处定义的术语:
|
33
|
+
no_terms_boilerplate: 没有。
|
34
|
+
symbols_boilerplate: 本建议书使用以下缩略语与缩写:
|
35
|
+
norm_empty_pref: 无
|
36
|
+
clause_empty: 无
|
37
|
+
amendment: 修正案
|
38
|
+
corrigendum: 勘误
|
39
|
+
table_of_contents: 目录
|
40
|
+
page: 页
|
41
|
+
placedate: "%, 日内瓦"
|
42
|
+
annex_to_itu_ob: 国际电联操作公报附件
|
43
|
+
number_abbrev: 第 % 期国际电联《操作公报》后附的清单
|
44
|
+
annex_to_itu_ob_abbrev: 国际电联操作公报附件 第 % 期
|
45
|
+
international_telecommunication_union: 国际电信联盟
|
46
|
+
position_on: (截至%)
|
47
|
+
revision_abbreviation: Rev.
|
48
|
+
tsb: TSB
|
49
|
+
br: BR
|
50
|
+
bdt: BDT
|
51
|
+
tsb_full: 国际电信联盟<br/>电信标准化局
|
52
|
+
br_full: 国际电信联盟<br/>电信发展部门
|
53
|
+
bdt_full: 国际电信联盟<br/>电信发展局
|
54
|
+
doctype_dict:
|
55
|
+
resolution: 决议
|
56
|
+
recommendation: 建议书
|
57
|
+
recommendation-supplement: 建议书——增补
|
58
|
+
recommendation-amendment: 建议书——修正
|
59
|
+
recommendation-corrigendum: 建议书——勘误
|
60
|
+
recommendation-errata: 建议书——勘误
|
61
|
+
recommendation-annex: 建议书——附件
|
62
|
+
focus-group: 焦点组
|
63
|
+
implementers-guide: 实施者指南
|
64
|
+
technical-paper: 技术论文
|
65
|
+
technical-report: 技术报告
|
66
|
+
joint-itu-iso-iec: ITU/ISO/IEC 联合出版
|
67
|
+
service-publication: 业务出版物
|
68
|
+
doctype_abbrev:
|
69
|
+
recommendation: Rec.
|
70
|
+
recommendation-supplement: Rec.
|
71
|
+
recommendation-amendment: Rec.
|
72
|
+
recommendation-corrigendum: Rec.
|
73
|
+
recommendation-errata: Rec.
|
74
|
+
recommendation-annex: Rec.
|
75
|
+
focus-group: FG
|
76
|
+
implementers-guide: Imp.
|
77
|
+
technical-paper: TP
|
78
|
+
technical-report: TR
|
79
|
+
joint-itu-iso-iec: ITU/ISO/IEC
|
80
|
+
service-publication:
|
data/lib/isodoc/itu/i18n.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
module IsoDoc
|
2
2
|
module ITU
|
3
3
|
class I18n < IsoDoc::I18n
|
4
|
-
|
4
|
+
def load_yaml1(lang, script)
|
5
5
|
y = if lang == "en"
|
6
6
|
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
|
7
|
+
elsif lang == "zh" && script == "Hans"
|
8
|
+
YAML.load_file(File.join(File.dirname(__FILE__),
|
9
|
+
"i18n-zh-Hans.yaml"))
|
7
10
|
else
|
8
11
|
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
|
9
12
|
end
|
@@ -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
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</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">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<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
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</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">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<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
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</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">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|