metanorma-plateau 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,210 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
+ <!--
4
+ Presupposes isodoc.rnc, is included in it
5
+ include "isodoc.rnc" { }
6
+ -->
7
+ <define name="requirement">
8
+ <element name="requirement">
9
+ <ref name="RequirementType"/>
10
+ </element>
11
+ </define>
12
+ <define name="recommendation">
13
+ <element name="recommendation">
14
+ <ref name="RequirementType"/>
15
+ </element>
16
+ </define>
17
+ <define name="permission">
18
+ <element name="permission">
19
+ <ref name="RequirementType"/>
20
+ </element>
21
+ </define>
22
+ <define name="RequirementType">
23
+ <optional>
24
+ <attribute name="obligation">
25
+ <ref name="ObligationType"/>
26
+ </attribute>
27
+ </optional>
28
+ <optional>
29
+ <attribute name="unnumbered">
30
+ <data type="boolean"/>
31
+ </attribute>
32
+ </optional>
33
+ <optional>
34
+ <attribute name="number"/>
35
+ </optional>
36
+ <optional>
37
+ <attribute name="subsequence"/>
38
+ </optional>
39
+ <optional>
40
+ <attribute name="keep-with-next">
41
+ <data type="boolean"/>
42
+ </attribute>
43
+ </optional>
44
+ <optional>
45
+ <attribute name="keep-lines-together">
46
+ <data type="boolean"/>
47
+ </attribute>
48
+ </optional>
49
+ <attribute name="id">
50
+ <data type="ID"/>
51
+ </attribute>
52
+ <optional>
53
+ <attribute name="filename"/>
54
+ </optional>
55
+ <optional>
56
+ <attribute name="model"/>
57
+ </optional>
58
+ <optional>
59
+ <attribute name="type"/>
60
+ </optional>
61
+ <optional>
62
+ <attribute name="tag"/>
63
+ </optional>
64
+ <optional>
65
+ <attribute name="multilingual-rendering">
66
+ <ref name="MultilingualRenderingType"/>
67
+ </attribute>
68
+ </optional>
69
+ <optional>
70
+ <ref name="reqtitle"/>
71
+ </optional>
72
+ <optional>
73
+ <ref name="label"/>
74
+ </optional>
75
+ <zeroOrMore>
76
+ <ref name="subject"/>
77
+ </zeroOrMore>
78
+ <zeroOrMore>
79
+ <ref name="reqinherit"/>
80
+ </zeroOrMore>
81
+ <zeroOrMore>
82
+ <ref name="classification"/>
83
+ </zeroOrMore>
84
+ <zeroOrMore>
85
+ <choice>
86
+ <ref name="measurementtarget"/>
87
+ <ref name="specification"/>
88
+ <ref name="verification"/>
89
+ <ref name="import"/>
90
+ <ref name="description"/>
91
+ <ref name="component"/>
92
+ </choice>
93
+ </zeroOrMore>
94
+ <optional>
95
+ <ref name="reqt_references"/>
96
+ </optional>
97
+ <zeroOrMore>
98
+ <choice>
99
+ <ref name="requirement"/>
100
+ <ref name="recommendation"/>
101
+ <ref name="permission"/>
102
+ </choice>
103
+ </zeroOrMore>
104
+ </define>
105
+ <define name="reqtitle">
106
+ <element name="title">
107
+ <ref name="FormattedString"/>
108
+ </element>
109
+ </define>
110
+ <define name="label">
111
+ <element name="identifier">
112
+ <oneOrMore>
113
+ <ref name="TextElement"/>
114
+ </oneOrMore>
115
+ </element>
116
+ </define>
117
+ <define name="subject">
118
+ <element name="subject">
119
+ <oneOrMore>
120
+ <ref name="TextElement"/>
121
+ </oneOrMore>
122
+ </element>
123
+ </define>
124
+ <define name="reqinherit">
125
+ <element name="inherit">
126
+ <oneOrMore>
127
+ <ref name="TextElement"/>
128
+ </oneOrMore>
129
+ </element>
130
+ </define>
131
+ <define name="measurementtarget">
132
+ <element name="measurement-target">
133
+ <ref name="RequirementSubpart"/>
134
+ </element>
135
+ </define>
136
+ <define name="specification">
137
+ <element name="specification">
138
+ <ref name="RequirementSubpart"/>
139
+ </element>
140
+ </define>
141
+ <define name="verification">
142
+ <element name="verification">
143
+ <ref name="RequirementSubpart"/>
144
+ </element>
145
+ </define>
146
+ <define name="import">
147
+ <element name="import">
148
+ <ref name="RequirementSubpart"/>
149
+ </element>
150
+ </define>
151
+ <define name="description">
152
+ <element name="description">
153
+ <ref name="RequirementSubpart"/>
154
+ </element>
155
+ </define>
156
+ <define name="component">
157
+ <element name="component">
158
+ <attribute name="class"/>
159
+ <ref name="RequirementSubpart"/>
160
+ </element>
161
+ </define>
162
+ <define name="reqt_references">
163
+ <element name="references">
164
+ <oneOrMore>
165
+ <ref name="bibitem"/>
166
+ </oneOrMore>
167
+ </element>
168
+ </define>
169
+ <define name="RequirementSubpart">
170
+ <optional>
171
+ <attribute name="type"/>
172
+ </optional>
173
+ <optional>
174
+ <attribute name="exclude">
175
+ <data type="boolean"/>
176
+ </attribute>
177
+ </optional>
178
+ <optional>
179
+ <attribute name="keep-with-next">
180
+ <data type="boolean"/>
181
+ </attribute>
182
+ </optional>
183
+ <optional>
184
+ <attribute name="keep-lines-together">
185
+ <data type="boolean"/>
186
+ </attribute>
187
+ </optional>
188
+ <optional>
189
+ <attribute name="tag"/>
190
+ </optional>
191
+ <optional>
192
+ <attribute name="multilingual-rendering">
193
+ <ref name="MultilingualRenderingType"/>
194
+ </attribute>
195
+ </optional>
196
+ <oneOrMore>
197
+ <choice>
198
+ <ref name="BasicBlock"/>
199
+ <ref name="component"/>
200
+ </choice>
201
+ </oneOrMore>
202
+ </define>
203
+ <define name="ObligationType">
204
+ <choice>
205
+ <value>requirement</value>
206
+ <value>recommendation</value>
207
+ <value>permission</value>
208
+ </choice>
209
+ </define>
210
+ </grammar>
@@ -0,0 +1,5 @@
1
+ module Metanorma
2
+ module Plateau
3
+ VERSION = "0.1.2".freeze
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ require_relative "./plateau/processor"
2
+
3
+ module Metanorma
4
+ module Plateau
5
+ end
6
+ end
@@ -0,0 +1,15 @@
1
+ irequire "asciidoctor" unless defined? Asciidoctor::Converter
2
+ require_relative "metanorma/plateau/converter"
3
+ require_relative "metanorma/plateau/version"
4
+ require "isodoc/plateau/html_convert"
5
+ require "isodoc/plateau/pdf_convert"
6
+ require "isodoc/plateau/presentation_xml_convert"
7
+ require "isodoc/plateau/metadata"
8
+ require "isodoc/plateau/xref"
9
+ require "metanorma"
10
+
11
+ if defined? Metanorma::Registry
12
+ require_relative "metanorma/plateau"
13
+ Metanorma::Registry.instance.register(Metanorma::Plateau::Processor)
14
+ end
15
+
@@ -0,0 +1,49 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "metanorma/plateau/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "metanorma-plateau"
9
+ spec.version = Metanorma::Plateau::VERSION
10
+ spec.authors = ["Ribose Inc."]
11
+ spec.email = ["open.source@ribose.com"]
12
+
13
+ spec.summary = "Metanorma for MLIT Project PLATEAU (private)"
14
+ spec.description = <<~DESCRIPTION
15
+ Metanorma standards authoring environment for MLIT Project PLATEAU.
16
+
17
+ WARNING: Usage of this software is restricted to authorized users of
18
+ MLIT Project PLATEAU.
19
+ DESCRIPTION
20
+
21
+ spec.homepage = "https://github.com/metanorma/metanorma-plateau"
22
+ spec.license = "LicenseRef-Ribose-Commercial"
23
+ spec.bindir = "bin"
24
+ spec.require_paths = ["lib"]
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features|bin|.github)/}) \
27
+ || f.match(%r{Rakefile|bin/rspec})
28
+ end
29
+ spec.test_files = `git ls-files -- {spec}/*`.split("\n")
30
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
31
+
32
+ spec.add_dependency "metanorma-jis", "~> 0.3.0"
33
+ spec.add_dependency "pubid"
34
+
35
+ spec.add_development_dependency "debug"
36
+ spec.add_development_dependency "equivalent-xml", "~> 0.6"
37
+ spec.add_development_dependency "guard", "~> 2.14"
38
+ spec.add_development_dependency "guard-rspec", "~> 4.7"
39
+ spec.add_development_dependency "iev", "~> 0.3.0"
40
+ spec.add_development_dependency "rake", "~> 13.0"
41
+ spec.add_development_dependency "rspec", "~> 3.6"
42
+ spec.add_development_dependency "rubocop", "~> 1.5.2"
43
+ spec.add_development_dependency "sassc", "2.4.0"
44
+ spec.add_development_dependency "simplecov", "~> 0.15"
45
+ spec.add_development_dependency "timecop", "~> 0.9"
46
+ spec.add_development_dependency "vcr", "~> 6.1.0"
47
+ spec.add_development_dependency "webmock"
48
+ spec.add_development_dependency "xml-c14n"
49
+ end
metadata ADDED
@@ -0,0 +1,303 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metanorma-plateau
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Ribose Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: metanorma-jis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.3.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.3.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: pubid
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: debug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: equivalent-xml
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.14'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.14'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.7'
97
+ - !ruby/object:Gem::Dependency
98
+ name: iev
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.3.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.3.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '13.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '13.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.6'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.6'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.5.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
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
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.15'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.15'
181
+ - !ruby/object:Gem::Dependency
182
+ name: timecop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.9'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.9'
195
+ - !ruby/object:Gem::Dependency
196
+ name: vcr
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 6.1.0
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 6.1.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: webmock
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: xml-c14n
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 standards authoring environment for MLIT Project PLATEAU.
239
+
240
+ WARNING: Usage of this software is restricted to authorized users of
241
+ MLIT Project PLATEAU.
242
+ email:
243
+ - open.source@ribose.com
244
+ executables: []
245
+ extensions: []
246
+ extra_rdoc_files: []
247
+ files:
248
+ - ".rubocop.yml"
249
+ - CODE_OF_CONDUCT.md
250
+ - Gemfile
251
+ - LICENSE
252
+ - README.adoc
253
+ - lib/isodoc/plateau/base_convert.rb
254
+ - lib/isodoc/plateau/html_convert.rb
255
+ - lib/isodoc/plateau/i18n-en.yaml
256
+ - lib/isodoc/plateau/i18n-ja.yaml
257
+ - lib/isodoc/plateau/i18n.rb
258
+ - lib/isodoc/plateau/init.rb
259
+ - lib/isodoc/plateau/metadata.rb
260
+ - lib/isodoc/plateau/pdf_convert.rb
261
+ - lib/isodoc/plateau/plateau.international-standard.xsl
262
+ - lib/isodoc/plateau/presentation_xml_convert.rb
263
+ - lib/isodoc/plateau/xref.rb
264
+ - lib/metanorma-plateau.rb
265
+ - lib/metanorma/plateau.rb
266
+ - lib/metanorma/plateau/basicdoc.rng
267
+ - lib/metanorma/plateau/biblio-standoc.rng
268
+ - lib/metanorma/plateau/biblio.rng
269
+ - lib/metanorma/plateau/cleanup.rb
270
+ - lib/metanorma/plateau/converter.rb
271
+ - lib/metanorma/plateau/isodoc.rng
272
+ - lib/metanorma/plateau/isostandard.rng
273
+ - lib/metanorma/plateau/jis.rng
274
+ - lib/metanorma/plateau/plateau.rng
275
+ - lib/metanorma/plateau/processor.rb
276
+ - lib/metanorma/plateau/relaton-jis.rng
277
+ - lib/metanorma/plateau/reqt.rng
278
+ - lib/metanorma/plateau/version.rb
279
+ - metanorma-plateau.gemspec
280
+ homepage: https://github.com/metanorma/metanorma-plateau
281
+ licenses:
282
+ - LicenseRef-Ribose-Commercial
283
+ metadata: {}
284
+ post_install_message:
285
+ rdoc_options: []
286
+ require_paths:
287
+ - lib
288
+ required_ruby_version: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: 3.1.0
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ requirements: []
299
+ rubygems_version: 3.3.27
300
+ signing_key:
301
+ specification_version: 4
302
+ summary: Metanorma for MLIT Project PLATEAU (private)
303
+ test_files: []