metanorma-iso 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/base_convert.rb +6 -0
- data/lib/isodoc/iso/html/isodoc-dis.css +8 -8
- data/lib/isodoc/iso/html/isodoc-dis.scss +8 -8
- data/lib/isodoc/iso/html/isodoc.css +8 -8
- data/lib/isodoc/iso/html/isodoc.scss +8 -8
- data/lib/isodoc/iso/init.rb +12 -1
- data/lib/isodoc/iso/iso.amendment.xsl +245 -215
- data/lib/isodoc/iso/iso.international-standard.xsl +245 -215
- data/lib/isodoc/iso/word_cleanup.rb +4 -0
- data/lib/isodoc/iso/word_dis_cleanup.rb +4 -0
- data/lib/isodoc/iso/word_dis_convert.rb +1 -7
- data/lib/isodoc/iso/xref.rb +1 -0
- data/lib/isodoc/iso/xref_section.rb +3 -4
- data/lib/metanorma/iso/isodoc.rng +11 -1
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/relaton/render/config.yml +1 -0
- metadata +2 -2
@@ -63,13 +63,7 @@ module IsoDoc
|
|
63
63
|
TOC
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
67
|
-
ret = super
|
68
|
-
ret[:sdo] = std_docid_semantic(ret[:sdo])
|
69
|
-
ret
|
70
|
-
end
|
71
|
-
|
72
|
-
def make_tr_attr(cell, row, totalrows, header)
|
66
|
+
def make_tr_attr(cell, row, totalrows, header, bordered)
|
73
67
|
super.merge(header: header)
|
74
68
|
end
|
75
69
|
|
data/lib/isodoc/iso/xref.rb
CHANGED
@@ -188,6 +188,7 @@ module IsoDoc
|
|
188
188
|
x = @anchors_previous[id][:xref_bare] || @anchors_previous[id][:xref]
|
189
189
|
@anchors[id][:xref] = l10n("#{table_label}, #{x}")
|
190
190
|
@anchors[id][:modspec] = @anchors_previous[id][:modspec]
|
191
|
+
@anchors[id][:subtype] = "modspec" # prevents citetbl style from beign applied
|
191
192
|
true
|
192
193
|
end
|
193
194
|
|
@@ -3,10 +3,9 @@ module IsoDoc
|
|
3
3
|
class Xref < IsoDoc::Xref
|
4
4
|
# we can reference 0-number clauses in introduction
|
5
5
|
def introduction_names(clause)
|
6
|
-
|
7
|
-
|
6
|
+
clause.nil? and return
|
8
7
|
clause.at(ns("./clause")) and
|
9
|
-
@anchors[clause["id"]] = { label:
|
8
|
+
@anchors[clause["id"]] = { label: nil, level: 1, type: "clause",
|
10
9
|
xref: clause.at(ns("./title"))&.text }
|
11
10
|
i = Counter.new
|
12
11
|
clause.xpath(ns("./clause")).each do |c|
|
@@ -43,7 +42,7 @@ module IsoDoc
|
|
43
42
|
@anchors[clause["id"]] =
|
44
43
|
{ label: num, level: level, xref: num, subtype: "clause" }
|
45
44
|
i = Counter.new
|
46
|
-
clause.xpath(ns("./clause | ./terms | ./term | ./definitions | "\
|
45
|
+
clause.xpath(ns("./clause | ./terms | ./term | ./definitions | " \
|
47
46
|
"./references"))
|
48
47
|
.each do |c|
|
49
48
|
i.increment(c)
|
@@ -571,6 +571,11 @@
|
|
571
571
|
<ref name="MultilingualRenderingType"/>
|
572
572
|
</attribute>
|
573
573
|
</optional>
|
574
|
+
<optional>
|
575
|
+
<attribute name="linenums">
|
576
|
+
<data type="boolean"/>
|
577
|
+
</attribute>
|
578
|
+
</optional>
|
574
579
|
<optional>
|
575
580
|
<ref name="tname"/>
|
576
581
|
</optional>
|
@@ -1238,6 +1243,11 @@
|
|
1238
1243
|
</define>
|
1239
1244
|
<define name="concept">
|
1240
1245
|
<element name="concept">
|
1246
|
+
<optional>
|
1247
|
+
<attribute name="bold">
|
1248
|
+
<data type="boolean"/>
|
1249
|
+
</attribute>
|
1250
|
+
</optional>
|
1241
1251
|
<optional>
|
1242
1252
|
<attribute name="ital">
|
1243
1253
|
<data type="boolean"/>
|
@@ -2653,7 +2663,7 @@
|
|
2653
2663
|
<value>full</value>
|
2654
2664
|
<value>short</value>
|
2655
2665
|
<value>id</value>
|
2656
|
-
<
|
2666
|
+
<text/>
|
2657
2667
|
</choice>
|
2658
2668
|
</define>
|
2659
2669
|
<define name="erefTypeWithConnective">
|
@@ -23,6 +23,7 @@ template:
|
|
23
23
|
book: "<smallcap>{{ creatornames }}</smallcap> ({{role}}) . <em>{{ title }}</em> . {{ edition | capitalize_first }}. ({{ series }}). {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}. {{date}}. {{size}}. {{extent}}. ._{{ labels['availablefrom'] }}:_<span_class='biburl'>{{ uri }}</span>. {{ labels['at'] | capitalize}}:_{{ access_location }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
|
24
24
|
booklet: book
|
25
25
|
manual: book
|
26
|
+
techreport: book
|
26
27
|
proceedings: book
|
27
28
|
inbook: "<smallcap>{{ creatornames }}</smallcap> ({{role}}) . {{ title }} . <em>{{host_title}}</em> ({{host_role}} {{ host_creatornames}}). {{ edition | capitalize_first }}. ({{ series }}). {% if place %}{{place}}{%else%}{{ labels['no_place']}}{%endif%}: {{publisher}}. {{date}}. {{size}}. {{extent}}. ._{{ labels['availablefrom'] }}:_<span_class='biburl'>{{ uri }}</span>. {{ labels['at'] | capitalize}}:_{{ access_location }}. [{{ labels['viewed'] }}:_{{date_accessed}}]."
|
28
29
|
inproceedings: inbook
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|