metanorma-gb 1.3.16 → 1.3.17
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/converter.rb +2 -1
- data/lib/asciidoctor/gb/section_input.rb +1 -40
- data/lib/isodoc/gb/gbbaseconvert.rb +2 -1
- data/lib/metanorma/gb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12d26f3652d331eb89eb5c545dc44ff9f1e6ef1133207e5d956a885ce265fe97
|
4
|
+
data.tar.gz: 4d3cbba1a209ac37ee19f30fd7ca58d2d3a0109473a9e1cac168508636f93065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63f65895d2b1c1953037139959c668cda40c5ad4b96253c5492c26fbecab5b781da9c058a4356a640e2257a2ea93c4646d5efddac6ff95d71f87c5ab6fc545bf
|
7
|
+
data.tar.gz: 66da605ead05aa52d0513ed4518109210fe7099abfc6f1210716f56fe371309c47bea9f5b46a6d645563663c82f7ed54ead3b69feb09630499a05e6a954be62e
|
@@ -237,10 +237,11 @@ module Asciidoctor
|
|
237
237
|
isodoc = boilerplate_isodoc(xmldoc)
|
238
238
|
initial_boilerplate(xmldoc, isodoc)
|
239
239
|
return if @keepboilerplate
|
240
|
-
|
240
|
+
xmldoc.xpath(self.class::TERM_CLAUSE).each do |f|
|
241
241
|
term_defs_boilerplate(f.at("./title"),
|
242
242
|
xmldoc.xpath(".//termdocsource"),
|
243
243
|
f.at(".//term"), f.at(".//p"), isodoc)
|
244
|
+
end
|
244
245
|
f = xmldoc.at(self.class::NORM_REF) and
|
245
246
|
norm_ref_preface(f)
|
246
247
|
end
|
@@ -33,6 +33,7 @@ module Asciidoctor
|
|
33
33
|
"terms and definitions"
|
34
34
|
when "符号、代号和缩略语" then "symbols and abbreviated terms"
|
35
35
|
when "参考文献" then "bibliography"
|
36
|
+
when "致谢" then "acknowledgements"
|
36
37
|
else
|
37
38
|
super
|
38
39
|
end
|
@@ -42,46 +43,6 @@ module Asciidoctor
|
|
42
43
|
clause_parse(attrs, xml, node)
|
43
44
|
end
|
44
45
|
|
45
|
-
=begin
|
46
|
-
def section(node)
|
47
|
-
a = section_attributes(node)
|
48
|
-
noko do |xml|
|
49
|
-
case sectiontype(node)
|
50
|
-
when "引言", "introduction" then introduction_parse(a, xml, node)
|
51
|
-
when "patent notice" then patent_notice_parse(xml, node)
|
52
|
-
when "范围", "scope" then scope_parse(a, xml, node)
|
53
|
-
when "规范性引用文件", "normative references"
|
54
|
-
norm_ref_parse(a, xml, node)
|
55
|
-
when "术语和定义", "terms and definitions",
|
56
|
-
"术语、定义、符号、代号和缩略语",
|
57
|
-
"terms, definitions, symbols and abbreviated terms",
|
58
|
-
"terms, definitions, symbols and abbreviations",
|
59
|
-
"terms, definitions and symbols",
|
60
|
-
"terms, definitions and abbreviations",
|
61
|
-
"terms, definitions and abbreviated terms"
|
62
|
-
@term_def = true
|
63
|
-
term_def_parse(a, xml, node, true)
|
64
|
-
@term_def = false
|
65
|
-
when "符号、代号和缩略语", "symbols and abbreviated terms",
|
66
|
-
"abbreviated terms", "abbreviations", "symbols"
|
67
|
-
symbols_parse(a, xml, node)
|
68
|
-
when "参考文献", "bibliography"
|
69
|
-
bibliography_parse(a, xml, node)
|
70
|
-
else
|
71
|
-
if @term_def then term_def_subclause_parse(a, xml, node)
|
72
|
-
elsif @biblio then bibliography_parse(a, xml, node)
|
73
|
-
elsif node.attr("style") == "bibliography"
|
74
|
-
bibliography_parse(a, xml, node)
|
75
|
-
elsif node.attr("style") == "appendix" && node.level == 1
|
76
|
-
annex_parse(a, xml, node)
|
77
|
-
else
|
78
|
-
clause_parse(a, xml, node)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end.join("\n")
|
82
|
-
end
|
83
|
-
=end
|
84
|
-
|
85
46
|
=begin
|
86
47
|
# spec of permissible section sequence
|
87
48
|
SEQ = [
|
data/lib/metanorma/gb/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.17
|
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-02-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|