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.
@@ -61,6 +61,10 @@ module IsoDoc
61
61
  end
62
62
  end
63
63
 
64
+ def sourcecode_style
65
+ "Code"
66
+ end
67
+
64
68
  STYLESMAP = {
65
69
  example: "Example",
66
70
  note: "Note",
@@ -35,6 +35,10 @@ module IsoDoc
35
35
  docxml.xpath("//p[not(@class)]").each { |p| p["class"] = "MsoBodyText" }
36
36
  end
37
37
 
38
+ def sourcecode_style
39
+ "Code"
40
+ end
41
+
38
42
  def dis_styles1(docxml)
39
43
  amd_style(docxml)
40
44
  code_style(docxml)
@@ -63,13 +63,7 @@ module IsoDoc
63
63
  TOC
64
64
  end
65
65
 
66
- def render_identifier(ident)
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
 
@@ -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
- return if clause.nil?
7
-
6
+ clause.nil? and return
8
7
  clause.at(ns("./clause")) and
9
- @anchors[clause["id"]] = { label: "0", level: 1, type: "clause",
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
- <value>modspec</value>
2666
+ <text/>
2657
2667
  </choice>
2658
2668
  </define>
2659
2669
  <define name="erefTypeWithConnective">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "2.3.0".freeze
3
+ VERSION = "2.3.1".freeze
4
4
  end
5
5
  end
@@ -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.0
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-05 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc