metanorma-unece 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +12 -149
- data/lib/asciidoctor/unece/biblio.rng +38 -34
- data/lib/asciidoctor/unece/converter.rb +1 -1
- data/lib/asciidoctor/unece/isodoc.rng +1 -0
- data/lib/asciidoctor/unece/reqt.rng +157 -0
- data/lib/metanorma/unece/version.rb +1 -1
- data/metanorma-unece.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53b8636e2a653b20e080afc8800bb32ddcc6acab949f3bcc94901ec283a97ed4
|
4
|
+
data.tar.gz: 437cad2230a5168a1a167a0dfb22bc959c1e9aeb14f6a71bfe8a137b5e24dc93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3f3d7db7d6c4ac94d71628e6ab8a2c3392bfa05db861a3fea3edef38a5c04dd64996af017032dfca6300be33d849c7704daf1c2625c263a4dd7e5eb60c3b16
|
7
|
+
data.tar.gz: 45e70bea116288b824581b3cfde56764de696de5cd854359206688b5f837328e6c1fd0c9619e79eb0355464f5afaad3bfd2e295c04acd80f53c60adfd301763c
|
data/README.adoc
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
= Metanorma processor for UNECE documents
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/metanorma-unece.svg["Gem Version", link="https://rubygems.org/gems/metanorma-unece"]
|
4
|
-
image:https://img.shields.io/travis/
|
5
|
-
image:https://codeclimate.com/github/
|
4
|
+
image:https://img.shields.io/travis/metanorma/metanorma-unece/master.svg["Build Status", link="https://travis-ci.org/metanorma/metanorma-unece"]
|
5
|
+
image:https://codeclimate.com/github/metanorma/metanorma-unece/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-unece"]
|
6
6
|
|
7
7
|
WARNING: This gem is still under development.
|
8
8
|
|
@@ -12,9 +12,9 @@ WARNING: This gem is still under development.
|
|
12
12
|
This gem processes http://asciidoctor.org/[Asciidoctor] documents following
|
13
13
|
a template for generating UNECE International Standards.
|
14
14
|
|
15
|
-
The gem currently inherits from the https://github.com/
|
15
|
+
The gem currently inherits from the https://github.com/metanorma/metanorma-standoc[Metanorma-Standoc]
|
16
16
|
gem, and aligns closely to it. Refer to the ISO gem documentation
|
17
|
-
for guidance, including https://github.com/
|
17
|
+
for guidance, including https://github.com/metanorma/metanorma-iso/wiki/Guidance-for-authoring[the Authoring Guide].
|
18
18
|
|
19
19
|
The following outputs are generated.
|
20
20
|
|
@@ -68,13 +68,13 @@ https://www.metanorma.com/overview/getting-started/
|
|
68
68
|
|
69
69
|
=== macOS
|
70
70
|
|
71
|
-
If you are using macOS, the https://github.com/
|
71
|
+
If you are using macOS, the https://github.com/metanorma/metanorma-macos-setup
|
72
72
|
repository has instructions on setting up your machine to run Metanorma
|
73
73
|
scripts such as this one. You need only run the following in a Terminal console:
|
74
74
|
|
75
75
|
[source,console]
|
76
76
|
----
|
77
|
-
$ bash <(curl -s https://raw.githubusercontent.com/
|
77
|
+
$ bash <(curl -s https://raw.githubusercontent.com/metanorma/metanorma-macos-setup/master/metanorma-setup)
|
78
78
|
$ gem install metanorma-unece
|
79
79
|
$ gem install metanorma-cli
|
80
80
|
----
|
@@ -85,7 +85,7 @@ Since this software is still in development it is not yet as mature as the other
|
|
85
85
|
|
86
86
|
The easiest way to try out is using a Mac. It takes a little bit more work on a Windows machine through the platform-independent Docker container (see the https://www.metanorma.com/overview/getting-started/#docker-setup[Metanorma Quickstart guide]) , but it is doable.
|
87
87
|
|
88
|
-
The current examples of UNECE documents encoded using Metanorma is provided in https://github.com/
|
88
|
+
The current examples of UNECE documents encoded using Metanorma is provided in https://github.com/metanorma/unece-docs/
|
89
89
|
|
90
90
|
(Please run the 2-line macOS setup script prior to the following)
|
91
91
|
|
@@ -93,7 +93,7 @@ First, use Git to clone the code and documents:
|
|
93
93
|
|
94
94
|
[source,console]
|
95
95
|
--
|
96
|
-
git clone https://github.com/
|
96
|
+
git clone https://github.com/metanorma/unece-docs/
|
97
97
|
--
|
98
98
|
|
99
99
|
Then, install all dependencies with this command:
|
@@ -114,156 +114,19 @@ Then you will see the files generated, including HTML and Word Doc.
|
|
114
114
|
|
115
115
|
The easiest way to start a new document is to copy one of the two samples and modify them.
|
116
116
|
|
117
|
+
== Documentation
|
117
118
|
|
118
|
-
|
119
|
-
== Approach
|
120
|
-
|
121
|
-
=== Document model
|
122
|
-
|
123
|
-
The UNECE Standard Document model is an instance of the
|
124
|
-
https://github.com/riboseinc/metanorma-model-standoc[StandardDocument model].
|
125
|
-
|
126
|
-
The UNECE format ("UNECE XML") intends to introduce rigor into the UNECE
|
127
|
-
standards authoring process, and is prescribed in a separate document.
|
128
|
-
|
129
|
-
=== Asciidoctor
|
130
|
-
|
131
|
-
Asciidoctor has been selected as the authoring tool to generate the document
|
132
|
-
model representation of UNECE standards. It is a document formatting tool like
|
133
|
-
Markdown and DocBook, which combines the relative ease of use of the former
|
134
|
-
(using relatively lightweight markup), and the rigor and expressively of the
|
135
|
-
latter (it has a well-defined syntax, and was in fact initially developed as a
|
136
|
-
DocBook document authoring tool). Asciidoctor has built-in capability to output
|
137
|
-
Text, DocBook and HTML; so it can be used to preview the file as it is being
|
138
|
-
authored.
|
139
|
-
|
140
|
-
Generating documents via a document model substantially automated formatting
|
141
|
-
associated with the document, including automating numbering of headings, figures,
|
142
|
-
tables etc, and automatically generating references and citations.
|
143
|
-
|
144
|
-
== Document Attributes
|
145
|
-
|
146
|
-
=== Common attributes
|
147
|
-
|
148
|
-
The gem relies on Asciidoctor document attributes to provide necessary
|
149
|
-
metadata about the document. The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
|
150
|
-
gem documents the Asciidoctor document attributes common to all metanorma gems. These include:
|
151
|
-
|
152
|
-
`:edition:`:: The document edition
|
153
|
-
|
154
|
-
`:revdate:`:: The date the document was last updated
|
155
|
-
|
156
|
-
`:copyright-year:`:: The year which will be claimed as when the copyright for
|
157
|
-
the document was issued
|
158
|
-
|
159
|
-
`:title:`:: The main component of the English title of the document
|
160
|
-
(mandatory). (The first line of the AsciiDoc document, which contains the title
|
161
|
-
introduced with `=`, is ignored)
|
162
|
-
|
163
|
-
`:doctype:`:: The document type (see _UNECE deliverables: The different types of
|
164
|
-
UNECE publications_) (mandatory). Note that the document types are reflected in the
|
165
|
-
document identifier. The permitted types for UNECE are:
|
166
|
-
+
|
167
|
-
--
|
168
|
-
recommendation:: UNECE Recommendation
|
169
|
-
plenary:: UNECE Plenary document
|
170
|
-
addendum:: Addendum
|
171
|
-
communication:: Communication
|
172
|
-
corrigendum:: Corrigendum
|
173
|
-
reissue:: Reissue (of something)
|
174
|
-
agenda:: Documents relating to agendas of principal organs
|
175
|
-
budgetary:: Documents relating to programme budget implications
|
176
|
-
sec-gen-notes:: Notes by the Secretary-General
|
177
|
-
expert-report:: Reports of intergovernmental and expert bodies
|
178
|
-
resolution:: Resolutions and other formal decisions of United Nations organs
|
179
|
-
--
|
180
|
-
|
181
|
-
`:status:``:: The document status. The permitted types are: `proposal`,
|
182
|
-
`working-draft`, `committee-draft`, `draft-standard`, `final-draft`,
|
183
|
-
`published`, `withdrawn`.
|
184
|
-
|
185
|
-
`:committee:`:: The name of the relevant UNECE committee, for example,
|
186
|
-
`United Nations Centre for Trade Facilitation and Electronic Business (UN/CEFACT)` (mandatory)
|
187
|
-
|
188
|
-
`:language:` :: The language(s) of the document. This is the language in which the document
|
189
|
-
has been issued, not the language(s) in which it has been submitted. ISO-639-1 codes are used
|
190
|
-
for languages, and they are comma-delimited. If not specified, the six official languages of the
|
191
|
-
UN are assumed: Arabic, Chinese, English, French, Russian and Spanish (`ar,zh,en,fr,ru,es`).
|
192
|
-
`:script:` :: The script of the document
|
193
|
-
|
194
|
-
`:toc:` :: Include table of contents in Word output. (Table of contents is always included in
|
195
|
-
HTML output.)
|
196
|
-
|
197
|
-
NOTE: The attribute `:draft:`, if present, includes review notes in the XML output;
|
198
|
-
these are otherwise suppressed.
|
199
|
-
|
200
|
-
=== UN document-specific attributes
|
201
|
-
|
202
|
-
`:distribution:`:: Extent of distribution allowed. e.g. `General`
|
203
|
-
|
204
|
-
=== Recommendation specific attributes
|
205
|
-
|
206
|
-
`:docnumber:`:: The document number if the document is a Recommendation. e.g. `42` for Recommendation 42, which happens to be the ultimate answer. (mandatory for Recommendation)
|
207
|
-
|
208
|
-
`:submissionlanguage:`:: The language(s) in which the document was originally submitted.
|
209
|
-
ISO-639-1 codes are used for languages, and they are comma-delimited.
|
210
|
-
|
211
|
-
=== Plenary document specific attributes
|
212
|
-
|
213
|
-
`:session-date:`:: Date of the session where this document will be discussed. e.g. `Geneva, 30 April – 1 May 2018`
|
214
|
-
|
215
|
-
`:item-number:`:: Number of the agenda item this document belongs to. e.g. `Item 6 of the provisional agenda`. If the document corresponds to multiple items, they are comma-delimited. If the document belongs to multiple subitems under a single item, following editorial practice of the UN (http://dd.dgacm.org/editorialmanual/ed-guidelines/format/Model_mast21.pdf), give the item and subitems identifiers here.
|
216
|
-
|
217
|
-
`:item-name:`:: Name of the agenda item this document belongs to. If the document corresponds to multiple items, they are comma-delimited.
|
218
|
-
`:subitem-name:`:: Name of the agenda subitem this document belongs to. If the document corresponds to multiple subitems, they are comma-delimited.
|
219
|
-
|
220
|
-
`:collaborator:`:: Collaborator of this document, if any. e.g. `World Economic Forum`
|
221
|
-
|
222
|
-
`:agenda-id:`:: The unique identifier of this agenda item. e.g. `ECE/TRADE/C/CEFACT/2018/6`. If there are multiple agenda items or subitems, given them comma-delimited.
|
223
|
-
|
224
|
-
`:item-footnote:`:: Footnoted reference to item, if item is on the preliminary list or the provisional agenda.
|
225
|
-
|
226
|
-
[[model_additions]]
|
227
|
-
== Asciidoctor features specific to UNECE
|
228
|
-
|
229
|
-
The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
|
230
|
-
gem documents the customisations of Asciidoctor markup common to all metanorma gems.
|
231
|
-
The following markup is specific to this gem:
|
232
|
-
|
233
|
-
=== Abstract
|
234
|
-
|
235
|
-
Abstracts are moved to the front page in plenary documents. In recommendation documents, they appear in the document preface, before the foreword and introduction.
|
236
|
-
|
237
|
-
=== Paragraph numbering
|
238
|
-
|
239
|
-
Paragraphs are automatically numbered in this gem, and paragraph numbers should not be entered in the Asciidoctor
|
240
|
-
source. Paragraphs are numbered by treating each paragraph in the Metanorma XML as a separate clause; all terminal
|
241
|
-
clauses in UNECE Metanorma XML are rendered as a numbered paragraph. Non-paragraph blocks (tables, figures, admonitions,
|
242
|
-
lists) are not numbered; nor are paragraphs in prefatory material (introduction, foreword, abstract).
|
243
|
-
|
244
|
-
=== Admonitions
|
245
|
-
|
246
|
-
The admonition container "IMPORTANT" is used to render UNECE document boxes. Unlike normal Metanorma admonitions,
|
247
|
-
UNECE admonitions can have titles:
|
248
|
-
|
249
|
-
[source,asciidoctor]
|
250
|
-
--
|
251
|
-
[IMPORTANT]
|
252
|
-
.Business Process Analysis Plus (BPA+) (<==== This is the box title)
|
253
|
-
====
|
254
|
-
Business Process Analysis was initially designed to document and evaluate an import/export process at a given point time and its relative simplicity. It also specifically includes a measurement of the time and cost of the complete range of procedures as one of the main outputs of the analysis. This combination makes it suitable as the basis/core of a trade facilitation monitoring and improvement system.
|
255
|
-
====
|
256
|
-
--
|
119
|
+
See https://www.metanorma.com/author/unece/[The UNECE flavor of Metanorma]
|
257
120
|
|
258
121
|
|
259
122
|
== Data Models
|
260
123
|
|
261
124
|
The UNECE Standard Document format is an instance of the
|
262
|
-
https://github.com/
|
125
|
+
https://github.com/metanorma/metanorma-model-standoc[StandardDocument model]. Details of
|
263
126
|
this general model can be found on its page.
|
264
127
|
|
265
128
|
Details of the UNECE modifications to this general model can be found in the
|
266
|
-
https://github.com/
|
129
|
+
https://github.com/metanorma/metanorma-model-unece[UNECE model]
|
267
130
|
repository.
|
268
131
|
|
269
132
|
== Examples
|
@@ -156,9 +156,9 @@
|
|
156
156
|
<zeroOrMore>
|
157
157
|
<ref name="contact"/>
|
158
158
|
</zeroOrMore>
|
159
|
-
<
|
159
|
+
<zeroOrMore>
|
160
160
|
<ref name="uri"/>
|
161
|
-
</
|
161
|
+
</zeroOrMore>
|
162
162
|
</element>
|
163
163
|
</define>
|
164
164
|
<define name="fullname">
|
@@ -246,9 +246,9 @@
|
|
246
246
|
<optional>
|
247
247
|
<ref name="abbreviation"/>
|
248
248
|
</optional>
|
249
|
-
<
|
249
|
+
<zeroOrMore>
|
250
250
|
<ref name="uri"/>
|
251
|
-
</
|
251
|
+
</zeroOrMore>
|
252
252
|
<zeroOrMore>
|
253
253
|
<ref name="org-identifier"/>
|
254
254
|
</zeroOrMore>
|
@@ -469,12 +469,13 @@
|
|
469
469
|
<value>film</value>
|
470
470
|
<value>video</value>
|
471
471
|
<value>broadcast</value>
|
472
|
-
<value>
|
472
|
+
<value>graphic_work</value>
|
473
473
|
<value>music</value>
|
474
474
|
<value>patent</value>
|
475
475
|
<value>inbook</value>
|
476
476
|
<value>incollection</value>
|
477
477
|
<value>inproceedings</value>
|
478
|
+
<value>journal</value>
|
478
479
|
</choice>
|
479
480
|
</define>
|
480
481
|
<define name="BibliographicItem">
|
@@ -739,39 +740,44 @@
|
|
739
740
|
<element name="series">
|
740
741
|
<optional>
|
741
742
|
<attribute name="type">
|
742
|
-
<
|
743
|
-
<value>main</value>
|
744
|
-
<value>alt</value>
|
745
|
-
</choice>
|
743
|
+
<ref name="SeriesType"/>
|
746
744
|
</attribute>
|
747
745
|
</optional>
|
748
746
|
<choice>
|
749
|
-
<ref name="btitle"/>
|
750
747
|
<ref name="formattedref"/>
|
748
|
+
<group>
|
749
|
+
<ref name="btitle"/>
|
750
|
+
<optional>
|
751
|
+
<ref name="bplace"/>
|
752
|
+
</optional>
|
753
|
+
<optional>
|
754
|
+
<ref name="seriesorganization"/>
|
755
|
+
</optional>
|
756
|
+
<optional>
|
757
|
+
<ref name="abbreviation"/>
|
758
|
+
</optional>
|
759
|
+
<optional>
|
760
|
+
<ref name="seriesfrom"/>
|
761
|
+
</optional>
|
762
|
+
<optional>
|
763
|
+
<ref name="seriesto"/>
|
764
|
+
</optional>
|
765
|
+
<optional>
|
766
|
+
<ref name="seriesnumber"/>
|
767
|
+
</optional>
|
768
|
+
<optional>
|
769
|
+
<ref name="seriespartnumber"/>
|
770
|
+
</optional>
|
771
|
+
</group>
|
751
772
|
</choice>
|
752
|
-
<optional>
|
753
|
-
<ref name="bplace"/>
|
754
|
-
</optional>
|
755
|
-
<optional>
|
756
|
-
<ref name="seriesorganization"/>
|
757
|
-
</optional>
|
758
|
-
<optional>
|
759
|
-
<ref name="abbreviation"/>
|
760
|
-
</optional>
|
761
|
-
<optional>
|
762
|
-
<ref name="seriesfrom"/>
|
763
|
-
</optional>
|
764
|
-
<optional>
|
765
|
-
<ref name="seriesto"/>
|
766
|
-
</optional>
|
767
|
-
<optional>
|
768
|
-
<ref name="seriesnumber"/>
|
769
|
-
</optional>
|
770
|
-
<optional>
|
771
|
-
<ref name="seriespartnumber"/>
|
772
|
-
</optional>
|
773
773
|
</element>
|
774
774
|
</define>
|
775
|
+
<define name="SeriesType">
|
776
|
+
<choice>
|
777
|
+
<value>main</value>
|
778
|
+
<value>alt</value>
|
779
|
+
</choice>
|
780
|
+
</define>
|
775
781
|
<define name="seriesorganization">
|
776
782
|
<element name="organization">
|
777
783
|
<text/>
|
@@ -849,6 +855,7 @@
|
|
849
855
|
<value>includes</value>
|
850
856
|
<value>instance</value>
|
851
857
|
<value>partOf</value>
|
858
|
+
<value>hasDraft</value>
|
852
859
|
</choice>
|
853
860
|
</attribute>
|
854
861
|
<element name="bibitem">
|
@@ -861,9 +868,6 @@
|
|
861
868
|
</define>
|
862
869
|
<define name="version">
|
863
870
|
<element name="version">
|
864
|
-
<optional>
|
865
|
-
<ref name="vedition"/>
|
866
|
-
</optional>
|
867
871
|
<optional>
|
868
872
|
<ref name="revision-date"/>
|
869
873
|
</optional>
|
@@ -123,7 +123,7 @@ module Asciidoctor
|
|
123
123
|
result << "</unece-standard>"
|
124
124
|
result = textcleanup(result)
|
125
125
|
ret1 = cleanup(Nokogiri::XML(result))
|
126
|
-
validate(ret1)
|
126
|
+
validate(ret1) unless @novalid
|
127
127
|
ret1.root.add_namespace(nil, Metanorma::Unece::DOCUMENT_NAMESPACE)
|
128
128
|
ret1
|
129
129
|
end
|
@@ -0,0 +1,157 @@
|
|
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
|
+
<attribute name="id">
|
29
|
+
<data type="ID"/>
|
30
|
+
</attribute>
|
31
|
+
<optional>
|
32
|
+
<attribute name="filename"/>
|
33
|
+
</optional>
|
34
|
+
<optional>
|
35
|
+
<ref name="reqtitle"/>
|
36
|
+
</optional>
|
37
|
+
<optional>
|
38
|
+
<ref name="label"/>
|
39
|
+
</optional>
|
40
|
+
<optional>
|
41
|
+
<ref name="subject"/>
|
42
|
+
</optional>
|
43
|
+
<optional>
|
44
|
+
<ref name="reqinherit"/>
|
45
|
+
</optional>
|
46
|
+
<zeroOrMore>
|
47
|
+
<ref name="classification"/>
|
48
|
+
</zeroOrMore>
|
49
|
+
<zeroOrMore>
|
50
|
+
<choice>
|
51
|
+
<ref name="measurementtarget"/>
|
52
|
+
<ref name="specification"/>
|
53
|
+
<ref name="verification"/>
|
54
|
+
<ref name="import"/>
|
55
|
+
<ref name="description"/>
|
56
|
+
</choice>
|
57
|
+
</zeroOrMore>
|
58
|
+
<optional>
|
59
|
+
<ref name="reqt_references"/>
|
60
|
+
</optional>
|
61
|
+
<zeroOrMore>
|
62
|
+
<choice>
|
63
|
+
<ref name="requirement"/>
|
64
|
+
<ref name="recommendation"/>
|
65
|
+
<ref name="permission"/>
|
66
|
+
</choice>
|
67
|
+
</zeroOrMore>
|
68
|
+
</define>
|
69
|
+
<define name="reqtitle">
|
70
|
+
<element name="title">
|
71
|
+
<ref name="FormattedString"/>
|
72
|
+
</element>
|
73
|
+
</define>
|
74
|
+
<define name="label">
|
75
|
+
<element name="label">
|
76
|
+
<text/>
|
77
|
+
</element>
|
78
|
+
</define>
|
79
|
+
<define name="subject">
|
80
|
+
<element name="subject">
|
81
|
+
<text/>
|
82
|
+
</element>
|
83
|
+
</define>
|
84
|
+
<define name="reqinherit">
|
85
|
+
<element name="subject">
|
86
|
+
<text/>
|
87
|
+
</element>
|
88
|
+
</define>
|
89
|
+
<define name="measurementtarget">
|
90
|
+
<element name="measurement-target">
|
91
|
+
<ref name="RequirementSubpart"/>
|
92
|
+
</element>
|
93
|
+
</define>
|
94
|
+
<define name="specification">
|
95
|
+
<element name="specification">
|
96
|
+
<ref name="RequirementSubpart"/>
|
97
|
+
</element>
|
98
|
+
</define>
|
99
|
+
<define name="verification">
|
100
|
+
<element name="verification">
|
101
|
+
<ref name="RequirementSubpart"/>
|
102
|
+
</element>
|
103
|
+
</define>
|
104
|
+
<define name="import">
|
105
|
+
<element name="import">
|
106
|
+
<ref name="RequirementSubpart"/>
|
107
|
+
</element>
|
108
|
+
</define>
|
109
|
+
<define name="description">
|
110
|
+
<element name="description">
|
111
|
+
<ref name="RequirementSubpart"/>
|
112
|
+
</element>
|
113
|
+
</define>
|
114
|
+
<define name="reqt_references">
|
115
|
+
<element name="references">
|
116
|
+
<oneOrMore>
|
117
|
+
<ref name="bibitem"/>
|
118
|
+
</oneOrMore>
|
119
|
+
</element>
|
120
|
+
</define>
|
121
|
+
<define name="RequirementSubpart">
|
122
|
+
<optional>
|
123
|
+
<attribute name="type"/>
|
124
|
+
</optional>
|
125
|
+
<optional>
|
126
|
+
<attribute name="exclude">
|
127
|
+
<data type="boolean"/>
|
128
|
+
</attribute>
|
129
|
+
</optional>
|
130
|
+
<oneOrMore>
|
131
|
+
<ref name="BasicBlock"/>
|
132
|
+
</oneOrMore>
|
133
|
+
</define>
|
134
|
+
<define name="ObligationType">
|
135
|
+
<choice>
|
136
|
+
<value>requirement</value>
|
137
|
+
<value>recommendation</value>
|
138
|
+
<value>permission</value>
|
139
|
+
</choice>
|
140
|
+
</define>
|
141
|
+
<define name="classification">
|
142
|
+
<element name="classification">
|
143
|
+
<ref name="classification_tag"/>
|
144
|
+
<ref name="classification_value"/>
|
145
|
+
</element>
|
146
|
+
</define>
|
147
|
+
<define name="classification_tag">
|
148
|
+
<element name="tag">
|
149
|
+
<text/>
|
150
|
+
</element>
|
151
|
+
</define>
|
152
|
+
<define name="classification_value">
|
153
|
+
<element name="value">
|
154
|
+
<text/>
|
155
|
+
</element>
|
156
|
+
</define>
|
157
|
+
</grammar>
|
data/metanorma-unece.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
Metanorma for UNECE: United Nations Economic Commission for Europe.
|
14
14
|
DESCRIPTION
|
15
15
|
|
16
|
-
spec.homepage = "https://github.com/
|
16
|
+
spec.homepage = "https://github.com/metanorma/metanorma-unece"
|
17
17
|
spec.license = "BSD-2-Clause"
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-unece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -316,6 +316,7 @@ files:
|
|
316
316
|
- lib/asciidoctor/unece/converter.rb
|
317
317
|
- lib/asciidoctor/unece/isodoc.rng
|
318
318
|
- lib/asciidoctor/unece/isostandard.rng
|
319
|
+
- lib/asciidoctor/unece/reqt.rng
|
319
320
|
- lib/asciidoctor/unece/unece.rng
|
320
321
|
- lib/isodoc/unece.rb
|
321
322
|
- lib/isodoc/unece/html/header.html
|
@@ -340,7 +341,7 @@ files:
|
|
340
341
|
- lib/metanorma/unece/processor.rb
|
341
342
|
- lib/metanorma/unece/version.rb
|
342
343
|
- metanorma-unece.gemspec
|
343
|
-
homepage: https://github.com/
|
344
|
+
homepage: https://github.com/metanorma/metanorma-unece
|
344
345
|
licenses:
|
345
346
|
- BSD-2-Clause
|
346
347
|
metadata: {}
|