metanorma-generic 2.0.4 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/generic/base_convert.rb +1 -1
- data/lib/isodoc/generic/html/generic.scss +16 -10
- data/lib/isodoc/generic/html/html_generic_titlepage.html +2 -0
- data/lib/isodoc/generic/html/htmlstyle.scss +1 -0
- data/lib/isodoc/generic/html/word_generic_titlepage.html +4 -0
- data/lib/isodoc/generic/html_convert.rb +20 -14
- data/lib/isodoc/generic/i18n.rb +10 -5
- data/lib/isodoc/generic/init.rb +2 -2
- data/lib/isodoc/generic/presentation_xml_convert.rb +4 -5
- data/lib/metanorma/generic/biblio.rng +94 -44
- data/lib/metanorma/generic/isodoc.rng +65 -0
- data/lib/metanorma/generic/version.rb +1 -1
- data/lib/metanorma/generic.rb +0 -1
- data/metanorma-generic.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: f62fbca91a932dfd2962b5bc10e5fcb2ee58b26dbc1caead516decf679fa1fe3
|
4
|
+
data.tar.gz: 3b940ed44e676a48c5d263e57651e5e18883148fedc04776c27e31821552b083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af9a7f040d1a5202ab38d52b34705bdff7130c3513a479bf2f9530bd9f012869359408c09da7e644995b897c925a3e2ffd2131d8f85f06b78c13de6734206f16
|
7
|
+
data.tar.gz: b4fa73685306cff6096ed6cb7689e755feee0666b494d56ea68d940e31f373ae146293c2fd4ccef9b4b025bb66db965762d2f4f4c852aa025dd7596d1fdea992
|
@@ -14,7 +14,7 @@ module IsoDoc
|
|
14
14
|
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
15
15
|
d["id"] = h2["id"]
|
16
16
|
d.children.first.previous =
|
17
|
-
"<strong>#{h2.remove.children.to_xml}</strong
|
17
|
+
"<strong>#{h2.remove.children.to_xml}</strong> "
|
18
18
|
end
|
19
19
|
docxml
|
20
20
|
end
|
@@ -105,7 +105,7 @@ p.AdmonitionTitle, p.RecommendationTitle
|
|
105
105
|
mso-fareast-font-family:$bodyfont;
|
106
106
|
mso-bidi-font-family:$bodyfont;
|
107
107
|
mso-ansi-language:EN-GB;}
|
108
|
-
p.TableTitle
|
108
|
+
p.TableTitle, p.ListTitle
|
109
109
|
{mso-style-unhide:no;
|
110
110
|
mso-style-qformat:yes;
|
111
111
|
mso-style-parent:"";
|
@@ -135,13 +135,14 @@ p.Note, div.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote
|
|
135
135
|
line-height:12.0pt;
|
136
136
|
mso-pagination:widow-orphan;
|
137
137
|
tab-stops:20.15pt;
|
138
|
-
font-size:10.0pt;
|
139
138
|
mso-bidi-font-size:11.0pt;
|
140
|
-
font-family:$bodyfont;
|
141
|
-
font-size:10.0pt;
|
142
139
|
mso-fareast-font-family:$bodyfont;
|
143
140
|
mso-bidi-font-family:$bodyfont;
|
144
141
|
mso-ansi-language:EN-GB;}
|
142
|
+
p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
|
143
|
+
font-family:$bodyfont;
|
144
|
+
font-size:10.0pt;
|
145
|
+
}
|
145
146
|
p.ANNEX, li.ANNEX, div.ANNEX
|
146
147
|
{mso-style-name:ANNEX;
|
147
148
|
mso-style-priority:10;
|
@@ -471,11 +472,13 @@ p.Quote, li.Quote, div.Quote
|
|
471
472
|
line-height:12.0pt;
|
472
473
|
mso-pagination:widow-orphan;
|
473
474
|
tab-stops:20.15pt;
|
474
|
-
font-size:10.5pt;
|
475
|
-
font-family:$bodyfont;
|
476
475
|
mso-fareast-font-family:$bodyfont;
|
477
476
|
mso-bidi-font-family:$bodyfont;
|
478
477
|
mso-ansi-language:EN-GB;}
|
478
|
+
p.Quote, li.Quote {
|
479
|
+
font-size:10.5pt;
|
480
|
+
font-family:$bodyfont;
|
481
|
+
}
|
479
482
|
p.QuoteAttribution
|
480
483
|
{text-align:right;
|
481
484
|
mso-style-priority:99;
|
@@ -505,8 +508,6 @@ p.Admonition, li.Admonition, div.Admonition
|
|
505
508
|
mso-border-themecolor:accent1;
|
506
509
|
padding:0cm;
|
507
510
|
mso-padding-alt:10.0pt 10.0pt 10.0pt 10.0pt;
|
508
|
-
font-size:12.0pt;
|
509
|
-
font-family:$bodyfont;
|
510
511
|
mso-ascii-font-family:$bodyfont;
|
511
512
|
mso-ascii-theme-font:minor-latin;
|
512
513
|
mso-fareast-font-family:$bodyfont;
|
@@ -519,6 +520,10 @@ p.Admonition, li.Admonition, div.Admonition
|
|
519
520
|
mso-themecolor:accent1;
|
520
521
|
mso-ansi-language:EN-AU;
|
521
522
|
font-style:italic;}
|
523
|
+
p.Admonition, li.Admonition {
|
524
|
+
font-size:12.0pt;
|
525
|
+
font-family:$bodyfont;
|
526
|
+
}
|
522
527
|
p.Code, li.Code, div.Code
|
523
528
|
{mso-style-name:Code;
|
524
529
|
mso-style-priority:16;
|
@@ -732,12 +737,13 @@ div.example {
|
|
732
737
|
p.example, li.example, td.example {
|
733
738
|
margin-right: 0pt;
|
734
739
|
margin-left: 0pt;
|
740
|
+
font-size:10.0pt;
|
741
|
+
font-family:$bodyfont;
|
735
742
|
}
|
736
743
|
|
737
744
|
p.example, li.example, div.example, td.example {
|
738
745
|
mso-pagination:none;
|
739
|
-
|
740
|
-
font-family:$bodyfont;}
|
746
|
+
}
|
741
747
|
|
742
748
|
td.example p.MsoListParagraph {
|
743
749
|
font-size: 10.0pt;
|
@@ -64,6 +64,10 @@ documentation.</span><span lang="EN-GB" style='font-size:10.0pt;mso-bidi-font-si
|
|
64
64
|
|
65
65
|
{% endif %}
|
66
66
|
|
67
|
+
<div class="coverpage-warning" id="coverpage-note-destination" align="center" style='margin-bottom:6.0pt;text-align:center;
|
68
|
+
border:none;mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:
|
69
|
+
1.0pt 4.0pt 1.0pt 4.0pt'/>
|
70
|
+
|
67
71
|
</div>
|
68
72
|
|
69
73
|
<p class="MsoNormal" align="center" style='text-align:center'><span lang="EN-GB"
|
@@ -4,7 +4,6 @@ require "isodoc"
|
|
4
4
|
|
5
5
|
module IsoDoc
|
6
6
|
module Generic
|
7
|
-
|
8
7
|
# A {Converter} implementation that generates HTML output, and a document
|
9
8
|
# schema encapsulation of the document for validation
|
10
9
|
#
|
@@ -18,19 +17,25 @@ module IsoDoc
|
|
18
17
|
attr_accessor :_file
|
19
18
|
end
|
20
19
|
|
21
|
-
def self.inherited(
|
22
|
-
k._file = caller_locations.first.absolute_path
|
20
|
+
def self.inherited(k)
|
21
|
+
k._file = caller_locations(1..1).first.absolute_path
|
23
22
|
end
|
24
23
|
|
25
24
|
def default_fonts(options)
|
26
25
|
{
|
27
26
|
bodyfont: (
|
28
|
-
options[:script] == "Hans"
|
29
|
-
|
27
|
+
if options[:script] == "Hans"
|
28
|
+
'"Source Han Sans",serif'
|
29
|
+
else
|
30
|
+
configuration.html_bodyfont || '"Overpass",sans-serif'
|
31
|
+
end
|
30
32
|
),
|
31
33
|
headerfont: (
|
32
|
-
options[:script] == "Hans"
|
33
|
-
|
34
|
+
if options[:script] == "Hans"
|
35
|
+
'"Source Han Sans",sans-serif'
|
36
|
+
else
|
37
|
+
configuration.html_headerfont || '"Overpass",sans-serif'
|
38
|
+
end
|
34
39
|
),
|
35
40
|
monospacefont: configuration.html_monospacefont || '"Space Mono",monospace',
|
36
41
|
normalfontsize: configuration.html_normalfontsize,
|
@@ -43,21 +48,23 @@ module IsoDoc
|
|
43
48
|
def default_file_locations(_options)
|
44
49
|
{
|
45
50
|
htmlstylesheet: baselocation(configuration.htmlstylesheet) ||
|
46
|
-
|
51
|
+
html_doc_path("htmlstyle.scss"),
|
47
52
|
htmlcoverpage: baselocation(configuration.htmlcoverpage) ||
|
48
|
-
|
53
|
+
html_doc_path("html_generic_titlepage.html"),
|
49
54
|
htmlintropage: baselocation(configuration.htmlintropage) ||
|
50
|
-
|
55
|
+
html_doc_path("html_generic_intro.html"),
|
51
56
|
scripts: baselocation(configuration.scripts),
|
52
|
-
i18nyaml: (configuration.i18nyaml.is_a?(String)
|
53
|
-
|
57
|
+
i18nyaml: (if configuration.i18nyaml.is_a?(String)
|
58
|
+
baselocation(configuration.i18nyaml)
|
59
|
+
end),
|
54
60
|
}.transform_values { |v| v&.empty? ? nil : v }
|
55
61
|
end
|
56
62
|
|
57
63
|
def googlefonts
|
58
64
|
return unless configuration.webfont
|
65
|
+
|
59
66
|
Array(configuration.webfont).map do |x|
|
60
|
-
%{<link href="#{x
|
67
|
+
%{<link href="#{x}" rel="stylesheet"/>}
|
61
68
|
end.join("\n")
|
62
69
|
end
|
63
70
|
|
@@ -66,4 +73,3 @@ module IsoDoc
|
|
66
73
|
end
|
67
74
|
end
|
68
75
|
end
|
69
|
-
|
data/lib/isodoc/generic/i18n.rb
CHANGED
@@ -7,17 +7,22 @@ module IsoDoc
|
|
7
7
|
attr_accessor :_file
|
8
8
|
end
|
9
9
|
|
10
|
-
def self.inherited(
|
11
|
-
k._file = caller_locations.first.absolute_path
|
10
|
+
def self.inherited(k)
|
11
|
+
k._file = caller_locations(1..1).first.absolute_path
|
12
12
|
end
|
13
13
|
|
14
14
|
def load_yaml1(lang, script)
|
15
15
|
return super unless configuration.i18nyaml
|
16
|
-
|
17
|
-
|
16
|
+
|
17
|
+
file = if configuration.i18nyaml.is_a?(Hash)
|
18
|
+
configuration.i18nyaml[lang]
|
19
|
+
else
|
20
|
+
configuration.i18nyaml
|
21
|
+
end
|
18
22
|
return super if file.nil?
|
23
|
+
|
19
24
|
y = YAML.load_file(baselocation(file))
|
20
|
-
super.
|
25
|
+
super.deep_merge(y)
|
21
26
|
end
|
22
27
|
|
23
28
|
include Utils
|
data/lib/isodoc/generic/init.rb
CHANGED
@@ -11,7 +11,7 @@ module IsoDoc
|
|
11
11
|
@meta = Metadata.new(lang, script, i18n)
|
12
12
|
end
|
13
13
|
|
14
|
-
def xref_init(lang, script,
|
14
|
+
def xref_init(lang, script, _klass, i18n, options)
|
15
15
|
html = HtmlConvert.new(language: lang, script: script)
|
16
16
|
@xrefs = Xref.new(lang, script, html, i18n, options)
|
17
17
|
end
|
@@ -20,7 +20,7 @@ module IsoDoc
|
|
20
20
|
f = Metanorma::Generic.configuration.i18nyaml
|
21
21
|
f = nil unless f.is_a? String
|
22
22
|
@i18n = I18n.new(
|
23
|
-
lang, script, i18nyaml || f || @i18nyaml)
|
23
|
+
lang, script, i18nyaml: i18nyaml || f || @i18nyaml)
|
24
24
|
end
|
25
25
|
|
26
26
|
include Utils
|
@@ -5,16 +5,15 @@ require "isodoc"
|
|
5
5
|
module IsoDoc
|
6
6
|
module Generic
|
7
7
|
class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
|
8
|
-
def annex1(
|
9
|
-
lbl = @xrefs.anchor(
|
10
|
-
if t =
|
8
|
+
def annex1(elem)
|
9
|
+
lbl = @xrefs.anchor(elem["id"], :label)
|
10
|
+
if t = elem.at(ns("./title"))
|
11
11
|
t.children = "<strong>#{t.children.to_xml}</strong>"
|
12
12
|
end
|
13
|
-
prefix_name(
|
13
|
+
prefix_name(elem, "<br/>", lbl, "title")
|
14
14
|
end
|
15
15
|
|
16
16
|
include Init
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
@@ -527,7 +527,7 @@
|
|
527
527
|
</define>
|
528
528
|
<define name="LocalityType">
|
529
529
|
<data type="string">
|
530
|
-
<param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
530
|
+
<param name="pattern">section|clause|part|paragraph|chapter|page|title|line|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
531
531
|
</data>
|
532
532
|
</define>
|
533
533
|
<define name="referenceFrom">
|
@@ -614,12 +614,12 @@
|
|
614
614
|
<optional>
|
615
615
|
<ref name="fetched"/>
|
616
616
|
</optional>
|
617
|
-
<
|
618
|
-
<oneOrMore>
|
619
|
-
<ref name="btitle"/>
|
620
|
-
</oneOrMore>
|
617
|
+
<optional>
|
621
618
|
<ref name="formattedref"/>
|
622
|
-
</
|
619
|
+
</optional>
|
620
|
+
<oneOrMore>
|
621
|
+
<ref name="btitle"/>
|
622
|
+
</oneOrMore>
|
623
623
|
<zeroOrMore>
|
624
624
|
<ref name="bsource"/>
|
625
625
|
</zeroOrMore>
|
@@ -677,6 +677,9 @@
|
|
677
677
|
<zeroOrMore>
|
678
678
|
<ref name="extent"/>
|
679
679
|
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
680
683
|
<zeroOrMore>
|
681
684
|
<ref name="accesslocation"/>
|
682
685
|
</zeroOrMore>
|
@@ -848,17 +851,46 @@
|
|
848
851
|
</define>
|
849
852
|
<define name="bplace">
|
850
853
|
<element name="place">
|
851
|
-
<
|
852
|
-
<
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
854
|
+
<choice>
|
855
|
+
<text/>
|
856
|
+
<group>
|
857
|
+
<ref name="bibliocity"/>
|
858
|
+
<zeroOrMore>
|
859
|
+
<ref name="biblioregion"/>
|
860
|
+
</zeroOrMore>
|
861
|
+
<zeroOrMore>
|
862
|
+
<ref name="bibliocountry"/>
|
863
|
+
</zeroOrMore>
|
864
|
+
</group>
|
865
|
+
</choice>
|
866
|
+
</element>
|
867
|
+
</define>
|
868
|
+
<define name="bibliocity">
|
869
|
+
<element name="city">
|
859
870
|
<text/>
|
860
871
|
</element>
|
861
872
|
</define>
|
873
|
+
<define name="biblioregion">
|
874
|
+
<element name="region">
|
875
|
+
<ref name="RegionType"/>
|
876
|
+
</element>
|
877
|
+
</define>
|
878
|
+
<define name="bibliocountry">
|
879
|
+
<element name="country">
|
880
|
+
<ref name="RegionType"/>
|
881
|
+
</element>
|
882
|
+
</define>
|
883
|
+
<define name="RegionType">
|
884
|
+
<optional>
|
885
|
+
<attribute name="iso"/>
|
886
|
+
</optional>
|
887
|
+
<optional>
|
888
|
+
<attribute name="recommended">
|
889
|
+
<data type="boolean"/>
|
890
|
+
</attribute>
|
891
|
+
</optional>
|
892
|
+
<text/>
|
893
|
+
</define>
|
862
894
|
<define name="bprice">
|
863
895
|
<element name="price">
|
864
896
|
<attribute name="currency"/>
|
@@ -922,9 +954,29 @@
|
|
922
954
|
<text/>
|
923
955
|
</element>
|
924
956
|
</define>
|
957
|
+
<define name="sizevalue">
|
958
|
+
<element name="value">
|
959
|
+
<attribute name="type"/>
|
960
|
+
<text/>
|
961
|
+
</element>
|
962
|
+
</define>
|
963
|
+
<define name="bibliographic_size">
|
964
|
+
<element name="size">
|
965
|
+
<oneOrMore>
|
966
|
+
<ref name="sizevalue"/>
|
967
|
+
</oneOrMore>
|
968
|
+
</element>
|
969
|
+
</define>
|
925
970
|
<define name="extent">
|
926
971
|
<element name="extent">
|
927
|
-
<
|
972
|
+
<choice>
|
973
|
+
<zeroOrMore>
|
974
|
+
<ref name="locality"/>
|
975
|
+
</zeroOrMore>
|
976
|
+
<zeroOrMore>
|
977
|
+
<ref name="localityStack"/>
|
978
|
+
</zeroOrMore>
|
979
|
+
</choice>
|
928
980
|
</element>
|
929
981
|
</define>
|
930
982
|
<define name="series">
|
@@ -934,36 +986,34 @@
|
|
934
986
|
<ref name="SeriesType"/>
|
935
987
|
</attribute>
|
936
988
|
</optional>
|
937
|
-
<
|
989
|
+
<optional>
|
938
990
|
<ref name="formattedref"/>
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
</group>
|
966
|
-
</choice>
|
991
|
+
</optional>
|
992
|
+
<ref name="btitle"/>
|
993
|
+
<optional>
|
994
|
+
<ref name="bplace"/>
|
995
|
+
</optional>
|
996
|
+
<optional>
|
997
|
+
<ref name="seriesorganization"/>
|
998
|
+
</optional>
|
999
|
+
<optional>
|
1000
|
+
<ref name="abbreviation"/>
|
1001
|
+
</optional>
|
1002
|
+
<optional>
|
1003
|
+
<ref name="seriesfrom"/>
|
1004
|
+
</optional>
|
1005
|
+
<optional>
|
1006
|
+
<ref name="seriesto"/>
|
1007
|
+
</optional>
|
1008
|
+
<optional>
|
1009
|
+
<ref name="seriesnumber"/>
|
1010
|
+
</optional>
|
1011
|
+
<optional>
|
1012
|
+
<ref name="seriespartnumber"/>
|
1013
|
+
</optional>
|
1014
|
+
<optional>
|
1015
|
+
<ref name="seriesrun"/>
|
1016
|
+
</optional>
|
967
1017
|
</element>
|
968
1018
|
</define>
|
969
1019
|
<define name="SeriesType">
|
@@ -32,6 +32,43 @@
|
|
32
32
|
<ref name="DocumentType"/>
|
33
33
|
</element>
|
34
34
|
</define>
|
35
|
+
<define name="admonition">
|
36
|
+
<element name="admonition">
|
37
|
+
<attribute name="type">
|
38
|
+
<ref name="AdmonitionType"/>
|
39
|
+
</attribute>
|
40
|
+
<optional>
|
41
|
+
<attribute name="class"/>
|
42
|
+
</optional>
|
43
|
+
<attribute name="id">
|
44
|
+
<data type="ID"/>
|
45
|
+
</attribute>
|
46
|
+
<optional>
|
47
|
+
<attribute name="uri">
|
48
|
+
<data type="anyURI"/>
|
49
|
+
</attribute>
|
50
|
+
</optional>
|
51
|
+
<optional>
|
52
|
+
<attribute name="coverpage">
|
53
|
+
<data type="boolean"/>
|
54
|
+
</attribute>
|
55
|
+
</optional>
|
56
|
+
<optional>
|
57
|
+
<attribute name="notag">
|
58
|
+
<data type="boolean"/>
|
59
|
+
</attribute>
|
60
|
+
</optional>
|
61
|
+
<optional>
|
62
|
+
<ref name="tname"/>
|
63
|
+
</optional>
|
64
|
+
<zeroOrMore>
|
65
|
+
<ref name="paragraph-with-footnote"/>
|
66
|
+
</zeroOrMore>
|
67
|
+
<zeroOrMore>
|
68
|
+
<ref name="note"/>
|
69
|
+
</zeroOrMore>
|
70
|
+
</element>
|
71
|
+
</define>
|
35
72
|
<define name="index">
|
36
73
|
<element name="index">
|
37
74
|
<optional>
|
@@ -245,6 +282,9 @@
|
|
245
282
|
<ref name="MultilingualRenderingType"/>
|
246
283
|
</attribute>
|
247
284
|
</optional>
|
285
|
+
<optional>
|
286
|
+
<ref name="tname"/>
|
287
|
+
</optional>
|
248
288
|
<oneOrMore>
|
249
289
|
<ref name="ul_li"/>
|
250
290
|
</oneOrMore>
|
@@ -287,6 +327,9 @@
|
|
287
327
|
</choice>
|
288
328
|
</attribute>
|
289
329
|
</optional>
|
330
|
+
<optional>
|
331
|
+
<ref name="tname"/>
|
332
|
+
</optional>
|
290
333
|
<oneOrMore>
|
291
334
|
<ref name="li"/>
|
292
335
|
</oneOrMore>
|
@@ -323,6 +366,9 @@
|
|
323
366
|
<ref name="MultilingualRenderingType"/>
|
324
367
|
</attribute>
|
325
368
|
</optional>
|
369
|
+
<optional>
|
370
|
+
<ref name="tname"/>
|
371
|
+
</optional>
|
326
372
|
<oneOrMore>
|
327
373
|
<ref name="dt"/>
|
328
374
|
<ref name="dd"/>
|
@@ -851,6 +897,16 @@
|
|
851
897
|
<ref name="MultilingualRenderingType"/>
|
852
898
|
</attribute>
|
853
899
|
</optional>
|
900
|
+
<optional>
|
901
|
+
<attribute name="coverpage">
|
902
|
+
<data type="boolean"/>
|
903
|
+
</attribute>
|
904
|
+
</optional>
|
905
|
+
<optional>
|
906
|
+
<attribute name="notag">
|
907
|
+
<data type="boolean"/>
|
908
|
+
</attribute>
|
909
|
+
</optional>
|
854
910
|
<oneOrMore>
|
855
911
|
<choice>
|
856
912
|
<ref name="paragraph"/>
|
@@ -1178,6 +1234,7 @@
|
|
1178
1234
|
<ref name="concept"/>
|
1179
1235
|
<ref name="add"/>
|
1180
1236
|
<ref name="del"/>
|
1237
|
+
<ref name="span"/>
|
1181
1238
|
</choice>
|
1182
1239
|
</define>
|
1183
1240
|
<define name="add">
|
@@ -1204,6 +1261,14 @@
|
|
1204
1261
|
</choice>
|
1205
1262
|
</element>
|
1206
1263
|
</define>
|
1264
|
+
<define name="span">
|
1265
|
+
<element name="span">
|
1266
|
+
<attribute name="class"/>
|
1267
|
+
<oneOrMore>
|
1268
|
+
<ref name="TextElement"/>
|
1269
|
+
</oneOrMore>
|
1270
|
+
</element>
|
1271
|
+
</define>
|
1207
1272
|
<define name="concept">
|
1208
1273
|
<element name="concept">
|
1209
1274
|
<optional>
|
data/lib/metanorma/generic.rb
CHANGED
data/metanorma-generic.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
28
28
|
|
29
29
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
30
|
-
spec.add_dependency "metanorma-standoc", "~> 2.
|
30
|
+
spec.add_dependency "metanorma-standoc", "~> 2.1.0"
|
31
31
|
spec.add_dependency "ruby-jing"
|
32
32
|
|
33
33
|
spec.add_development_dependency "debug"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-generic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-jing
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
|
-
rubygems_version: 3.3.
|
273
|
+
rubygems_version: 3.3.7
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Metanorma template gem for customisation.
|