metanorma-gb 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.hound.yml +3 -0
  4. data/.oss-guides.rubocop.yml +1077 -0
  5. data/.rubocop.ribose.yml +65 -0
  6. data/.rubocop.tb.yml +650 -0
  7. data/.rubocop.yml +15 -0
  8. data/.travis.yml +15 -0
  9. data/CODE_OF_CONDUCT.md +74 -0
  10. data/Gemfile +9 -0
  11. data/LICENSE +25 -0
  12. data/README.adoc +369 -0
  13. data/Rakefile +6 -0
  14. data/asciidoctor-gb.gemspec.old +47 -0
  15. data/bin/console +14 -0
  16. data/bin/rspec +18 -0
  17. data/bin/setup +8 -0
  18. data/lib/asciidoctor-gb.rb +11 -0
  19. data/lib/asciidoctor/gb.rb +7 -0
  20. data/lib/asciidoctor/gb/biblio.rng +836 -0
  21. data/lib/asciidoctor/gb/converter.rb +224 -0
  22. data/lib/asciidoctor/gb/front.rb +228 -0
  23. data/lib/asciidoctor/gb/gbstandard.rng +409 -0
  24. data/lib/asciidoctor/gb/html/blank.png +0 -0
  25. data/lib/asciidoctor/gb/html/footer.png +0 -0
  26. data/lib/asciidoctor/gb/html/gb-logos/gb-issuer-default.png +0 -0
  27. data/lib/asciidoctor/gb/html/gb-logos/gb-issuer-default.svg +980 -0
  28. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-db.gif +0 -0
  29. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-db.png +0 -0
  30. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-db.svg +1 -0
  31. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.gif +0 -0
  32. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.png +0 -0
  33. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.svg +1 -0
  34. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.gif +0 -0
  35. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.png +0 -0
  36. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.svg +1 -0
  37. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.gif +0 -0
  38. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.png +0 -0
  39. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.svg +1 -0
  40. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.gif +0 -0
  41. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.png +0 -0
  42. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.svg +1 -0
  43. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.gif +0 -0
  44. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.png +0 -0
  45. data/lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.svg +13 -0
  46. data/lib/asciidoctor/gb/html/gb.scss +556 -0
  47. data/lib/asciidoctor/gb/html/header.html +216 -0
  48. data/lib/asciidoctor/gb/html/html_gb_intro.html +9 -0
  49. data/lib/asciidoctor/gb/html/html_gb_titlepage.html +99 -0
  50. data/lib/asciidoctor/gb/html/htmlstyle.scss +269 -0
  51. data/lib/asciidoctor/gb/html/logo.png +0 -0
  52. data/lib/asciidoctor/gb/html/word_gb_intro.html +3 -0
  53. data/lib/asciidoctor/gb/html/word_gb_titlepage.html +388 -0
  54. data/lib/asciidoctor/gb/html/wordstyle.scss +2543 -0
  55. data/lib/asciidoctor/gb/isodoc.rng +1059 -0
  56. data/lib/asciidoctor/gb/isostandard.rng +1001 -0
  57. data/lib/asciidoctor/gb/section_input.rb +150 -0
  58. data/lib/asciidoctor/gb/validate.rb +115 -0
  59. data/lib/asciidoctor/gb/version.rb +5 -0
  60. data/lib/isodoc/gb/gbcleanup.rb +90 -0
  61. data/lib/isodoc/gb/gbconvert.rb +66 -0
  62. data/lib/isodoc/gb/gbhtmlconvert.rb +84 -0
  63. data/lib/isodoc/gb/gbhtmlrender.rb +208 -0
  64. data/lib/isodoc/gb/gbwordconvert.rb +136 -0
  65. data/lib/isodoc/gb/gbwordrender.rb +206 -0
  66. data/lib/isodoc/gb/html/blank.png +0 -0
  67. data/lib/isodoc/gb/html/footer.png +0 -0
  68. data/lib/isodoc/gb/html/gb-logos/gb-issuer-default.png +0 -0
  69. data/lib/isodoc/gb/html/gb-logos/gb-issuer-default.svg +980 -0
  70. data/lib/isodoc/gb/html/gb-logos/gb-standard-db.gif +0 -0
  71. data/lib/isodoc/gb/html/gb-logos/gb-standard-db.png +0 -0
  72. data/lib/isodoc/gb/html/gb-logos/gb-standard-db.svg +1 -0
  73. data/lib/isodoc/gb/html/gb-logos/gb-standard-gb.gif +0 -0
  74. data/lib/isodoc/gb/html/gb-logos/gb-standard-gb.png +0 -0
  75. data/lib/isodoc/gb/html/gb-logos/gb-standard-gb.svg +1 -0
  76. data/lib/isodoc/gb/html/gb-logos/gb-standard-gjb.gif +0 -0
  77. data/lib/isodoc/gb/html/gb-logos/gb-standard-gjb.png +0 -0
  78. data/lib/isodoc/gb/html/gb-logos/gb-standard-gjb.svg +1 -0
  79. data/lib/isodoc/gb/html/gb-logos/gb-standard-gm.gif +0 -0
  80. data/lib/isodoc/gb/html/gb-logos/gb-standard-gm.png +0 -0
  81. data/lib/isodoc/gb/html/gb-logos/gb-standard-gm.svg +1 -0
  82. data/lib/isodoc/gb/html/gb-logos/gb-standard-jjf.gif +0 -0
  83. data/lib/isodoc/gb/html/gb-logos/gb-standard-jjf.png +0 -0
  84. data/lib/isodoc/gb/html/gb-logos/gb-standard-jjf.svg +1 -0
  85. data/lib/isodoc/gb/html/gb-logos/gb-standard-zb.gif +0 -0
  86. data/lib/isodoc/gb/html/gb-logos/gb-standard-zb.png +0 -0
  87. data/lib/isodoc/gb/html/gb-logos/gb-standard-zb.svg +13 -0
  88. data/lib/isodoc/gb/html/gb.scss +556 -0
  89. data/lib/isodoc/gb/html/header.html +216 -0
  90. data/lib/isodoc/gb/html/html_compliant_gb_titlepage.html +116 -0
  91. data/lib/isodoc/gb/html/html_gb_intro.html +6 -0
  92. data/lib/isodoc/gb/html/html_gb_titlepage.html +94 -0
  93. data/lib/isodoc/gb/html/htmlcompliantstyle.scss +1220 -0
  94. data/lib/isodoc/gb/html/htmlstyle.scss +1007 -0
  95. data/lib/isodoc/gb/html/logo.png +0 -0
  96. data/lib/isodoc/gb/html/scripts.html +71 -0
  97. data/lib/isodoc/gb/html/word_gb_intro.html +3 -0
  98. data/lib/isodoc/gb/html/word_gb_titlepage.html +388 -0
  99. data/lib/isodoc/gb/html/wordstyle.scss +2543 -0
  100. data/lib/isodoc/gb/i18n-en.yaml +12 -0
  101. data/lib/isodoc/gb/i18n-zh-Hans.yaml +12 -0
  102. data/lib/isodoc/gb/metadata.rb +232 -0
  103. data/lib/metanorma/gb.rb +7 -0
  104. data/lib/metanorma/gb/processor.rb +43 -0
  105. data/metanorma-gb.gemspec +48 -0
  106. metadata +380 -0
@@ -0,0 +1,12 @@
1
+ publicationdate_lbl: Issuance Date
2
+ implementationdate_lbl: Implementation Date
3
+ supercedes_lbl: Supercedes
4
+ partly_supercedes_lbl: Partly Supercedes
5
+ patent_request: When submitting feedback, please attach any relevant patents that you are aware of, together with supporting documents.
6
+ completion_date: 'Completion date for this manuscript: '
7
+ PRC: "People's Republic of China "
8
+ industry_standard: " Industry Standard"
9
+ local_standard: " Local Standard"
10
+ local_issuer: " Quality and Technical Inspection Bureau"
11
+ enterprise_standard: " Enterprise Standard"
12
+ social_standard: Social Standard
@@ -0,0 +1,12 @@
1
+ publicationdate_lbl: 发布
2
+ implementationdate_lbl: 实施
3
+ supercedes_lbl: 代替
4
+ partly_supercedes_lbl: 部分代替
5
+ patent_request: 在提交反馈意见时,请将您知道的相关专利连同支持文件一并附上。
6
+ completion_date: 本稿完成日期:
7
+ PRC: 中华人民共和国
8
+ industry_standard: 行业标准
9
+ local_standard: 地方标准
10
+ local_issuer: 质量技术检测局
11
+ enterprise_standard: 企业标准
12
+ social_standard: 团体标准
@@ -0,0 +1,232 @@
1
+ require "isodoc"
2
+ require "twitter_cldr"
3
+
4
+ module IsoDoc
5
+ module Gb
6
+ # A {Converter} implementation that generates GB output, and a document
7
+ # schema encapsulation of the document for validation
8
+ class Metadata < IsoDoc::Metadata
9
+ def initialize(lang, script, labels)
10
+ super
11
+ set(:docmaintitlezh, "")
12
+ set(:docsubtitlezh, "XXXX")
13
+ set(:docparttitlezh, "")
14
+ set(:docmaintitleen, "")
15
+ set(:docsubtitleen, "XXXX")
16
+ set(:docparttitleen, "")
17
+ set(:gbequivalence, "")
18
+ set(:isostandard, nil)
19
+ set(:isostandardtitle, "")
20
+ set(:doctitle, "XXXX")
21
+ set(:obsoletes, nil)
22
+ set(:obsoletes_part, nil)
23
+ end
24
+
25
+ def title(isoxml, _out)
26
+ intro = isoxml.at(ns("//title-intro[@language='zh']"))
27
+ main = isoxml.at(ns("//title-main[@language='zh']"))
28
+ part = isoxml.at(ns("//title-part[@language='zh']"))
29
+ partnumber = isoxml.at(ns("//project-number/@part"))
30
+ intro.nil? || set(:docmaintitlezh, intro.text + "&nbsp;")
31
+ main.nil? || set(:docsubtitlezh, main.text)
32
+ partnum = partnumber ? "#{part_label(partnumber, 'zh')}:" : ""
33
+ part.nil? || set(:docparttitlezh,
34
+ "&nbsp;#{partnum}#{part.text}")
35
+ end
36
+
37
+ def set_doctitle
38
+ if @lang == "zh"
39
+ set(:doctitle, get[:docmaintitlezh] +
40
+ get[:docsubtitlezh] + get[:docparttitlezh])
41
+ else
42
+ set(:doctitle, get[:docmaintitleen] +
43
+ get[:docsubtitleen] + get[:docparttitleen])
44
+ end
45
+ end
46
+
47
+ def subtitle(isoxml, _out)
48
+ intro = isoxml.at(ns("//title-intro[@language='en']"))
49
+ main = isoxml.at(ns("//title-main[@language='en']"))
50
+ part = isoxml.at(ns("//title-part[@language='en']"))
51
+ partnumber = isoxml.at(ns("//project-number/@part"))
52
+ intro.nil? || set(:docmaintitleen, intro.text + "&mdash;")
53
+ main.nil? || set(:docsubtitleen, main.text)
54
+ partnum = partnumber ? "#{part_label(partnumber, 'en')}: " : ""
55
+ part.nil? || set(:docparttitleen,
56
+ "&mdash;#{partnum} #{part.text}")
57
+ set_doctitle
58
+ end
59
+
60
+ def author(isoxml, _out)
61
+ gbcommittee = isoxml.at(ns("//bibdata/gbcommittee"))
62
+ set(:committee, gbcommittee&.text)
63
+ end
64
+
65
+ # from ISO
66
+ STAGE_ABBRS = {
67
+ "00": "PWI",
68
+ "10": "NWIP",
69
+ "20": "WD",
70
+ "30": "CD",
71
+ "40": "DIS",
72
+ "50": "FDIS",
73
+ "60": "IS",
74
+ "90": "(Review)",
75
+ "95": "(Withdrawal)",
76
+ }.freeze
77
+
78
+ STAGE_ABBRS_CN = {
79
+ "00": "新工作项目建议",
80
+ "10": "新工作项目",
81
+ "20": "标准草案工作组讨论稿",
82
+ "30": "标准草案征求意见稿",
83
+ "40": "标准草案送审稿",
84
+ "50": "标准草案报批稿",
85
+ "60": "国家标准",
86
+ "90": "(Review)",
87
+ "95": "(Withdrawal)",
88
+ }.freeze
89
+
90
+ STATUS_CSS = {
91
+ "00": "working-draft",
92
+ "10": "working-draft",
93
+ "20": "working-draft",
94
+ "30": "committee-draft",
95
+ "40": "draft-standard",
96
+ "50": "draft-standard",
97
+ "60": "standard",
98
+ "90": "standard",
99
+ "95": "obsolete",
100
+ }
101
+
102
+ def stage_abbrev(stage, iter, draft)
103
+ stage = STAGE_ABBRS[stage.to_sym] || "??"
104
+ stage += iter.text if iter
105
+ stage = "Pre" + stage if draft&.text =~ /^0\./
106
+ stage
107
+ end
108
+
109
+ def stage_abbrev_cn(stage, iter, draft)
110
+ return stage_abbrev(stage, iter, draft) if @lang != "zh"
111
+ stage = STAGE_ABBRS_CN[stage.to_sym] || "??"
112
+ stage = "#{iter.text.to_i.localize(:zh).spellout}次#{stage}" if iter
113
+ stage = "Pre" + stage if draft&.text =~ /^0\./
114
+ stage
115
+ end
116
+
117
+ def docstatus(isoxml, _out)
118
+ docstatus = isoxml.at(ns("//status/stage"))
119
+ if docstatus
120
+ set(:stage, docstatus.text.to_i)
121
+ abbr = stage_abbrev_cn(docstatus.text, isoxml.at(ns("//status/iteration")),
122
+ isoxml.at(ns("//version/draft")))
123
+ set(:stageabbr, abbr)
124
+ set(:status, STATUS_CSS[docstatus.text.to_sym])
125
+ end
126
+ end
127
+
128
+ def docid1(isoxml, _out)
129
+ dn = docnumber(isoxml)
130
+ docstatus = get[:stage]
131
+ if docstatus
132
+ abbr = stage_abbrev(docstatus.to_s, isoxml.at(ns("//status/iteration")),
133
+ isoxml.at(ns("//version/draft")))
134
+ (docstatus.to_i < 60) && dn = abbr + " " + dn
135
+ end
136
+ set(:docnumber, dn)
137
+ end
138
+
139
+ def docid(isoxml, _out)
140
+ docid1(isoxml, _out)
141
+ gb_identifier(isoxml)
142
+ gb_library_identifier(isoxml)
143
+ gb_equivalence(isoxml)
144
+ end
145
+
146
+ ISO_STD_XPATH = "//bibdata/relation[@type = 'equivalent' or "\
147
+ "@type = 'identical' or @type = 'nonequivalent']/bibitem".freeze
148
+
149
+ def gb_equivalence(isoxml)
150
+ isostdid = isoxml.at(ns("#{ISO_STD_XPATH}/docidentifier")) || return
151
+ set(:isostandard, isostdid.text)
152
+ isostdtitle = isoxml.at(ns("#{ISO_STD_XPATH}/title"))
153
+ set(:isostandardtitle, isostdtitle.text) if isostdtitle
154
+ eq = isoxml.at(ns("//bibdata/relation/@type"))
155
+ case eq.text
156
+ when "equivalent" then set(:gbequivalence, "MOD")
157
+ when "nonequivalent" then set(:gbequivalence, "NEQ")
158
+ when "identical" then set(:gbequivalence, "IDT")
159
+ end
160
+ end
161
+
162
+ def gb_identifier(isoxml)
163
+ scope = isoxml.at(ns("//gbscope"))&.text || "national"
164
+ mandate = isoxml.at(ns("//gbmandate"))&.text || "mandatory"
165
+ prefix = isoxml.at(ns("//gbprefix"))&.text || "XXX"
166
+ docyear = isoxml&.at(ns("//copyright/from"))&.text
167
+ issuer = isoxml&.at(ns("//bibdata/contributor[role/@type = 'issuer']/"\
168
+ "organization/name"))&.text || "GB"
169
+ @agencies = GbAgencies::Agencies.new(@lang, @labels, issuer)
170
+ #set(:docidentifier, @agencies.docidentifier(scope, prefix, mandate, docyear, get[:docnumber]))
171
+ set(:docidentifier, @agencies.docidentifier(nil, nil, nil, docyear, get[:docnumber]))
172
+ set(:issuer, issuer)
173
+ set(:standard_class, @agencies.standard_class(scope, prefix, mandate))
174
+ set(:standard_agency, @agencies.standard_agency(scope, prefix, mandate))
175
+ if scope == "local"
176
+ set(:gbprefix, "DB")
177
+ set(:gblocalcode, prefix)
178
+ else
179
+ set(:gbprefix, prefix)
180
+ end
181
+ set(:gbscope, scope)
182
+ end
183
+
184
+ def standard_logo(gbprefix)
185
+ return nil unless gbprefix
186
+ case gbprefix.downcase
187
+ when "db" then "gb-standard-db"
188
+ when "gb" then "gb-standard-gb"
189
+ when "gjb" then "gb-standard-gjb"
190
+ when "gm" then "gb-standard-gm"
191
+ when "jjf" then "gb-standard-jjf"
192
+ when "zb" then "gb-standard-zb"
193
+ end
194
+ end
195
+
196
+ def gb_library_identifier(isoxml)
197
+ ics = []
198
+ ccs = []
199
+ isoxml.xpath(ns("//bibdata/ics/code")).each { |i| ics << i.text }
200
+ isoxml.xpath(ns("//bibdata/ccs")).each { |i| ccs << i.text }
201
+ p = isoxml.at(ns("//bibdata/plannumber"))
202
+ set(:libraryid_ics, ics.empty? ? "XXX" : ics.join(", "))
203
+ set(:libraryid_ccs, ccs.empty? ? "XXX" : ccs.join(", "))
204
+ set(:libraryid_plan, p ? p.text : "XXX")
205
+ end
206
+
207
+ def part_label(partnumber, lang)
208
+ case lang
209
+ when "en" then "Part #{partnumber}"
210
+ when "zh" then "第#{partnumber}部分"
211
+ end
212
+ end
213
+
214
+ def bibdate(isoxml, _out)
215
+ super
216
+ m = get
217
+ if @lang == "zh"
218
+ set(:labelled_publisheddate, m[:publisheddate] + " " +
219
+ @labels["publicationdate_lbl"])
220
+ set(:labelled_implementeddate, m[:implementeddate] + " " +
221
+ @labels["implementationdate_lbl"])
222
+ else
223
+ set(:labelled_publisheddate, @labels["publicationdate_lbl"] +
224
+ ": " + m[:publisheddate])
225
+ set(:labelled_implementeddate,
226
+ @labels["implementationdate_lbl"] + ": " +
227
+ m[:implementeddate])
228
+ end
229
+ end
230
+ end
231
+ end
232
+ end
@@ -0,0 +1,7 @@
1
+ require_relative "./gb/processor"
2
+
3
+ module Metanorma
4
+ module Gb
5
+
6
+ end
7
+ end
@@ -0,0 +1,43 @@
1
+ require "metanorma/processor"
2
+
3
+ module Metanorma
4
+ module Gb
5
+ class Processor < Metanorma::Processor
6
+
7
+ def initialize
8
+ @short = :gb
9
+ @input_format = :asciidoc
10
+ @asciidoctor_backend = :gb
11
+ end
12
+
13
+ def output_formats
14
+ super.merge(
15
+ html: "html",
16
+ compliant_html: "compliant.html",
17
+ doc: "doc"
18
+ )
19
+ end
20
+
21
+ def version
22
+ "Asciidoctor::Gb #{Asciidoctor::Gb::VERSION}"
23
+ end
24
+
25
+ def input_to_isodoc(file)
26
+ Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend)
27
+ end
28
+
29
+ def output(isodoc_node, outname, format, options={})
30
+ case format
31
+ when :html
32
+ IsoDoc::Gb::HtmlConvert.new(options).convert(outname, isodoc_node)
33
+ when :compliant_html
34
+ IsoDoc::Gb::HtmlConvert.new(options.merge(compliant: true)).convert(outname, isodoc_node)
35
+ when :doc
36
+ IsoDoc::Gb::WordConvert.new(options).convert(outname, isodoc_node)
37
+ else
38
+ super
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,48 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "asciidoctor/gb/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "metanorma-gb"
7
+ spec.version = Asciidoctor::Gb::VERSION
8
+ spec.authors = ["Ribose Inc."]
9
+ spec.email = ["open.source@ribose.com"]
10
+
11
+ spec.summary = "metanorma-gb lets you write GB standards in AsciiDoc."
12
+ spec.description = <<~DESCRIPTION
13
+ metanorma-gb lets you write GB standards (Chinese national standards)
14
+ in AsciiDoc syntax.
15
+
16
+ This gem is in active development.
17
+
18
+ Formerly known as asciidoctor-gb.
19
+ DESCRIPTION
20
+
21
+ spec.homepage = "https://github.com/riboseinc/metanorma-gb"
22
+ spec.license = "BSD-2-Clause"
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(%r{^(test|spec|features)/})
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency "metanorma-iso", "~> 1.0.0"
32
+ spec.add_dependency "gbbib", "~> 0.2.2"
33
+ spec.add_dependency "isodoc", "~> 0.8.8"
34
+ spec.add_dependency "twitter_cldr"
35
+ spec.add_dependency "gb-agencies", "~> 0.0.1"
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.15"
38
+ spec.add_development_dependency "byebug", "~> 9.1"
39
+ spec.add_development_dependency "equivalent-xml", "~> 0.6"
40
+ spec.add_development_dependency "guard", "~> 2.14"
41
+ spec.add_development_dependency "guard-rspec", "~> 4.7"
42
+ spec.add_development_dependency "rake", "~> 12.0"
43
+ spec.add_development_dependency "rspec", "~> 3.6"
44
+ spec.add_development_dependency "rubocop", "~> 0.50"
45
+ spec.add_development_dependency "simplecov", "~> 0.15"
46
+ spec.add_development_dependency "timecop", "~> 0.9"
47
+ spec.add_development_dependency "metanorma"
48
+ end
metadata ADDED
@@ -0,0 +1,380 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metanorma-gb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ribose Inc.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: metanorma-iso
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: gbbib
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: isodoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.8
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.8
55
+ - !ruby/object:Gem::Dependency
56
+ name: twitter_cldr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: gb-agencies
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.15'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.15'
97
+ - !ruby/object:Gem::Dependency
98
+ name: byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '9.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '9.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: equivalent-xml
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.6'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.14'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.14'
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '4.7'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '4.7'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '12.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '12.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.6'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '3.6'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.50'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.50'
195
+ - !ruby/object:Gem::Dependency
196
+ name: simplecov
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '0.15'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '0.15'
209
+ - !ruby/object:Gem::Dependency
210
+ name: timecop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '0.9'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '0.9'
223
+ - !ruby/object:Gem::Dependency
224
+ name: metanorma
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ description: |
238
+ metanorma-gb lets you write GB standards (Chinese national standards)
239
+ in AsciiDoc syntax.
240
+
241
+ This gem is in active development.
242
+
243
+ Formerly known as asciidoctor-gb.
244
+ email:
245
+ - open.source@ribose.com
246
+ executables: []
247
+ extensions: []
248
+ extra_rdoc_files: []
249
+ files:
250
+ - ".gitignore"
251
+ - ".hound.yml"
252
+ - ".oss-guides.rubocop.yml"
253
+ - ".rubocop.ribose.yml"
254
+ - ".rubocop.tb.yml"
255
+ - ".rubocop.yml"
256
+ - ".travis.yml"
257
+ - CODE_OF_CONDUCT.md
258
+ - Gemfile
259
+ - LICENSE
260
+ - README.adoc
261
+ - Rakefile
262
+ - asciidoctor-gb.gemspec.old
263
+ - bin/console
264
+ - bin/rspec
265
+ - bin/setup
266
+ - lib/asciidoctor-gb.rb
267
+ - lib/asciidoctor/gb.rb
268
+ - lib/asciidoctor/gb/biblio.rng
269
+ - lib/asciidoctor/gb/converter.rb
270
+ - lib/asciidoctor/gb/front.rb
271
+ - lib/asciidoctor/gb/gbstandard.rng
272
+ - lib/asciidoctor/gb/html/blank.png
273
+ - lib/asciidoctor/gb/html/footer.png
274
+ - lib/asciidoctor/gb/html/gb-logos/gb-issuer-default.gif
275
+ - lib/asciidoctor/gb/html/gb-logos/gb-issuer-default.png
276
+ - lib/asciidoctor/gb/html/gb-logos/gb-issuer-default.svg
277
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-db.gif
278
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-db.png
279
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-db.svg
280
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.gif
281
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.png
282
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gb.svg
283
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.gif
284
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.png
285
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gjb.svg
286
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.gif
287
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.png
288
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-gm.svg
289
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.gif
290
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.png
291
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-jjf.svg
292
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.gif
293
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.png
294
+ - lib/asciidoctor/gb/html/gb-logos/gb-standard-zb.svg
295
+ - lib/asciidoctor/gb/html/gb.scss
296
+ - lib/asciidoctor/gb/html/header.html
297
+ - lib/asciidoctor/gb/html/html_gb_intro.html
298
+ - lib/asciidoctor/gb/html/html_gb_titlepage.html
299
+ - lib/asciidoctor/gb/html/htmlstyle.scss
300
+ - lib/asciidoctor/gb/html/logo.png
301
+ - lib/asciidoctor/gb/html/word_gb_intro.html
302
+ - lib/asciidoctor/gb/html/word_gb_titlepage.html
303
+ - lib/asciidoctor/gb/html/wordstyle.scss
304
+ - lib/asciidoctor/gb/isodoc.rng
305
+ - lib/asciidoctor/gb/isostandard.rng
306
+ - lib/asciidoctor/gb/section_input.rb
307
+ - lib/asciidoctor/gb/validate.rb
308
+ - lib/asciidoctor/gb/version.rb
309
+ - lib/isodoc/gb/gbcleanup.rb
310
+ - lib/isodoc/gb/gbconvert.rb
311
+ - lib/isodoc/gb/gbhtmlconvert.rb
312
+ - lib/isodoc/gb/gbhtmlrender.rb
313
+ - lib/isodoc/gb/gbwordconvert.rb
314
+ - lib/isodoc/gb/gbwordrender.rb
315
+ - lib/isodoc/gb/html/blank.png
316
+ - lib/isodoc/gb/html/footer.png
317
+ - lib/isodoc/gb/html/gb-logos/gb-issuer-default.gif
318
+ - lib/isodoc/gb/html/gb-logos/gb-issuer-default.png
319
+ - lib/isodoc/gb/html/gb-logos/gb-issuer-default.svg
320
+ - lib/isodoc/gb/html/gb-logos/gb-standard-db.gif
321
+ - lib/isodoc/gb/html/gb-logos/gb-standard-db.png
322
+ - lib/isodoc/gb/html/gb-logos/gb-standard-db.svg
323
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gb.gif
324
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gb.png
325
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gb.svg
326
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gjb.gif
327
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gjb.png
328
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gjb.svg
329
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gm.gif
330
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gm.png
331
+ - lib/isodoc/gb/html/gb-logos/gb-standard-gm.svg
332
+ - lib/isodoc/gb/html/gb-logos/gb-standard-jjf.gif
333
+ - lib/isodoc/gb/html/gb-logos/gb-standard-jjf.png
334
+ - lib/isodoc/gb/html/gb-logos/gb-standard-jjf.svg
335
+ - lib/isodoc/gb/html/gb-logos/gb-standard-zb.gif
336
+ - lib/isodoc/gb/html/gb-logos/gb-standard-zb.png
337
+ - lib/isodoc/gb/html/gb-logos/gb-standard-zb.svg
338
+ - lib/isodoc/gb/html/gb.scss
339
+ - lib/isodoc/gb/html/header.html
340
+ - lib/isodoc/gb/html/html_compliant_gb_titlepage.html
341
+ - lib/isodoc/gb/html/html_gb_intro.html
342
+ - lib/isodoc/gb/html/html_gb_titlepage.html
343
+ - lib/isodoc/gb/html/htmlcompliantstyle.scss
344
+ - lib/isodoc/gb/html/htmlstyle.scss
345
+ - lib/isodoc/gb/html/logo.png
346
+ - lib/isodoc/gb/html/scripts.html
347
+ - lib/isodoc/gb/html/word_gb_intro.html
348
+ - lib/isodoc/gb/html/word_gb_titlepage.html
349
+ - lib/isodoc/gb/html/wordstyle.scss
350
+ - lib/isodoc/gb/i18n-en.yaml
351
+ - lib/isodoc/gb/i18n-zh-Hans.yaml
352
+ - lib/isodoc/gb/metadata.rb
353
+ - lib/metanorma/gb.rb
354
+ - lib/metanorma/gb/processor.rb
355
+ - metanorma-gb.gemspec
356
+ homepage: https://github.com/riboseinc/metanorma-gb
357
+ licenses:
358
+ - BSD-2-Clause
359
+ metadata: {}
360
+ post_install_message:
361
+ rdoc_options: []
362
+ require_paths:
363
+ - lib
364
+ required_ruby_version: !ruby/object:Gem::Requirement
365
+ requirements:
366
+ - - ">="
367
+ - !ruby/object:Gem::Version
368
+ version: '0'
369
+ required_rubygems_version: !ruby/object:Gem::Requirement
370
+ requirements:
371
+ - - ">="
372
+ - !ruby/object:Gem::Version
373
+ version: '0'
374
+ requirements: []
375
+ rubyforge_project:
376
+ rubygems_version: 2.7.6
377
+ signing_key:
378
+ specification_version: 4
379
+ summary: metanorma-gb lets you write GB standards in AsciiDoc.
380
+ test_files: []