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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d7249dc6de3238469a43aacba0f948f627724f3741a06bdd7d68c1a4d0e04a6
4
- data.tar.gz: c6b8a1441579a1a3130e304b8388d0ca9924c3368ae987da49f46ac6496cda82
3
+ metadata.gz: 12d26f3652d331eb89eb5c545dc44ff9f1e6ef1133207e5d956a885ce265fe97
4
+ data.tar.gz: 4d3cbba1a209ac37ee19f30fd7ca58d2d3a0109473a9e1cac168508636f93065
5
5
  SHA512:
6
- metadata.gz: 997a008d8ba5dd0eb3c5a7be5a5058f6ee51d6d6c8787cf989911536d72a9a03a2e94c2d75f2ae0be7c159cdbbec95537c426f8674d6d4d4c960ef4a2997c794
7
- data.tar.gz: ccec18189310fc771252d6ff176014839ea9974de5a290686aefbddea45cb3562445692939c17318421cfd09345080a521f0dff170715cfa7c82a0a7a8261123
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
- f = xmldoc.at(self.class::TERM_CLAUSE) and
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 = [
@@ -203,7 +203,8 @@ module IsoDoc
203
203
  h1 << "#{num}."
204
204
  h1 << "&#x3000;"
205
205
  end
206
- h1 << title
206
+ title.is_a?(String) ? h1 << title :
207
+ title&.children&.each { |c2| parse(c2, h1) }
207
208
  end
208
209
  div.parent.at(".//h1")
209
210
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.3.16"
3
+ VERSION = "1.3.17"
4
4
  end
5
5
  end
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.16
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-17 00:00:00.000000000 Z
11
+ date: 2020-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso