isodoc 0.9.15 → 0.9.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63d1745c833e13e8fb6301154c1f888c3b107ec0a51409d00bba57920f049ad4
4
- data.tar.gz: a4c41afb2aac271ca31976e5b44bc1cd9bbe06e9c4d7448ea58d20efd89e5053
3
+ metadata.gz: b26664ab07349891d3a840f0c98f4a9bea787bc176dd6beb8580608564d4cd1c
4
+ data.tar.gz: aa45cdbd35faeed78af75730ec6cac6275e7b91e40bcc8f9e1d08f7484de8846
5
5
  SHA512:
6
- metadata.gz: e74800b697fab3fe77b6e0a03ffd698fa1dfc6c1c1312102aa4a6bc8b29fcd084662e8a0640dd75d553d1cc67ce8a66c96a0ee09f7972a414b29da218bf19a33
7
- data.tar.gz: f8b77e105d81db551d503e86e386fe3de1192a7596db641db926f620a743494fe182d7e412ed4c17152c0842cd3fb4d0281c9a7b238accb42aa696b4a275a96f
6
+ metadata.gz: fc0285784f98018d1d9c333fd5fa3e54ef5de5867447cbbcb5c1749038b5c749169c1d9c69a72af9ef6dc6a4073a62c5bedcabca23a88a943171e1e8f08b796b
7
+ data.tar.gz: 94e7ec97ed84bcece612a9e3237c053780de2d6b2e534049a7147a5409699b3129ba3c07e5c88fa9464a851b10133c70d9001d795102e065af2b827a4230afb2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isodoc (0.9.15)
4
+ isodoc (0.9.16)
5
5
  asciimath
6
6
  html2doc (~> 0.8.6)
7
7
  htmlentities (~> 4.3.4)
@@ -19,7 +19,7 @@ GEM
19
19
  remote: https://rubygems.org/
20
20
  specs:
21
21
  asciidoctor (1.5.8)
22
- asciimath (1.0.7)
22
+ asciimath (1.0.8)
23
23
  ast (2.4.0)
24
24
  byebug (9.1.0)
25
25
  coderay (1.1.2)
@@ -43,7 +43,7 @@ GEM
43
43
  guard (~> 2.1)
44
44
  guard-compat (~> 1.1)
45
45
  rspec (>= 2.99.0, < 4.0)
46
- html2doc (0.8.8)
46
+ html2doc (0.8.9)
47
47
  asciimath (~> 1.0.7)
48
48
  htmlentities (~> 4.3.4)
49
49
  image_size
@@ -78,7 +78,7 @@ module IsoDoc::Function
78
78
 
79
79
  EXAMPLE_TBL_ATTR =
80
80
  { valign: "top", class: "example_label",
81
- style: "width:82.8pt;padding:0 0 0 1em;margin-left:0pt" }.freeze
81
+ style: "width:82.8pt;padding:0 0 0 0;margin-left:0pt" }.freeze
82
82
 
83
83
  # used if we are boxing examples
84
84
  def example_div_parse(node, out)
@@ -147,9 +147,13 @@ module IsoDoc::Function
147
147
  @annotation = false
148
148
  end
149
149
 
150
+ def admonition_class(node)
151
+ "Admonition"
152
+ end
153
+
150
154
  def admonition_parse(node, out)
151
155
  name = node["type"]
152
- out.div **{ class: "Admonition" } do |t|
156
+ out.div **{ class: admonition_class(node) } do |t|
153
157
  t.title { |b| b << @admonition[name].upcase } if name
154
158
  node.children.each do |n|
155
159
  parse(n, t)
@@ -163,12 +167,18 @@ module IsoDoc::Function
163
167
  parse(dl, out)
164
168
  end
165
169
 
166
- def formula_parse(node, out)
170
+ def formula_parse1(node, out)
167
171
  out.div **attr_code(id: node["id"], class: "formula") do |div|
168
- parse(node.at(ns("./stem")), out)
169
- insert_tab(div, 1)
170
- div << "(#{get_anchors[node['id']][:label]})"
172
+ div.p do |p|
173
+ parse(node.at(ns("./stem")), div)
174
+ insert_tab(div, 1)
175
+ div << "(#{get_anchors[node['id']][:label]})"
176
+ end
171
177
  end
178
+ end
179
+
180
+ def formula_parse(node, out)
181
+ formula_parse1(node, out)
172
182
  formula_where(node.at(ns("./dl")), out)
173
183
  node.children.each do |n|
174
184
  next if %w(stem dl).include? n.name
@@ -158,7 +158,7 @@ module IsoDoc::Function
158
158
  f = isoxml.at(ns("//sections/definitions")) or return num
159
159
  out.div **attr_code(id: f["id"], class: "Symbols") do |div|
160
160
  num = num + 1
161
- clause_name(num, @symbols_lbl, div, nil)
161
+ clause_name(num, f&.at(ns("./title"))&.content || @symbols_lbl, div, nil)
162
162
  f.elements.each do |e|
163
163
  parse(e, div) unless e.name == "title"
164
164
  end
@@ -168,8 +168,8 @@ module IsoDoc::Function
168
168
 
169
169
  # subclause
170
170
  def symbols_parse(isoxml, out)
171
- isoxml.children.first.previous =
172
- "<title>#{@symbols_lbl}</title>"
171
+ isoxml.at(ns("./title")) or
172
+ isoxml.children.first.previous = "<title>#{@symbols_lbl}</title>"
173
173
  clause_parse(isoxml, out)
174
174
  end
175
175
 
@@ -42,12 +42,13 @@ module IsoDoc::Function
42
42
 
43
43
  SECTIONS_XPATH =
44
44
  "//foreword | //introduction | //sections/terms | //annex | "\
45
- "//sections/clause | //bibliography/references | "\
46
- "//bibliography/clause".freeze
45
+ "//sections/clause | //sections/definitions | "\
46
+ "//bibliography/references | //bibliography/clause".freeze
47
47
 
48
48
  CHILD_NOTES_XPATH =
49
- "./*[not(self::xmlns:clause) and "\
50
- "not(self::xmlns:appendix)]//xmlns:note | ./xmlns:note".freeze
49
+ "./*[not(self::xmlns:clause) and not(self::xmlns:appendix) and "\
50
+ "not(self::xmlns:terms) and not(self::xmlns:definitions)]//xmlns:note | "\
51
+ "./xmlns:note".freeze
51
52
 
52
53
  def note_anchor_names(sections)
53
54
  sections.each do |s|
@@ -58,14 +59,17 @@ module IsoDoc::Function
58
59
  idx = notes.size == 1 ? "" : " #{i + 1}"
59
60
  @anchors[n["id"]] = anchor_struct(idx, n, @note_xref_lbl, "note")
60
61
  end
61
- note_anchor_names(s.xpath(ns("./clause | ./appendix")))
62
+ note_anchor_names(s.xpath(ns(CHILD_SECTIONS)))
62
63
  end
63
64
  end
64
65
 
65
66
  CHILD_EXAMPLES_XPATH =
66
- "./*[not(self::xmlns:clause) and not(self::xmlns:appendix)]//"\
67
+ "./*[not(self::xmlns:clause) and not(self::xmlns:appendix) and "\
68
+ "not(self::xmlns:terms) and not(self::xmlns:definitions)]//"\
67
69
  "xmlns:example | ./xmlns:example".freeze
68
70
 
71
+ CHILD_SECTIONS = "./clause | ./appendix | ./terms | ./definitions"
72
+
69
73
  def example_anchor_names(sections)
70
74
  sections.each do |s|
71
75
  notes = s.xpath(CHILD_EXAMPLES_XPATH)
@@ -73,9 +77,10 @@ module IsoDoc::Function
73
77
  next if @anchors[n["id"]]
74
78
  next if n["id"].nil? || n["id"].empty?
75
79
  idx = notes.size == 1 ? "" : " #{i + 1}"
76
- @anchors[n["id"]] = anchor_struct(idx, n, @example_xref_lbl, "example")
80
+ @anchors[n["id"]] = anchor_struct(idx, n, @example_xref_lbl,
81
+ "example")
77
82
  end
78
- example_anchor_names(s.xpath(ns("./clause | ./appendix")))
83
+ example_anchor_names(s.xpath(ns(CHILD_SECTIONS)))
79
84
  end
80
85
  end
81
86
 
@@ -89,7 +94,7 @@ module IsoDoc::Function
89
94
  @anchors[n["id"]] = anchor_struct(idx, n, @list_lbl, "list")
90
95
  list_item_anchor_names(n, @anchors[n["id"]], 1, "", notes.size != 1)
91
96
  end
92
- list_anchor_names(s.xpath(ns("./clause | ./appendix")))
97
+ list_anchor_names(s.xpath(ns(CHILD_SECTIONS)))
93
98
  end
94
99
  end
95
100
 
@@ -182,6 +182,7 @@ module IsoDoc
182
182
  end
183
183
 
184
184
  def version(isoxml, _out)
185
+ set(:edition, isoxml&.at(ns("//bibdata/edition"))&.text)
185
186
  set(:docyear, isoxml&.at(ns("//bibdata/copyright/from"))&.text)
186
187
  set(:draft, isoxml&.at(ns("//version/draft"))&.text)
187
188
  set(:revdate, isoxml&.at(ns("//version/revision-date"))&.text)
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "0.9.15".freeze
2
+ VERSION = "0.9.16".freeze
3
3
  end
@@ -59,9 +59,28 @@ xmlns:m="http://schemas.microsoft.com/office/2004/12/omml">
59
59
  word_annex_cleanup(docxml)
60
60
  word_table_separator(docxml)
61
61
  word_admonition_images(docxml)
62
+ word_list_continuations(docxml)
62
63
  docxml
63
64
  end
64
65
 
66
+ def word_list_continuations(docxml)
67
+ list_add(docxml.xpath("//ul[not(ancestor::ul) and not(ancestor::ol)]"), 1)
68
+ list_add(docxml.xpath("//ol[not(ancestor::ul) and not(ancestor::ol)]"), 1)
69
+ end
70
+
71
+ def list_add(xpath, level)
72
+ xpath.each do |list|
73
+ (list.xpath(".//li") - list.xpath(".//ol//li | .//ul//li")).each do |li|
74
+ li.xpath("./p | ./div/p").each_with_index do |p, i|
75
+ next if p == 0
76
+ p["class"] = "ListContLevel#{level}"
77
+ end
78
+ list_add(li.xpath(".//ul") - li.xpath(".//ul//ul | .//ol//ul"), level + 1)
79
+ list_add(li.xpath(".//ol") - li.xpath(".//ul//ol | .//ol//ol"), level + 1)
80
+ end
81
+ end
82
+ end
83
+
65
84
  EMPTY_PARA = "<p style='margin-top:0cm;margin-right:0cm;"\
66
85
  "margin-bottom:0cm;margin-left:0.0pt;margin-bottom:.0001pt;"\
67
86
  "line-height:1.0pt;mso-line-height-rule:exactly'>"\
@@ -95,9 +114,12 @@ xmlns:m="http://schemas.microsoft.com/office/2004/12/omml">
95
114
  coverxml.to_xml(encoding: "US-ASCII")
96
115
  end
97
116
 
117
+ def insert_toc(intro, docxml)
118
+ intro.sub(/WORDTOC/, make_WordToC(docxml))
119
+ end
120
+
98
121
  def word_intro(docxml)
99
- intro = File.read(@wordintropage, encoding: "UTF-8").
100
- sub(/WORDTOC/, make_WordToC(docxml))
122
+ intro = insert_toc(File.read(@wordintropage, encoding: "UTF-8"), docxml)
101
123
  intro = populate_template(intro, :word)
102
124
  introxml = to_word_xhtml_fragment(intro)
103
125
  docxml.at('//div[@class="WordSection2"]').children.first.previous =
@@ -523,7 +523,7 @@ B</pre>
523
523
  <br/>
524
524
  <div>
525
525
  <h1 class="ForewordTitle">Foreword</h1>
526
- <div id="_be9158af-7e93-4ee2-90c5-26d31c181934" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</div><p>where</p><dl id="_e4fe94fe-1cde-49d9-b1ad-743293b7e21d"><dt>
526
+ <div id="_be9158af-7e93-4ee2-90c5-26d31c181934" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</p></div><p>where</p><dl id="_e4fe94fe-1cde-49d9-b1ad-743293b7e21d"><dt>
527
527
  <span class="stem">(#(r)#)</span>
528
528
  </dt><dd>
529
529
  <p id="_1b99995d-ff03-40f5-8f2e-ab9665a69b77">is the repeatability limit.</p>
@@ -24,6 +24,11 @@ RSpec.describe IsoDoc do
24
24
  <date type="created"><from>2010</from><to>2011</to></date>
25
25
  <date type="activated"><on>2013</on></date>
26
26
  <date type="obsoleted"><on>2014</on></date>
27
+ <edition>2</edition>
28
+ <version>
29
+ <revision-date>2016-05-01</revision-date>
30
+ <draft>0.4</draft>
31
+ </version>
27
32
  <contributor>
28
33
  <role type="author"/>
29
34
  <organization>
@@ -73,14 +78,10 @@ RSpec.describe IsoDoc do
73
78
  <workgroup number="3">Rice Group</workgroup>
74
79
  <secretariat>GB</secretariat>
75
80
  </editorialgroup>
76
- </bibdata><version>
77
- <edition>2</edition>
78
- <revision-date>2016-05-01</revision-date>
79
- <draft>0.4</draft>
80
- </version>
81
+ </bibdata>
81
82
  </iso-standard>
82
83
  INPUT
83
- {:accesseddate=>"2012", :activateddate=>"2013", :agency=>"ISO", :authors=>["Barney Rubble", "Fred Flintstone"], :authors_affiliations=>{"Bedrock Inc."=>["Barney Rubble"], ""=>["Fred Flintstone"]}, :confirmeddate=>"XXX", :createddate=>"2010&ndash;2011", :doc=>"URL E", :docnumber=>"17301-1", :doctitle=>"Cereals and pulses", :doctype=>"International Standard", :docyear=>"2016", :draft=>"0.4", :draftinfo=>" (draft 0.4, 2016-05-01)", :editorialgroup=>["TC 34", "SC 4", "WG 3"], :html=>"URL B", :ics=>"XXX", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"2014", :obsoletes=>nil, :obsoletes_part=>nil, :pdf=>"URL D", :publisheddate=>"2011", :receiveddate=>"XXX", :revdate=>"2016-05-01", :sc=>"SC 4", :secretariat=>"GB", :status=>"Committee draft", :tc=>"TC 34", :unpublished=>true, :updateddate=>"XXX", :url=>"URL A", :wg=>"WG 3", :xml=>"URL C"}
84
+ {:accesseddate=>"2012", :activateddate=>"2013", :agency=>"ISO", :authors=>["Barney Rubble", "Fred Flintstone"], :authors_affiliations=>{"Bedrock Inc."=>["Barney Rubble"], ""=>["Fred Flintstone"]}, :confirmeddate=>"XXX", :createddate=>"2010&ndash;2011", :doc=>"URL E", :docnumber=>"17301-1", :doctitle=>"Cereals and pulses", :doctype=>"International Standard", :docyear=>"2016", :draft=>"0.4", :draftinfo=>" (draft 0.4, 2016-05-01)", :edition=>"2", :editorialgroup=>["TC 34", "SC 4", "WG 3"], :html=>"URL B", :ics=>"XXX", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"2014", :obsoletes=>nil, :obsoletes_part=>nil, :pdf=>"URL D", :publisheddate=>"2011", :receiveddate=>"XXX", :revdate=>"2016-05-01", :sc=>"SC 4", :secretariat=>"GB", :status=>"Committee draft", :tc=>"TC 34", :unpublished=>true, :updateddate=>"XXX", :url=>"URL A", :wg=>"WG 3", :xml=>"URL C"}
84
85
  OUTPUT
85
86
  end
86
87
 
@@ -137,13 +138,12 @@ OUTPUT
137
138
  <ics><code>1.2.3</code></ics>
138
139
  <ics><code>1.2.3</code></ics>
139
140
  </bibdata><version>
140
- <edition>2</edition>
141
141
  <revision-date>2016-05-01</revision-date>
142
142
  <draft>12</draft>
143
143
  </version>
144
144
  </iso-standard>
145
145
  INPUT
146
- {:accesseddate=>"XXX", :agency=>"ISO/IEC", :authors=>[], :authors_affiliations=>{}, :confirmeddate=>"XXX", :createddate=>"XXX", :docnumber=>"17301-1-3", :doctitle=>"Cereals and pulses", :doctype=>"International Standard", :docyear=>"2016", :draft=>"12", :draftinfo=>" (draft 12, 2016-05-01)", :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"XXX", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisheddate=>"XXX", :receiveddate=>"XXX", :revdate=>"2016-05-01", :sc=>"DEF 4", :secretariat=>"XXXX", :status=>"Published", :tc=>"ABC 34", :unpublished=>false, :updateddate=>"XXX", :wg=>"GHI 3"}
146
+ {:accesseddate=>"XXX", :agency=>"ISO/IEC", :authors=>[], :authors_affiliations=>{}, :confirmeddate=>"XXX", :createddate=>"XXX", :docnumber=>"17301-1-3", :doctitle=>"Cereals and pulses", :doctype=>"International Standard", :docyear=>"2016", :draft=>"12", :draftinfo=>" (draft 12, 2016-05-01)", :edition=>nil, :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :implementeddate=>"XXX", :issueddate=>"XXX", :obsoleteddate=>"XXX", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisheddate=>"XXX", :receiveddate=>"XXX", :revdate=>"2016-05-01", :sc=>"DEF 4", :secretariat=>"XXXX", :status=>"Published", :tc=>"ABC 34", :unpublished=>false, :updateddate=>"XXX", :wg=>"GHI 3"}
147
147
  OUTPUT
148
148
  end
149
149
 
@@ -625,4 +625,62 @@ ICAgICAgIDogRU5EIERPQyBJRAoKRklMRU5BTUU6IHRlc3QKCg==
625
625
  expect(html).to match(%r{<h2 class="TermNum" id="paddy">1\.2</h2>})
626
626
  end
627
627
 
628
+ it "creates continuation styles for multiparagraph list items in Word" do
629
+ FileUtils.rm_f "test.doc"
630
+ FileUtils.rm_f "test.html"
631
+ IsoDoc::WordConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css"}).convert("test", <<~"INPUT", false)
632
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
633
+ <preface><foreword>
634
+ <ul>
635
+ <li><p>A</p>
636
+ <p>B</p></li>
637
+ <li><ol><li><p>C</p>
638
+ <p>D</p></li>
639
+ </ol></li>
640
+ </ul>
641
+ <ol>
642
+ <li><p>A1</p>
643
+ <p>B1</p></li>
644
+ <li><ul><li><p>C1</p>
645
+ <formula id="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62">
646
+ <stem type="AsciiMath">D1</stem>
647
+ </formula>
648
+ </ul></li>
649
+ </ol>
650
+ </foreword></preface>
651
+ </iso-standard>
652
+ INPUT
653
+ word = File.read("test.doc").sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').
654
+ sub(%r{<p class="MsoNormal">\s*<br clear="all" class="section"/>\s*</p>\s*<div class="WordSection3">.*$}m, "")
655
+ expect(word).to be_equivalent_to <<~"OUTPUT"
656
+ <div class="WordSection2">
657
+ <p class="MsoNormal">
658
+ <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
659
+ </p>
660
+ <div>
661
+ <h1 class="ForewordTitle">Foreword</h1>
662
+
663
+ <p class="MsoListParagraphCxSpFirst">A
664
+ <p class="ListContLevel1">B</p></p>
665
+ <p class="MsoListParagraphCxSpLast"><p class="MsoListParagraphCxSpFirst">C
666
+ <p class="ListContLevel2">D</p></p>
667
+ </p>
668
+
669
+
670
+ <p class="MsoListParagraphCxSpFirst">A1
671
+ <p class="ListContLevel1">B1</p></p>
672
+ <p class="MsoListParagraphCxSpLast">C1
673
+ <div class="formula"><a name="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62" id="_5fc1ef0f-75d2-4b54-802c-b1bad4a53b62"></a><p class="ListContLevel2"><span class="stem"><m:oMath>
674
+ <m:r><m:t>D1</m:t></m:r>
675
+
676
+ </m:oMath>
677
+ </span><span style="mso-tab-count:1">&#xA0; </span>(1)</p></div>
678
+ </p>
679
+
680
+ </div>
681
+ <p class="MsoNormal">&#xA0;</p>
682
+ </div>
683
+ OUTPUT
684
+ end
685
+
628
686
  end
@@ -54,6 +54,7 @@ RSpec.describe IsoDoc do
54
54
  </term>
55
55
  </terms>
56
56
  <definitions id="K">
57
+ <title>Definitions</title>
57
58
  <dl>
58
59
  <dt>Symbol</dt>
59
60
  <dd>Definition</dd>
@@ -138,7 +139,7 @@ RSpec.describe IsoDoc do
138
139
  <p class="TermNum" id="J">3.1.1</p>
139
140
  <p class="Terms" style="text-align:left;">Term2</p>
140
141
 
141
- </div><div id="K"><h2>3.2. Symbols and abbreviated terms</h2>
142
+ </div><div id="K"><h2>3.2. Definitions</h2>
142
143
  <dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
143
144
  </div></div>
144
145
  <div id="L" class="Symbols">
@@ -713,15 +713,15 @@ RSpec.describe IsoDoc do
713
713
  <br/>
714
714
  <div class="Section3" id="intro">
715
715
  <h1 class="IntroTitle">Introduction</h1>
716
- <div id="N1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</div>
716
+ <div id="N1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</p></div>
717
717
  <div id="xyz"><h2>Preparatory</h2>
718
- <div id="N2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (2)</div>
718
+ <div id="N2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (2)</p></div>
719
719
  </div>
720
720
  </div>
721
721
  <p class="zzSTDTitle1"/>
722
722
  <div id="scope">
723
723
  <h1>1.&#160; Scope</h1>
724
- <div id="N" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (3)</div>
724
+ <div id="N" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (3)</p></div>
725
725
  <p>
726
726
  <a href="#N">Formula (3)</a>
727
727
  </p>
@@ -740,19 +740,19 @@ RSpec.describe IsoDoc do
740
740
  <div id="widgets">
741
741
  <h1>3.&#160; Widgets</h1>
742
742
  <div id="widgets1"><h2>3.1. </h2>
743
- <div id="note1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (4)</div>
744
- <div id="note2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (5)</div>
743
+ <div id="note1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (4)</p></div>
744
+ <div id="note2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (5)</p></div>
745
745
  <p> <a href="#note1">Formula (4)</a> <a href="#note2">Formula (5)</a> </p>
746
746
  </div>
747
747
  </div>
748
748
  <br/>
749
749
  <div id="annex1" class="Section3">
750
750
  <div id="annex1a"><h2>A.1. </h2>
751
- <div id="AN" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.1)</div>
751
+ <div id="AN" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (A.1)</p></div>
752
752
  </div>
753
753
  <div id="annex1b"><h2>A.2. </h2>
754
- <div id="Anote1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.2)</div>
755
- <div id="Anote2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.3)</div>
754
+ <div id="Anote1" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (A.2)</p></div>
755
+ <div id="Anote2" class="formula"><p><span class="stem">(#(r = 1 %)#)</span>&#160; (A.3)</p></div>
756
756
  </div>
757
757
  </div>
758
758
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.15
4
+ version: 0.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath