metanorma-m3aawg 1.8.0 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/m3aawg/converter.rb +15 -11
- data/lib/asciidoctor/m3aawg/isodoc.rng +68 -18
- data/lib/isodoc/m3aawg/html/htmlstyle.css +4 -2
- data/lib/isodoc/m3aawg/html/htmlstyle.scss +4 -1
- data/lib/isodoc/m3aawg/html/m3d.css +0 -1
- data/lib/isodoc/m3aawg/html/m3d.scss +0 -1
- data/lib/isodoc/m3aawg/html/scripts.html +0 -1
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +298 -108
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +298 -108
- data/lib/metanorma/m3aawg/version.rb +1 -1
- data/metanorma-m3d.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98cf9edfce9695583f5c2efdc8d2931b1260877d0fa167dd00d889632cd769e0
|
4
|
+
data.tar.gz: a6b2395106f9837e137bdb9e24183c45534420858709af82bf1577a1ee5446dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad3dcafd0323b38225068e9c7f0047431e8ac30e2a11cfd9d0ce9aaca3db7b7d9a1323d6c310b460cb7a6784f013fc2ad3b5549ec0f217b664e06994215ba76f
|
7
|
+
data.tar.gz: ad5298efc2c57cb4f0040c7524a3ba3af0bf9f7457c46093f39ef56ab351b4b65b2b09965c8e5bb8777d7e89c40904473a0a1b726cde0f7c4a6ce8f1c6439e26
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require "asciidoctor/standoc/converter"
|
2
|
-
require
|
2
|
+
require "asciidoctor/generic/converter"
|
3
3
|
|
4
4
|
module Asciidoctor
|
5
5
|
module M3AAWG
|
@@ -11,19 +11,20 @@ module Asciidoctor
|
|
11
11
|
|
12
12
|
def metadata_committee(node, xml)
|
13
13
|
return unless node.attr("technical-committee")
|
14
|
+
|
14
15
|
xml.editorialgroup do |a|
|
15
16
|
a.committee node.attr("technical-committee"),
|
16
|
-
|
17
|
+
**attr_code(type: node.attr("technical-committee-type"))
|
17
18
|
i = 2
|
18
|
-
while node.attr("technical-committee_#{i}")
|
19
|
+
while node.attr("technical-committee_#{i}")
|
19
20
|
a.committee node.attr("technical-committee_#{i}"),
|
20
|
-
|
21
|
+
**attr_code(type: node.attr("technical-committee-type_#{i}"))
|
21
22
|
i += 1
|
22
23
|
end
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
26
|
-
|
27
|
+
def configuration
|
27
28
|
Metanorma::M3AAWG.configuration
|
28
29
|
end
|
29
30
|
|
@@ -33,11 +34,14 @@ module Asciidoctor
|
|
33
34
|
end
|
34
35
|
|
35
36
|
def outputs(node, ret)
|
36
|
-
File.open(@filename
|
37
|
-
presentation_xml_converter(node).convert(@filename
|
38
|
-
html_converter(node).convert(@filename
|
39
|
-
|
40
|
-
|
37
|
+
File.open("#{@filename}.xml", "w:UTF-8") { |f| f.write(ret) }
|
38
|
+
presentation_xml_converter(node).convert("#{@filename}.xml")
|
39
|
+
html_converter(node).convert("#{@filename}.presentation.xml", nil,
|
40
|
+
false, "#{@filename}.html")
|
41
|
+
doc_converter(node).convert("#{@filename}.presentation.xml", nil,
|
42
|
+
false, "#{@filename}.doc")
|
43
|
+
pdf_converter(node)&.convert("#{@filename}.presentation.xml", nil,
|
44
|
+
false, "#{@filename}.pdf")
|
41
45
|
end
|
42
46
|
|
43
47
|
def sections_cleanup(xml)
|
@@ -62,7 +66,7 @@ module Asciidoctor
|
|
62
66
|
def pdf_converter(node)
|
63
67
|
return nil if node.attr("no-pdf")
|
64
68
|
|
65
|
-
IsoDoc::M3AAWG::PdfConvert.new(
|
69
|
+
IsoDoc::M3AAWG::PdfConvert.new(pdf_extract_attributes(node))
|
66
70
|
end
|
67
71
|
end
|
68
72
|
end
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<attribute name="alt"/>
|
59
59
|
</optional>
|
60
60
|
<optional>
|
61
|
-
<attribute name="
|
61
|
+
<attribute name="update-type">
|
62
62
|
<data type="boolean"/>
|
63
63
|
</attribute>
|
64
64
|
</optional>
|
@@ -1796,6 +1796,20 @@
|
|
1796
1796
|
<data type="ID"/>
|
1797
1797
|
</attribute>
|
1798
1798
|
</optional>
|
1799
|
+
<optional>
|
1800
|
+
<attribute name="language"/>
|
1801
|
+
</optional>
|
1802
|
+
<optional>
|
1803
|
+
<attribute name="script"/>
|
1804
|
+
</optional>
|
1805
|
+
<optional>
|
1806
|
+
<attribute name="tag"/>
|
1807
|
+
</optional>
|
1808
|
+
<optional>
|
1809
|
+
<attribute name="multilingual-rendering">
|
1810
|
+
<ref name="MultilingualRenderingType"/>
|
1811
|
+
</attribute>
|
1812
|
+
</optional>
|
1799
1813
|
<oneOrMore>
|
1800
1814
|
<ref name="preferred"/>
|
1801
1815
|
</oneOrMore>
|
@@ -1814,9 +1828,6 @@
|
|
1814
1828
|
<optional>
|
1815
1829
|
<ref name="termsubject"/>
|
1816
1830
|
</optional>
|
1817
|
-
<optional>
|
1818
|
-
<ref name="termusage"/>
|
1819
|
-
</optional>
|
1820
1831
|
<oneOrMore>
|
1821
1832
|
<ref name="termdefinition"/>
|
1822
1833
|
</oneOrMore>
|
@@ -1880,17 +1891,37 @@
|
|
1880
1891
|
</attribute>
|
1881
1892
|
</optional>
|
1882
1893
|
<optional>
|
1883
|
-
<attribute name="
|
1894
|
+
<attribute name="geographic-area"/>
|
1884
1895
|
</optional>
|
1885
1896
|
<choice>
|
1886
1897
|
<ref name="expression_designation"/>
|
1887
1898
|
<ref name="letter_symbol_designation"/>
|
1888
1899
|
<ref name="graphical_symbol_designation"/>
|
1889
1900
|
</choice>
|
1901
|
+
<optional>
|
1902
|
+
<ref name="fieldofapplication"/>
|
1903
|
+
</optional>
|
1904
|
+
<optional>
|
1905
|
+
<ref name="usageinfo"/>
|
1906
|
+
</optional>
|
1890
1907
|
<zeroOrMore>
|
1891
1908
|
<ref name="termsource"/>
|
1892
1909
|
</zeroOrMore>
|
1893
1910
|
</define>
|
1911
|
+
<define name="fieldofapplication">
|
1912
|
+
<element name="field-of-application">
|
1913
|
+
<oneOrMore>
|
1914
|
+
<ref name="PureTextElement"/>
|
1915
|
+
</oneOrMore>
|
1916
|
+
</element>
|
1917
|
+
</define>
|
1918
|
+
<define name="usageinfo">
|
1919
|
+
<element name="usage-info">
|
1920
|
+
<oneOrMore>
|
1921
|
+
<ref name="PureTextElement"/>
|
1922
|
+
</oneOrMore>
|
1923
|
+
</element>
|
1924
|
+
</define>
|
1894
1925
|
<define name="letter_symbol_designation">
|
1895
1926
|
<element name="letter-symbol">
|
1896
1927
|
<optional>
|
@@ -1946,7 +1977,7 @@
|
|
1946
1977
|
</zeroOrMore>
|
1947
1978
|
</element>
|
1948
1979
|
<optional>
|
1949
|
-
<element name="
|
1980
|
+
<element name="abbreviation-type">
|
1950
1981
|
<ref name="AbbreviationType"/>
|
1951
1982
|
</element>
|
1952
1983
|
</optional>
|
@@ -1956,7 +1987,7 @@
|
|
1956
1987
|
</element>
|
1957
1988
|
</optional>
|
1958
1989
|
<optional>
|
1959
|
-
<element name="
|
1990
|
+
<element name="grammar-info">
|
1960
1991
|
<ref name="Grammar"/>
|
1961
1992
|
</element>
|
1962
1993
|
</optional>
|
@@ -1983,6 +2014,11 @@
|
|
1983
2014
|
<ref name="GrammarGender"/>
|
1984
2015
|
</element>
|
1985
2016
|
</zeroOrMore>
|
2017
|
+
<zeroOrMore>
|
2018
|
+
<element name="number">
|
2019
|
+
<ref name="GrammarNumber"/>
|
2020
|
+
</element>
|
2021
|
+
</zeroOrMore>
|
1986
2022
|
<optional>
|
1987
2023
|
<element name="isPreposition">
|
1988
2024
|
<data type="boolean"/>
|
@@ -2014,7 +2050,7 @@
|
|
2014
2050
|
</element>
|
2015
2051
|
</optional>
|
2016
2052
|
<zeroOrMore>
|
2017
|
-
<element name="
|
2053
|
+
<element name="grammar-value">
|
2018
2054
|
<text/>
|
2019
2055
|
</element>
|
2020
2056
|
</zeroOrMore>
|
@@ -2027,6 +2063,13 @@
|
|
2027
2063
|
<value>common</value>
|
2028
2064
|
</choice>
|
2029
2065
|
</define>
|
2066
|
+
<define name="GrammarNumber">
|
2067
|
+
<choice>
|
2068
|
+
<value>singular</value>
|
2069
|
+
<value>dual</value>
|
2070
|
+
<value>plural</value>
|
2071
|
+
</choice>
|
2072
|
+
</define>
|
2030
2073
|
<define name="termdomain">
|
2031
2074
|
<element name="domain">
|
2032
2075
|
<oneOrMore>
|
@@ -2041,13 +2084,6 @@
|
|
2041
2084
|
</oneOrMore>
|
2042
2085
|
</element>
|
2043
2086
|
</define>
|
2044
|
-
<define name="termusage">
|
2045
|
-
<element name="usageinfo">
|
2046
|
-
<oneOrMore>
|
2047
|
-
<ref name="BasicBlock"/>
|
2048
|
-
</oneOrMore>
|
2049
|
-
</element>
|
2050
|
-
</define>
|
2051
2087
|
<define name="termdefinition">
|
2052
2088
|
<element name="definition">
|
2053
2089
|
<choice>
|
@@ -2061,9 +2097,17 @@
|
|
2061
2097
|
</element>
|
2062
2098
|
</define>
|
2063
2099
|
<define name="verbaldefinition">
|
2064
|
-
<element name="
|
2100
|
+
<element name="verbal-definition">
|
2065
2101
|
<oneOrMore>
|
2066
|
-
<
|
2102
|
+
<choice>
|
2103
|
+
<ref name="paragraph"/>
|
2104
|
+
<ref name="dl"/>
|
2105
|
+
<ref name="ol"/>
|
2106
|
+
<ref name="ul"/>
|
2107
|
+
<ref name="table"/>
|
2108
|
+
<ref name="figure"/>
|
2109
|
+
<ref name="formula"/>
|
2110
|
+
</choice>
|
2067
2111
|
</oneOrMore>
|
2068
2112
|
<zeroOrMore>
|
2069
2113
|
<ref name="termsource"/>
|
@@ -2071,7 +2115,7 @@
|
|
2071
2115
|
</element>
|
2072
2116
|
</define>
|
2073
2117
|
<define name="nonverbalrep">
|
2074
|
-
<element name="
|
2118
|
+
<element name="non-verbal-representation">
|
2075
2119
|
<oneOrMore>
|
2076
2120
|
<choice>
|
2077
2121
|
<ref name="table"/>
|
@@ -2163,6 +2207,12 @@
|
|
2163
2207
|
<value>modified</value>
|
2164
2208
|
</choice>
|
2165
2209
|
</attribute>
|
2210
|
+
<attribute name="type">
|
2211
|
+
<choice>
|
2212
|
+
<value>authoritative</value>
|
2213
|
+
<value>lineage</value>
|
2214
|
+
</choice>
|
2215
|
+
</attribute>
|
2166
2216
|
<ref name="origin"/>
|
2167
2217
|
<optional>
|
2168
2218
|
<ref name="modification"/>
|
@@ -597,10 +597,12 @@ h3 {
|
|
597
597
|
color: #cfcfcf;
|
598
598
|
content: "\f0c1"; } }
|
599
599
|
|
600
|
-
.TermNum
|
601
|
-
color: black;
|
600
|
+
.TermNum {
|
602
601
|
font-weight: 400; }
|
603
602
|
|
603
|
+
.TermNum, .Terms, .AltTerms {
|
604
|
+
color: black; }
|
605
|
+
|
604
606
|
p.TermNum {
|
605
607
|
font-size: 0.9em;
|
606
608
|
line-height: 1em;
|
@@ -312,7 +312,6 @@ p.Terms, li.Terms, div.Terms {
|
|
312
312
|
mso-fareast-font-family: {{headerfont}};
|
313
313
|
mso-bidi-font-family: {{headerfont}};
|
314
314
|
mso-ansi-language: EN-GB;
|
315
|
-
font-weight: bold;
|
316
315
|
mso-bidi-font-weight: normal; }
|
317
316
|
|
318
317
|
p.AltTerms, li.AltTerms, div.AltTerms {
|
@@ -299,7 +299,6 @@ p.Terms, li.Terms, div.Terms
|
|
299
299
|
mso-fareast-font-family:$headerfont;
|
300
300
|
mso-bidi-font-family:$headerfont;
|
301
301
|
mso-ansi-language:EN-GB;
|
302
|
-
font-weight:bold;
|
303
302
|
mso-bidi-font-weight:normal;}
|
304
303
|
p.AltTerms, li.AltTerms, div.AltTerms
|
305
304
|
{mso-style-name:"AltTerm\(s\)";
|