metanorma-rsd 1.0.9 → 1.0.10

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: d60eb313f103724a556fa4331f0db19cb618c9c40082061719250d56c8d2d71d
4
- data.tar.gz: 118f978072f0d8b5fbee281e7196c7ce4a2b18f32e506c16d054a1d500cf4ebc
3
+ metadata.gz: 1d283e879af320fbad1196dcbeb2e0ae38e43e8bfeda40e717ee706e299c70b6
4
+ data.tar.gz: 5e9262876f2f6cff2d7073328ff53963a15aa1f302968e3084af87d7a0d7ec9a
5
5
  SHA512:
6
- metadata.gz: 8c6099b91c7360b4b59e9bd7524b1161d1e28b61310671c33dba4d51539e3ceaad9baf66e923ca5cc8aa4c47e1ea1cc1f2afa07e20cc5a037246263d5d3697e4
7
- data.tar.gz: fb055fc5fd50e48c6091bcf3cd0166f2a3cd55d2527db880a8660b239dbbf5ff487760ad891170aac12d5eeaccc9a3f37cf718fc0f0cf893b880dbb2e21448e1
6
+ metadata.gz: d94b8321b4574dde4deab096345db7b665504ddaa3ed583331510f58f6e9a70067aa97e9ba4f3ca6b05315563cceb91ef5a4b57b20c43684394509761cec4625
7
+ data.tar.gz: 257bccd37f3322c2115bb4cef92e1e1e40c74b8255c18ae12ad07fd6cbcab84c734ea6c9cc734dee345153ef0190578ea23479ad213fb1c089c985d1d9961cea
data/README.adoc CHANGED
@@ -70,6 +70,7 @@ scripts such as this one. You need only run the following in a Terminal console:
70
70
  ----
71
71
  $ bash <(curl -s https://raw.githubusercontent.com/riboseinc/metanorma-macos-setup/master/metanorma-setup)
72
72
  $ gem install metanorma-rsd
73
+ $ gem install metanorma-cli
73
74
  ----
74
75
 
75
76
 
@@ -77,17 +78,12 @@ $ gem install metanorma-rsd
77
78
 
78
79
  === Document model
79
80
 
80
- The Ribose Standard Document model is an instance of the
81
+ The Ribose Standard Document model used in this gem is an instance of the
81
82
  https://github.com/riboseinc/isodoc-models[StandardDocument model].
82
83
 
83
- The RSD format ("RSD XML") intends to introduce rigor into the RSD
84
+ The Metanorma XML format intends to introduce rigor into the RSD
84
85
  standards authoring process, and is prescribed in a separate document.
85
86
 
86
- RSD XML is still under development, but it already contains all the markup
87
- needed to render a RSD document into HTML.
88
-
89
- WARNING: The current RNG model of RSD XML is out of sync with the UML.
90
-
91
87
  === Asciidoctor
92
88
 
93
89
  Asciidoctor has been selected as the authoring tool to generate the document
@@ -99,19 +95,17 @@ DocBook document authoring tool). Asciidoctor has built-in capability to output
99
95
  Text, DocBook and HTML; so it can be used to preview the file as it is being
100
96
  authored.
101
97
 
102
- Note that in order to generate HTML preview output close to what is intended
103
- in the RSD standard, the Asciidoc
104
- document includes a fair amount of formatting instructions (e.g. disabling
105
- section numbering where appropriate, the titling of Appendixes as Annexes), as
106
- well as RSD boilerplate text, and predefined section headers (sections are
107
- recognised by fixed titles such as `Normative References`). Authoring RSD
108
- standards in this fashion assumes that users will be populating an Asciidoc
109
- template, and not removing needed formatting instructions.
98
+ Generating documents via a document model substantially automated formatting
99
+ associated with the document, including automating numbering of headings, figures,
100
+ tables etc, and automatically generating references and citations.
110
101
 
111
102
  == Document Attributes
112
103
 
104
+ === Common attributes
105
+
113
106
  The gem relies on Asciidoctor document attributes to provide necessary
114
- metadata about the document. These include:
107
+ metadata about the document. The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
108
+ gem documents the Asciidoctor document attributes common to all metanorma gems. These include:
115
109
 
116
110
  `:edition:`:: The document edition
117
111
 
@@ -148,12 +142,18 @@ or `provisional`.
148
142
 
149
143
  `:language:` :: The language of the document (only `en` for now) (mandatory)
150
144
 
151
- `:security:` :: Security level classification, e.g., "confidential", "client confidential"
152
-
153
145
  The attribute `:draft:`, if present, includes review notes in the XML output;
154
146
  these are otherwise suppressed.
155
147
 
156
- == AsciiRSD features not also present in AsciiISO
148
+ === Attributes specific to RSD:
149
+
150
+ `:security:` :: Security level classification, e.g., "confidential", "client confidential"
151
+
152
+ == Asciidoctor features specific to CSAND
153
+
154
+ The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
155
+ gem documents the customisations of Asciidoctor markup common to all metanorma gems.
156
+ The following markup is specific to this gem:
157
157
 
158
158
  * `+[keyword]#...#+`: encodes keywords, such as "MUST", "MUST NOT". (Encoded as
159
159
  `<span class="keyword">...</span>`.
@@ -744,6 +744,9 @@
744
744
  </define>
745
745
  <define name="preface">
746
746
  <element name="preface">
747
+ <optional>
748
+ <ref name="preface_abstract"/>
749
+ </optional>
747
750
  <ref name="foreword"/>
748
751
  <optional>
749
752
  <ref name="introduction"/>
@@ -811,6 +814,11 @@
811
814
  </optional>
812
815
  </element>
813
816
  </define>
817
+ <define name="preface_abstract">
818
+ <element name="abstract">
819
+ <ref name="Basic-Section"/>
820
+ </element>
821
+ </define>
814
822
  <define name="foreword">
815
823
  <element name="foreword">
816
824
  <ref name="Basic-Section"/>
@@ -45,7 +45,7 @@
45
45
  </div>
46
46
 
47
47
  <div class="coverpage-stage-block" >
48
- <p><span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{{ status }}</span></p>
48
+ <p><span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{% if unpublished %}{{ status }}{% endif %}</span></p>
49
49
  {% if security %}
50
50
  <p><span class="coverpage-maturity">Classification: {{ security }}</span></p>
51
51
  {% endif %}
@@ -55,7 +55,7 @@
55
55
  <div class="coverpage-stage-block" >{{ revdate }}</div>
56
56
  {% endif %}
57
57
 
58
- {% if status != "Published" and status != "Withdrawn" %}
58
+ {% if unpublished %}
59
59
  <div class="coverpage-warning">
60
60
  <span class="title">Warning for Drafts</span>
61
61
 
@@ -18,7 +18,8 @@ margin-left:4.25pt;margin-right:4.25pt'>
18
18
 
19
19
  <p class="MsoNormal" align="center" style='text-align:center;border:none;
20
20
  mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt'><span
21
- lang="EN-GB" style='font-size:16.0pt'>{{ status }} {{ doctype }}</span></p>
21
+ lang="EN-GB" style='font-size:16.0pt'>{% if unpublished %}{{ status }} {% endif %}{{ doctype }}</span></p>
22
+
22
23
 
23
24
  {% if security %}
24
25
  <p class="MsoNormal" align="center" style='text-align:center;border:none;
@@ -39,7 +40,7 @@ mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:1.0pt 4.0pt 1.0
39
40
  mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
40
41
  margin-left:4.25pt;margin-right:4.25pt'>
41
42
 
42
- {% if status != "Published" and status != "Withdrawn" %}
43
+ {% if unpublished %}
43
44
  <p class="MsoNormal" align="center" style='margin-bottom:6.0pt;text-align:center;
44
45
  border:none;mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:
45
46
  1.0pt 4.0pt 1.0pt 4.0pt'><b style='mso-bidi-font-weight:normal'><span
@@ -38,6 +38,10 @@ module IsoDoc
38
38
  end
39
39
  end
40
40
 
41
+ def unpublished(status)
42
+ %w(published withdrawn).include? status.downcase
43
+ end
44
+
41
45
  def version(isoxml, _out)
42
46
  super
43
47
  revdate = get[:revdate]
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Rsd
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-rsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor