metanorma-ieee 1.4.1 → 1.4.3
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 +4 -4
- data/lib/html2doc/ieee/notes.rb +5 -4
- data/lib/isodoc/ieee/html/htmlstyle.css +7 -0
- data/lib/isodoc/ieee/ieee.amendment.xsl +622 -255
- data/lib/isodoc/ieee/ieee.standard.xsl +622 -255
- data/lib/isodoc/ieee/presentation_ref.rb +14 -7
- data/lib/isodoc/ieee/word_convert.rb +21 -15
- data/lib/isodoc/ieee/word_wp_convert.rb +2 -2
- data/lib/metanorma/ieee/basicdoc.rng +71 -59
- data/lib/metanorma/ieee/converter.rb +3 -2
- data/lib/metanorma/ieee/isodoc.rng +60 -18
- data/lib/metanorma/ieee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84f89392ffbb51084bb77406a1816434743815a156fad52d967b22f2c2fe2636
|
4
|
+
data.tar.gz: 2511288d92f9830064ff48ade3a15e525d33152bf62b4f09f9f8ac1be2c81489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6d09554d432784c98a3093ba3bf7c127c137a794fb0c9903913777f68c7527b60f1b526acccaa173acf81fa9f538cf77e98ee361d00fb30be1a4dcfba557ba
|
7
|
+
data.tar.gz: 96229ab2555cb20ce7167667edd7eb8dee63072af649251c25e92c1a491ddca70595b14bf6e94b034ea40bb45ced96bf1a6dbb5f5601477aeac6aed29c864cd4
|
data/lib/html2doc/ieee/notes.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
class Html2Doc
|
2
2
|
class Ieee < ::Html2Doc
|
3
|
-
def process_footnote_texts(docxml, footnotes)
|
3
|
+
def process_footnote_texts(docxml, footnotes, indexes)
|
4
4
|
body = docxml.at("//body")
|
5
5
|
list = body.add_child("<div style='mso-element:footnote-list'/>")
|
6
6
|
footnotes.each_with_index do |f, i|
|
7
7
|
if i.zero?
|
8
|
-
fn = list.first.add_child(footnote_container_nofn(docxml,
|
8
|
+
fn = list.first.add_child(footnote_container_nofn(docxml, indexes[f["id"]]))
|
9
9
|
f.parent = fn.first
|
10
|
+
f["id"] = ""
|
10
11
|
footnote_div_to_p_unstyled(f)
|
11
12
|
else
|
12
|
-
fn = list.first.add_child(footnote_container(docxml,
|
13
|
+
fn = list.first.add_child(footnote_container(docxml, indexes[f["id"]]))
|
13
14
|
f.parent = fn.first
|
15
|
+
f["id"] = ""
|
14
16
|
footnote_div_to_p(f)
|
15
17
|
end
|
16
18
|
end
|
@@ -36,7 +38,6 @@ class Html2Doc
|
|
36
38
|
end
|
37
39
|
|
38
40
|
def transform_footnote_text(note)
|
39
|
-
note["id"] = ""
|
40
41
|
note.xpath(".//div").each { |div| div.replace(div.children) }
|
41
42
|
note.xpath(".//aside | .//p").each do |p|
|
42
43
|
p.name = "p"
|