metanorma-cc 1.7.11 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/quickstart.adoc +2 -2
- data/lib/asciidoctor/cc/basicdoc.rng +21 -4
- data/lib/asciidoctor/cc/converter.rb +14 -12
- data/lib/asciidoctor/cc/isodoc.rng +429 -76
- data/lib/asciidoctor/cc/reqt.rng +23 -2
- data/lib/isodoc/cc/cc.standard.xsl +198 -20
- data/lib/isodoc/cc/html/wordstyle.css +11 -0
- data/lib/isodoc/cc/html/wordstyle.scss +13 -2
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma-cc.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6773b2389fcbb144d384002256bd7ba303aab7baa25f20ac37b0d40af9ae451
|
4
|
+
data.tar.gz: ad6d676e3086792134308b0e0abeb32f4a21b65141a923ddb8fe4303d8d822b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0bc68cc852e0ed53dc3a97009a8d4ebd73d0deadc1950bb34c77e2587d11c4840e1f56308c597ed821d2cae87c8b8a681c94902fc811c6dd62662c7f69e58b
|
7
|
+
data.tar.gz: 8fc55cd529d92cdaf66d93f37979b618df59d3a1e2883480661660795d4f1676756dfee017efc2977c39693cfdd6ff7d44bf0a48748b038bcce7b0a7bf8a9606
|
data/docs/quickstart.adoc
CHANGED
@@ -19,7 +19,7 @@ Assuming you have Docker installed, it’s as easy as:
|
|
19
19
|
|
20
20
|
[source,console]
|
21
21
|
--
|
22
|
-
docker pull
|
22
|
+
docker pull metanorma/metanorma
|
23
23
|
--
|
24
24
|
|
25
25
|
|
@@ -38,7 +38,7 @@ To compile the document, run the Docker container as follows:
|
|
38
38
|
|
39
39
|
[source,console]
|
40
40
|
--
|
41
|
-
docker run -v "$(pwd)":/metanorma/ -w /metanorma
|
41
|
+
docker run -v "$(pwd)":/metanorma/ -w /metanorma metanorma/metanorma metanorma -t csd -x xml,html,pdf,doc rfc6350.adoc
|
42
42
|
--
|
43
43
|
|
44
44
|
NOTE: If you use Metanorma-CLI instead of Docker,
|
@@ -624,6 +624,9 @@
|
|
624
624
|
<choice>
|
625
625
|
<ref name="PureTextElement"/>
|
626
626
|
<ref name="stem"/>
|
627
|
+
<ref name="eref"/>
|
628
|
+
<ref name="xref"/>
|
629
|
+
<ref name="hyperlink"/>
|
627
630
|
</choice>
|
628
631
|
</zeroOrMore>
|
629
632
|
</element>
|
@@ -634,6 +637,9 @@
|
|
634
637
|
<choice>
|
635
638
|
<ref name="PureTextElement"/>
|
636
639
|
<ref name="stem"/>
|
640
|
+
<ref name="eref"/>
|
641
|
+
<ref name="xref"/>
|
642
|
+
<ref name="hyperlink"/>
|
637
643
|
</choice>
|
638
644
|
</zeroOrMore>
|
639
645
|
</element>
|
@@ -641,7 +647,12 @@
|
|
641
647
|
<define name="tt">
|
642
648
|
<element name="tt">
|
643
649
|
<zeroOrMore>
|
644
|
-
<
|
650
|
+
<choice>
|
651
|
+
<ref name="PureTextElement"/>
|
652
|
+
<ref name="eref"/>
|
653
|
+
<ref name="xref"/>
|
654
|
+
<ref name="hyperlink"/>
|
655
|
+
</choice>
|
645
656
|
</zeroOrMore>
|
646
657
|
</element>
|
647
658
|
</define>
|
@@ -822,7 +833,9 @@
|
|
822
833
|
<attribute name="alt"/>
|
823
834
|
</optional>
|
824
835
|
<ref name="CitationType"/>
|
825
|
-
<
|
836
|
+
<oneOrMore>
|
837
|
+
<ref name="PureTextElement"/>
|
838
|
+
</oneOrMore>
|
826
839
|
</define>
|
827
840
|
<define name="hyperlink">
|
828
841
|
<element name="link">
|
@@ -835,7 +848,9 @@
|
|
835
848
|
<optional>
|
836
849
|
<attribute name="alt"/>
|
837
850
|
</optional>
|
838
|
-
<
|
851
|
+
<oneOrMore>
|
852
|
+
<ref name="PureTextElement"/>
|
853
|
+
</oneOrMore>
|
839
854
|
</element>
|
840
855
|
</define>
|
841
856
|
<define name="xref">
|
@@ -849,7 +864,9 @@
|
|
849
864
|
<optional>
|
850
865
|
<attribute name="alt"/>
|
851
866
|
</optional>
|
852
|
-
<
|
867
|
+
<oneOrMore>
|
868
|
+
<ref name="PureTextElement"/>
|
869
|
+
</oneOrMore>
|
853
870
|
</element>
|
854
871
|
</define>
|
855
872
|
<define name="fn">
|
@@ -4,7 +4,7 @@ require "isodoc/cc/word_convert"
|
|
4
4
|
require "isodoc/cc/presentation_xml_convert"
|
5
5
|
require "metanorma/cc"
|
6
6
|
require "asciidoctor/standoc/converter"
|
7
|
-
require
|
7
|
+
require "asciidoctor/generic/converter"
|
8
8
|
require_relative "validate_section"
|
9
9
|
|
10
10
|
module Asciidoctor
|
@@ -21,27 +21,28 @@ module Asciidoctor
|
|
21
21
|
|
22
22
|
def metadata_committee(node, xml)
|
23
23
|
return unless node.attr("technical-committee")
|
24
|
+
|
24
25
|
xml.editorialgroup do |a|
|
25
26
|
a.committee node.attr("technical-committee"),
|
26
|
-
|
27
|
+
**attr_code(type: node.attr("technical-committee-type"))
|
27
28
|
i = 2
|
28
|
-
while node.attr("technical-committee_#{i}")
|
29
|
+
while node.attr("technical-committee_#{i}")
|
29
30
|
a.committee node.attr("technical-committee_#{i}"),
|
30
|
-
|
31
|
+
**attr_code(type: node.attr("technical-committee-type_#{i}"))
|
31
32
|
i += 1
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
37
|
def outputs(node, ret)
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
File.open(@filename + ".xml", "w:UTF-8") { |f| f.write(ret) }
|
39
|
+
presentation_xml_converter(node).convert(@filename + ".xml")
|
40
|
+
html_converter(node).convert(@filename + ".presentation.xml",
|
41
|
+
nil, false, "#{@filename}.html")
|
42
|
+
doc_converter(node).convert(@filename + ".presentation.xml",
|
43
|
+
nil, false, "#{@filename}.doc")
|
44
|
+
pdf_converter(node)&.convert(@filename + ".presentation.xml",
|
45
|
+
nil, false, "#{@filename}.pdf")
|
45
46
|
end
|
46
47
|
|
47
48
|
def html_converter(node)
|
@@ -50,6 +51,7 @@ module Asciidoctor
|
|
50
51
|
|
51
52
|
def pdf_converter(node)
|
52
53
|
return if node.attr("no-pdf")
|
54
|
+
|
53
55
|
IsoDoc::CC::PdfConvert.new(html_extract_attributes(node))
|
54
56
|
end
|
55
57
|
|