aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-10-12 20:29:42 +0100
committerRalph Amissah <ralph@amissah.com>2007-10-12 20:29:42 +0100
commitb05af2073ff99a2aa218e452afec41907a240dc3 (patch)
treec55dc06c15249d825f77a687790d3070c2ae7ddc
parentavailable outputs shortcut display, description of odf:odt expanded (diff)
xml dom extract footnote from grouped text
-rw-r--r--lib/sisu/v0/xml.rb1
-rw-r--r--lib/sisu/v0/xml_dom.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/sisu/v0/xml.rb b/lib/sisu/v0/xml.rb
index d6db3ca7..e739bf59 100644
--- a/lib/sisu/v0/xml.rb
+++ b/lib/sisu/v0/xml.rb
@@ -256,6 +256,7 @@ WOK
def poem_structure(para='',ocn='')
para.gsub!(/<:verse(?:-end)?>/,'')
para=@trans.markup_group(para)
+ #para.gsub!(/\s\s/,'&#160;&#160;')
para.strip!
@@xml[:body] << %{#{@tab*0}<object id="#{ocn}">} << "\n"
@@xml[:body] << %{#{@tab*1}<ocn>#{ocn}</ocn>} << "\n"
diff --git a/lib/sisu/v0/xml_dom.rb b/lib/sisu/v0/xml_dom.rb
index 83b15dc8..14cc162f 100644
--- a/lib/sisu/v0/xml_dom.rb
+++ b/lib/sisu/v0/xml_dom.rb
@@ -287,6 +287,8 @@ WOK
def group_structure(para='',ocn='')
para.gsub!(/<:group(?:-end)?>/,'')
para=@trans.markup_group(para)
+ para.gsub!(/~\{(\d+)\s+(.+?)\s*&lt;#@dp&gt;\}~/m,
+ '<endnote><number>\1</number><note>\2</note></endnote> ')
para.strip!
@@xml[:body] << %{#{@tab*6}<object id="#{ocn}">} << "\n"
@@xml[:body] << %{#{@tab*7}<ocn>#{ocn}</ocn>} << "\n"