metanorma-jis 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0390d5e28376c6e536985c4f658e4e939eb12931602991a787b01fe832c6f8f
4
- data.tar.gz: 599457fe99595bec1161f38217eca0ef96eab8ba1a401a4b6e6ba3ddda01f5db
3
+ metadata.gz: 2ee0f607f2c8574957f29235f1275f1429da187b745f4ddb33b2ddb56df963df
4
+ data.tar.gz: 2c701b9b9a847ab56e541bfa89071811524ac8aa8b91e23af6aa52d5221e4988
5
5
  SHA512:
6
- metadata.gz: d24345a27eb6dde003eadf90254a267c86ca19bfbd16a9e94093e7389a5ffc843bc05db82389480a01d387456f7e23247efb34fc0c46a2f3095ff7bef1d289ce
7
- data.tar.gz: bccf625290d0f44d49d024fe409b1d4e1c01849bef810ecbdd5571f3f6753691d5dc6b877327c781e6f10e9516f07c1f1739bca8eb2b658d264594524dad4a9e
6
+ metadata.gz: 7f6f2229ed80159a55fac331a60a9562dcd5dc35d64f74f668d65fe4e357717fe19be77d8e206f8c54a5bd4a846dbfb498c48deec06cc8efc2a5aa81855a706d
7
+ data.tar.gz: 8910abb49ac749e5452324f238b3841213f3f1895faf0301e34e274916f5d483a26a8a5250227f087d346c26465646217816603e765d84d61e46399196345ec6
@@ -12,20 +12,13 @@ module IsoDoc
12
12
  p.span class: "note_label" do |s|
13
13
  name.children.each { |n| parse(n, s) }
14
14
  end
15
- p << termnote_delim
15
+ p << " "
16
16
  end
17
17
  para_then_remainder(node.first_element_child, node, p, div)
18
18
  end
19
19
  end
20
20
  end
21
21
 
22
- def admonition_name_parse(_node, div, name)
23
- div.span class: "note_label" do |s|
24
- name.children.each { |n| parse(n, s) }
25
- s << " &#x2014; "
26
- end
27
- end
28
-
29
22
  def make_tr_attr(cell, row, totalrows, header, bordered)
30
23
  cell["border"] == "0" and bordered = false
31
24
  super
@@ -90,9 +83,10 @@ module IsoDoc
90
83
 
91
84
  def table_name(name, thead, cols)
92
85
  name or return
93
- thead.children.first.previous =
94
- full_row(cols, "<p class='TableTitle' style='text-align:center;'> " \
95
- "#{name.remove.children.to_xml}</p>")
86
+ thead.add_first_child full_row(
87
+ cols, "<p class='TableTitle' style='text-align:center;'> " \
88
+ "#{name.remove.children.to_xml}</p>"
89
+ )
96
90
  end
97
91
 
98
92
  def table_note_cleanup(docxml)
@@ -35,12 +35,14 @@ module IsoDoc
35
35
  }
36
36
  end
37
37
 
38
+ # TODO to Presentation XML
38
39
  def make_table_footnote_target(out, fnid, fnref)
39
40
  attrs = { id: fnid, class: "TableFootnoteRef" }
40
41
  out.span do |s|
42
+ # TODO to Presentation XML
41
43
  s << @i18n.table_footnote
42
44
  out.span **attrs do |a|
43
- a << "#{fnref})"
45
+ a << fnref
44
46
  end
45
47
  insert_tab(s, 1)
46
48
  end
@@ -14,6 +14,7 @@ chairperson: 委員会長
14
14
  membership_table: 構成表
15
15
  full_name: 氏名
16
16
  affiliation: 所属
17
+ toc_page: 頁
17
18
  doctype_dict:
18
19
  international-standard: 日本産業規格
19
20
  japanese-industrial-standard: 日本産業規格
@@ -10,9 +10,8 @@ module IsoDoc
10
10
  end
11
11
 
12
12
  def xref_init(lang, script, _klass, labels, options)
13
- @xrefs = Xref.new(lang, script,
14
- HtmlConvert.new(language: lang, script: script),
15
- labels, options)
13
+ p = HtmlConvert.new(language: lang, script: script)
14
+ @xrefs = Xref.new(lang, script, p, labels, options)
16
15
  end
17
16
 
18
17
  def i18n_init(lang, script, locale, i18nyaml = nil)
@@ -25,12 +24,6 @@ module IsoDoc
25
24
  i18nhash: @i18n.get))
26
25
  end
27
26
 
28
- def omit_docid_prefix(prefix)
29
- return true if prefix.nil? || prefix.empty?
30
-
31
- super || %w(JIS).include?(prefix)
32
- end
33
-
34
27
  def std_docid_semantic(text)
35
28
  text
36
29
  end