diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-08 12:23:05 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-08 12:23:05 +0100 |
commit | 37f81bc4aa6579f269021dfdb3ab84b51f531634 (patch) | |
tree | d0254472d94909d6dcba44baf981ef3e8d9adb7b /lib/sisu/v0/xml.rb | |
parent | sisu-0.60.1 + md5s (diff) |
dal, shortcut for available outputs, present as grouped text object
this makes more sense for search results - matches all available versions of a
document
[affects document objects and numbering where used, hence version number bump]
Diffstat (limited to 'lib/sisu/v0/xml.rb')
-rw-r--r-- | lib/sisu/v0/xml.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v0/xml.rb b/lib/sisu/v0/xml.rb index b230ec9f..d6db3ca7 100644 --- a/lib/sisu/v0/xml.rb +++ b/lib/sisu/v0/xml.rb @@ -233,13 +233,15 @@ WOK @@xml[:body] << if lv; %{#{@tab*1}<text class="h#{lv}">\n#{@tab*2}#{wrapped}\n#{@tab*1}</text>\n} << "\n" else %{#{@tab*1}<text class="#{type}">\n#{@tab*2}#{wrapped}\n#{@tab*1}</text>\n} # main text, contents, body KEEP end - @@xml[:body] << @endnotes if @endnotes # main text, endnotes KEEP + @@xml[:body] << @endnotes if @endnotes ##@@xml[:body] << "#{@tab*1}<text>#{para[@regx,2]}</text>\n" if para[@regx,2] # old unwrapped main text, contents, body KEEP @@xml[:body] << "#{@tab*0}</object>" << "\n" if para[@regx] @endnotes=[] end def group_structure(para='',ocn='') para.gsub!(/<:group(?:-end)?>/,'') + extract_endnotes(para) + para.gsub!(/~[{\[]([\d*+]+)\s+(?:.+?)\s*<#@dp>[}\]]~/,'<en>\1</en>') #footnote/endnote clean para=@trans.markup_group(para) para.strip! @@xml[:body] << %{#{@tab*0}<object id="#{ocn}">} << "\n" @@ -248,6 +250,8 @@ WOK @@xml[:body] << %{#{@tab*2}#{para}#{@tab*1}\n} @@xml[:body] << %{#{@tab*1}</text>\n} @@xml[:body] << "#{@tab*0}</object>" << "\n" + @@xml[:body] << @endnotes if @endnotes + @endnotes=[] end def poem_structure(para='',ocn='') para.gsub!(/<:verse(?:-end)?>/,'') |