metanorma-jis 0.5.1 → 0.5.2

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: 6ccc3cb14465fc5ae5ec7c25ded446c4a10aeb7f685bb7031d101a3a82e8c578
4
- data.tar.gz: 4611e44cbf19df51210109a4f14f59105b1d2edc310d0c7970afa3aa74f964e2
3
+ metadata.gz: abd40a2bc3e57de414cd4e120bf1a1c3416c20284a985253ce0d1a23f56b67eb
4
+ data.tar.gz: 34ad9d689e173e43a28fbcd8ced02ac3fcdc0549b21cb253e4e20a0bf51a0afe
5
5
  SHA512:
6
- metadata.gz: 46431b3a6b9b8ab826050cc2938f84a2e3f3030c2b2ac3550c104d4e3f703fbbbffd9da89b5fa21ffb7d6c7ccc13d3dd68aba8128dbf2da8cb4c47508b428026
7
- data.tar.gz: 6164f8841ff3417ae06d57f9b8e8fff565908488af3af6a3aedb6465a931d2111734afc43011d6b701c9abc445d711283d396bff55abca44f3992ffe4ad1c7be
6
+ metadata.gz: fcfae9c4647c416c89e5657aa66be23028312c42f1d1b20c873e1491839030cc7a541a7809514405782a86c4056fc3059cbb67d7788c1cc1a5c69234e0f1d52e
7
+ data.tar.gz: a303a12a0ac196d48eb0e14f93f7fe2ed9e65fde5f9f9952ca578404490b91f92c580da8f8e0f70155e8ddfea38bd70828adae4fad29bb077de590c17484aa38
@@ -46,6 +46,8 @@ module IsoDoc
46
46
  .each { |p| parse(p, out) }
47
47
  node.xpath(ns("./source")).each { |n| parse(n, out) }
48
48
  node.xpath(ns("./note")).each { |n| parse(n, out) }
49
+ node.xpath(ns("./fmt-footnote-container/fmt-fn-body"))
50
+ .each { |n| parse(n, out) }
49
51
  end
50
52
 
51
53
  def table_thead_pt(node, name)
@@ -69,8 +71,8 @@ module IsoDoc
69
71
  def table_name(name, thead, cols)
70
72
  name or return
71
73
  thead.add_first_child full_row(
72
- cols, "<p class='TableTitle' style='text-align:center;'> " \
73
- "#{name.remove.children.to_xml}</p>"
74
+ cols, "<fmt-name><p class='TableTitle' style='text-align:center;'> " \
75
+ "#{name.remove.children.to_xml}</p></fmt-name>"
74
76
  )
75
77
  end
76
78
 
@@ -85,6 +87,13 @@ module IsoDoc
85
87
  d.parent = insert_here
86
88
  end
87
89
  end
90
+ end
91
+
92
+ # table name footnote is formatted like other footnotes, since table name
93
+ # is a table row.
94
+ def footnote_parse(node, out)
95
+ return table_footnote_parse(node, out) if @in_table
96
+ super
88
97
  end
89
98
  end
90
99
  end
@@ -36,7 +36,8 @@ module IsoDoc
36
36
  end
37
37
 
38
38
  # TODO to Presentation XML
39
- def make_table_footnote_target(out, fnid, fnref)
39
+ # KILL
40
+ def make_table_footnote_targetx(out, fnid, fnref)
40
41
  attrs = { id: fnid, class: "TableFootnoteRef" }
41
42
  out.span do |s|
42
43
  # TODO to Presentation XML