metanorma-acme 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.adoc +16 -16
- data/lib/asciidoctor/acme/acme.rng +3 -3
- data/lib/asciidoctor/acme/biblio.rng +31 -0
- data/lib/asciidoctor/acme/isodoc.rng +3 -31
- data/lib/asciidoctor/acme/isostandard.rng +6 -3
- data/lib/isodoc/acme/html/acme.scss +0 -8
- data/lib/isodoc/acme/html/htmlstyle.scss +28 -4
- data/lib/isodoc/acme/html/wordstyle.scss +0 -2
- data/lib/isodoc/acme/metadata.rb +1 -1
- data/lib/metanorma/acme/version.rb +1 -1
- data/metanorma-acme.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f92eecb2ec9350efda09ba06a211745a52dd8e77e7423d6cb0ffda156724fe2
|
|
4
|
+
data.tar.gz: 7189c366347aaac3299a3aac7cd7f78ec36d8bbec2c866057b18d333adee1d30
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1882f351732a105c1e0903b48b1af9a5a3ed083242069d65e7eedb173762149f0d2ae966e8dd244417ed615e74b8ac0a949092c19547d9a42d0d35481dbff96b
|
|
7
|
+
data.tar.gz: 36721f08dd92909451538fd47b4abbc200b33ad8f9092f3175dea769fbdc8625457794b07705d24cfa5c82aa234683a94244ff1493bb0e578cc9613eb4699c4a
|
data/.travis.yml
CHANGED
data/README.adoc
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
= metanorma-
|
|
1
|
+
= metanorma-acme: Asciidoctor processor for a (fictitious) Acme Corporation
|
|
2
2
|
|
|
3
|
-
image:https://img.shields.io/gem/v/metanorma-
|
|
4
|
-
image:https://img.shields.io/travis/riboseinc/metanorma-
|
|
5
|
-
image:https://codeclimate.com/github/riboseinc/metanorma-
|
|
3
|
+
image:https://img.shields.io/gem/v/metanorma-acme.svg["Gem Version", link="https://rubygems.org/gems/metanorma-acme"]
|
|
4
|
+
image:https://img.shields.io/travis/riboseinc/metanorma-acme/master.svg["Build Status", link="https://travis-ci.org/riboseinc/metanorma-acme"]
|
|
5
|
+
image:https://codeclimate.com/github/riboseinc/metanorma-acme/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/metanorma-acme"]
|
|
6
6
|
|
|
7
7
|
WARNING: This gem is still under development.
|
|
8
8
|
|
|
9
9
|
== Functionality
|
|
10
10
|
|
|
11
11
|
This gem processes http://asciidoctor.org/[Asciidoctor] documents following
|
|
12
|
-
a template for generating
|
|
12
|
+
a template for generating Acme documents.
|
|
13
13
|
|
|
14
14
|
The gem currently inherits from the https://github.com/riboseinc/metanorma-standoc
|
|
15
15
|
gem, and aligns closely to it. Refer to the ISO gem documentation
|
|
@@ -17,9 +17,9 @@ for guidance, including https://github.com/riboseinc/metanorma-iso/wiki/Guidance
|
|
|
17
17
|
|
|
18
18
|
The following outputs are generated.
|
|
19
19
|
|
|
20
|
-
* an XML representation of the document, intended as a document model for
|
|
20
|
+
* an XML representation of the document, intended as a document model for Acme documents.
|
|
21
21
|
* The XML representation is processed in turn to generate the following outputs
|
|
22
|
-
as end deliverable
|
|
22
|
+
as end deliverable Acme documents.
|
|
23
23
|
** HTML
|
|
24
24
|
** http://asciimath.org[AsciiMathML] is to be used for mathematical formatting.
|
|
25
25
|
The gem uses the https://github.com/asciidoctor/asciimath[Ruby AsciiMath parser],
|
|
@@ -33,9 +33,9 @@ The preferred way to invoke this gem is via the `metanorma` script:
|
|
|
33
33
|
|
|
34
34
|
[source,console]
|
|
35
35
|
----
|
|
36
|
-
$ metanorma --type
|
|
37
|
-
$ metanorma --type
|
|
38
|
-
$ metanorma --type
|
|
36
|
+
$ metanorma --type acme a.adoc # output HTML
|
|
37
|
+
$ metanorma --type acme --extensions html a.adoc # output just HTML
|
|
38
|
+
$ metanorma --type acme --extensions xml a.adoc # output RSD XML
|
|
39
39
|
----
|
|
40
40
|
|
|
41
41
|
The gem translates the document into Metanorma XML format, and then
|
|
@@ -50,7 +50,7 @@ The gem can also be invoked directly within asciidoctor, though this is deprecat
|
|
|
50
50
|
|
|
51
51
|
[source,console]
|
|
52
52
|
----
|
|
53
|
-
$ asciidoctor -b
|
|
53
|
+
$ asciidoctor -b acme -r 'metanorma-acme' a.adoc
|
|
54
54
|
----
|
|
55
55
|
|
|
56
56
|
=== Installation
|
|
@@ -62,7 +62,7 @@ scripts such as this one. You need only run the following in a Terminal console:
|
|
|
62
62
|
[source,console]
|
|
63
63
|
----
|
|
64
64
|
$ bash <(curl -s https://raw.githubusercontent.com/riboseinc/metanorma-macos-setup/master/metanorma-setup)
|
|
65
|
-
$ gem install metanorma-
|
|
65
|
+
$ gem install metanorma-acme
|
|
66
66
|
$ gem install metanorma-cli
|
|
67
67
|
----
|
|
68
68
|
|
|
@@ -70,16 +70,16 @@ $ gem install metanorma-cli
|
|
|
70
70
|
|
|
71
71
|
=== Document model
|
|
72
72
|
|
|
73
|
-
The
|
|
73
|
+
The Acme Document model used by this gem is an instance of the
|
|
74
74
|
https://github.com/riboseinc/isodoc-models[StandardDocument model].
|
|
75
75
|
|
|
76
|
-
The Metanorma XML format intends to introduce rigor into the
|
|
76
|
+
The Metanorma XML format intends to introduce rigor into the Acme
|
|
77
77
|
standards authoring process, and is prescribed in a separate document.
|
|
78
78
|
|
|
79
79
|
=== Asciidoctor
|
|
80
80
|
|
|
81
81
|
Asciidoctor has been selected as the authoring tool to generate the document
|
|
82
|
-
model representation of
|
|
82
|
+
model representation of Acme standards. It is a document formatting tool like
|
|
83
83
|
Markdown and DocBook, which combines the relative ease of use of the former
|
|
84
84
|
(using relatively lightweight markup), and the rigor and expressively of the
|
|
85
85
|
latter (it has a well-defined syntax, and was in fact initially developed as a
|
|
@@ -133,7 +133,7 @@ report:: report
|
|
|
133
133
|
The attribute `:draft:`, if present, includes review notes in the XML output;
|
|
134
134
|
these are otherwise suppressed.
|
|
135
135
|
|
|
136
|
-
== Asciidoctor features specific to
|
|
136
|
+
== Asciidoctor features specific to Acme
|
|
137
137
|
|
|
138
138
|
The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
|
|
139
139
|
gem documents the customisations of Asciidoctor markup common to all metanorma gems.
|
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
<optional>
|
|
131
131
|
<ref name="edition"/>
|
|
132
132
|
</optional>
|
|
133
|
+
<optional>
|
|
134
|
+
<ref name="version"/>
|
|
135
|
+
</optional>
|
|
133
136
|
<zeroOrMore>
|
|
134
137
|
<ref name="biblionote"/>
|
|
135
138
|
</zeroOrMore>
|
|
@@ -177,9 +180,6 @@
|
|
|
177
180
|
<define name="acme-standard">
|
|
178
181
|
<element name="acme-standard">
|
|
179
182
|
<ref name="bibdata"/>
|
|
180
|
-
<optional>
|
|
181
|
-
<ref name="version"/>
|
|
182
|
-
</optional>
|
|
183
183
|
<zeroOrMore>
|
|
184
184
|
<ref name="termdocsource"/>
|
|
185
185
|
</zeroOrMore>
|
|
@@ -488,6 +488,9 @@
|
|
|
488
488
|
<optional>
|
|
489
489
|
<ref name="edition"/>
|
|
490
490
|
</optional>
|
|
491
|
+
<optional>
|
|
492
|
+
<ref name="version"/>
|
|
493
|
+
</optional>
|
|
491
494
|
<zeroOrMore>
|
|
492
495
|
<ref name="biblionote"/>
|
|
493
496
|
</zeroOrMore>
|
|
@@ -866,6 +869,34 @@
|
|
|
866
869
|
</zeroOrMore>
|
|
867
870
|
</element>
|
|
868
871
|
</define>
|
|
872
|
+
<define name="version">
|
|
873
|
+
<element name="version">
|
|
874
|
+
<optional>
|
|
875
|
+
<ref name="vedition"/>
|
|
876
|
+
</optional>
|
|
877
|
+
<optional>
|
|
878
|
+
<ref name="revision-date"/>
|
|
879
|
+
</optional>
|
|
880
|
+
<zeroOrMore>
|
|
881
|
+
<ref name="draft"/>
|
|
882
|
+
</zeroOrMore>
|
|
883
|
+
</element>
|
|
884
|
+
</define>
|
|
885
|
+
<define name="vedition">
|
|
886
|
+
<element name="edition">
|
|
887
|
+
<data type="int"/>
|
|
888
|
+
</element>
|
|
889
|
+
</define>
|
|
890
|
+
<define name="revision-date">
|
|
891
|
+
<element name="revision-date">
|
|
892
|
+
<data type="date"/>
|
|
893
|
+
</element>
|
|
894
|
+
</define>
|
|
895
|
+
<define name="draft">
|
|
896
|
+
<element name="draft">
|
|
897
|
+
<text/>
|
|
898
|
+
</element>
|
|
899
|
+
</define>
|
|
869
900
|
<!--
|
|
870
901
|
Anycontents = mixed {
|
|
871
902
|
https://github.com/relaxng/jing-trang/issues/211
|
|
@@ -39,9 +39,6 @@
|
|
|
39
39
|
<define name="standard-document">
|
|
40
40
|
<element name="standard-document">
|
|
41
41
|
<ref name="bibdata"/>
|
|
42
|
-
<optional>
|
|
43
|
-
<ref name="version"/>
|
|
44
|
-
</optional>
|
|
45
42
|
<optional>
|
|
46
43
|
<ref name="preface"/>
|
|
47
44
|
</optional>
|
|
@@ -59,34 +56,6 @@
|
|
|
59
56
|
<ref name="BibData"/>
|
|
60
57
|
</element>
|
|
61
58
|
</define>
|
|
62
|
-
<define name="version">
|
|
63
|
-
<element name="version">
|
|
64
|
-
<optional>
|
|
65
|
-
<ref name="vedition"/>
|
|
66
|
-
</optional>
|
|
67
|
-
<optional>
|
|
68
|
-
<ref name="revision-date"/>
|
|
69
|
-
</optional>
|
|
70
|
-
<zeroOrMore>
|
|
71
|
-
<ref name="draft"/>
|
|
72
|
-
</zeroOrMore>
|
|
73
|
-
</element>
|
|
74
|
-
</define>
|
|
75
|
-
<define name="vedition">
|
|
76
|
-
<element name="edition">
|
|
77
|
-
<data type="int"/>
|
|
78
|
-
</element>
|
|
79
|
-
</define>
|
|
80
|
-
<define name="revision-date">
|
|
81
|
-
<element name="revision-date">
|
|
82
|
-
<data type="date"/>
|
|
83
|
-
</element>
|
|
84
|
-
</define>
|
|
85
|
-
<define name="draft">
|
|
86
|
-
<element name="draft">
|
|
87
|
-
<text/>
|
|
88
|
-
</element>
|
|
89
|
-
</define>
|
|
90
59
|
<define name="preface">
|
|
91
60
|
<element name="preface">
|
|
92
61
|
<oneOrMore>
|
|
@@ -1068,6 +1037,9 @@
|
|
|
1068
1037
|
<optional>
|
|
1069
1038
|
<ref name="edition"/>
|
|
1070
1039
|
</optional>
|
|
1040
|
+
<optional>
|
|
1041
|
+
<ref name="version"/>
|
|
1042
|
+
</optional>
|
|
1071
1043
|
<zeroOrMore>
|
|
1072
1044
|
<ref name="biblionote"/>
|
|
1073
1045
|
</zeroOrMore>
|
|
@@ -96,6 +96,9 @@
|
|
|
96
96
|
<optional>
|
|
97
97
|
<ref name="edition"/>
|
|
98
98
|
</optional>
|
|
99
|
+
<optional>
|
|
100
|
+
<ref name="version"/>
|
|
101
|
+
</optional>
|
|
99
102
|
<zeroOrMore>
|
|
100
103
|
<ref name="biblionote"/>
|
|
101
104
|
</zeroOrMore>
|
|
@@ -178,6 +181,9 @@
|
|
|
178
181
|
<optional>
|
|
179
182
|
<ref name="edition"/>
|
|
180
183
|
</optional>
|
|
184
|
+
<optional>
|
|
185
|
+
<ref name="version"/>
|
|
186
|
+
</optional>
|
|
181
187
|
<zeroOrMore>
|
|
182
188
|
<ref name="biblionote"/>
|
|
183
189
|
</zeroOrMore>
|
|
@@ -762,9 +768,6 @@
|
|
|
762
768
|
<define name="iso-standard">
|
|
763
769
|
<element name="iso-standard">
|
|
764
770
|
<ref name="bibdata"/>
|
|
765
|
-
<optional>
|
|
766
|
-
<ref name="version"/>
|
|
767
|
-
</optional>
|
|
768
771
|
<zeroOrMore>
|
|
769
772
|
<ref name="termdocsource"/>
|
|
770
773
|
</zeroOrMore>
|
|
@@ -535,8 +535,6 @@ table.MsoISOTable
|
|
|
535
535
|
mso-yfti-tbllook:480;
|
|
536
536
|
mso-border-insideh:.75pt solid windowtext;
|
|
537
537
|
mso-border-insidev:.75pt solid windowtext;
|
|
538
|
-
mso-table-bspace:12.0pt;
|
|
539
|
-
mso-table-anchor-vertical:paragraph;
|
|
540
538
|
font-size:10.0pt;
|
|
541
539
|
font-family:$bodyfont;}
|
|
542
540
|
table.MsoISOTable tr
|
|
@@ -563,8 +561,6 @@ table.MsoTableGrid
|
|
|
563
561
|
mso-para-margin:0cm;
|
|
564
562
|
mso-para-margin-bottom:.0001pt;
|
|
565
563
|
mso-pagination:widow-orphan;
|
|
566
|
-
mso-table-bspace:12.0pt;
|
|
567
|
-
mso-table-anchor-vertical:paragraph;
|
|
568
564
|
font-size:10.0pt;
|
|
569
565
|
font-family:$bodyfont;}
|
|
570
566
|
td { page-break-inside:avoid; }
|
|
@@ -622,10 +618,6 @@ p.example, li.example, div.example, td.example
|
|
|
622
618
|
font-size:10.0pt;
|
|
623
619
|
font-family:$bodyfont;}
|
|
624
620
|
|
|
625
|
-
table.example {
|
|
626
|
-
margin-bottom:12pt;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
621
|
td.example p.MsoListParagraph {
|
|
630
622
|
font-size: 10.0pt;
|
|
631
623
|
}
|
|
@@ -215,7 +215,7 @@ table {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
@media screen {
|
|
218
|
-
img {
|
|
218
|
+
div.figure > img {
|
|
219
219
|
width: 100%;
|
|
220
220
|
height: auto;
|
|
221
221
|
}
|
|
@@ -522,17 +522,17 @@ p.document-stage {
|
|
|
522
522
|
list-style: none;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
ul li:before {
|
|
525
|
+
ul > li:before {
|
|
526
526
|
content: "\2014";
|
|
527
527
|
display: inline-block; width: 1em;
|
|
528
528
|
margin-left: -1.2em;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
ul li p:first-child {
|
|
531
|
+
ul > li p:first-child {
|
|
532
532
|
display: inline;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
ul li:first-child {
|
|
535
|
+
ul > li:first-child {
|
|
536
536
|
margin-top: 1em;
|
|
537
537
|
}
|
|
538
538
|
|
|
@@ -602,6 +602,18 @@ p.Biblio, p.NormRef {
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
+
.Admonition {
|
|
606
|
+
background-color: #ffcccc;
|
|
607
|
+
color: #47430c;
|
|
608
|
+
padding: 1.2em;
|
|
609
|
+
margin: 1em 0 1em 0;
|
|
610
|
+
|
|
611
|
+
p {
|
|
612
|
+
margin: 0;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
|
|
605
617
|
/*
|
|
606
618
|
3.8 Examples
|
|
607
619
|
*/
|
|
@@ -1034,6 +1046,18 @@ To top button
|
|
|
1034
1046
|
padding: 0 5px 0 5px;
|
|
1035
1047
|
}
|
|
1036
1048
|
|
|
1049
|
+
.Admonition {
|
|
1050
|
+
background-color: #ffcccc;
|
|
1051
|
+
color: #47430c;
|
|
1052
|
+
padding: 5px;
|
|
1053
|
+
margin: 2em 0 1em 0; }
|
|
1054
|
+
|
|
1055
|
+
.Admonition p {
|
|
1056
|
+
padding: 0 5px 0 5px;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1037
1061
|
nav {
|
|
1038
1062
|
line-height: 1;
|
|
1039
1063
|
}
|
|
@@ -1085,8 +1085,6 @@ table.MsoNormalTable
|
|
|
1085
1085
|
mso-para-margin:0cm;
|
|
1086
1086
|
mso-para-margin-bottom:.0001pt;
|
|
1087
1087
|
mso-pagination:widow-orphan;
|
|
1088
|
-
mso-table-anchor-vertical:paragraph;
|
|
1089
|
-
mso-table-bspace:12.0pt;
|
|
1090
1088
|
font-size:10.0pt;
|
|
1091
1089
|
font-family:$bodyfont;}
|
|
1092
1090
|
br.section
|
data/lib/isodoc/acme/metadata.rb
CHANGED
data/metanorma-acme.gemspec
CHANGED
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
spec.add_dependency "metanorma-standoc", "~> 1.0.8"
|
|
32
32
|
spec.add_dependency "isodoc", "~> 0.9.0"
|
|
33
33
|
|
|
34
|
-
spec.add_development_dependency "bundler", "~> 1
|
|
34
|
+
spec.add_development_dependency "bundler", "~> 2.0.1"
|
|
35
35
|
spec.add_development_dependency "byebug", "~> 9.1"
|
|
36
36
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
|
37
37
|
spec.add_development_dependency "guard", "~> 2.14"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-acme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version:
|
|
89
|
+
version: 2.0.1
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version:
|
|
96
|
+
version: 2.0.1
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: byebug
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|