From 6bc3b814011e829db684ec96bb3abd1e4abb29c3 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 8 Aug 2014 00:34:25 -0400 Subject: v5 v6: extend document structure, headings A - D, 1 - 4 * sql db table structure changed (needs to be rebuilt) --- lib/sisu/v6/html_format.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/sisu/v6/html_format.rb') diff --git a/lib/sisu/v6/html_format.rb b/lib/sisu/v6/html_format.rb index 2f7b030e..b2476719 100644 --- a/lib/sisu/v6/html_format.rb +++ b/lib/sisu/v6/html_format.rb @@ -1065,6 +1065,9 @@ WOK def heading_body6 heading_normal('h6','norm') end + def heading_body7 + heading_normal('h7','norm') + end def title_heading(tag,attrib) cl=(@make.build.html_minitoc?) \ ? 'content' @@ -1228,6 +1231,8 @@ WOK end def navigation_toc_lev6 end + def navigation_toc_lev7 + end def endnote_seg_body(fn='') #FIX #url construction keep within single line... BUG WATCH 200408 fn='doc' if fn.to_s.empty? #you may wish to reconsider, sends to 'doc' where no segment info %{ @@ -1265,6 +1270,9 @@ WOK def subtoc_lev6 subtoc_lev('h6','subtoc') if @txt end + def subtoc_lev7 + subtoc_lev('h7','subtoc') if @txt + end def heading_sub(tag,attrib) @txt=@txt.gsub(/(?:#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]})\s*/m,' ') %{ @@ -1357,6 +1365,9 @@ WOK def lev6 lev('h6','toc') end + def lev7 + lev('h7','toc') + end def strip_endnotes(txt) txt=txt.gsub(/(?:#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]})\s*/m,' ') txt @@ -1389,6 +1400,10 @@ WOK @txt=strip_endnotes(@txt) lev('h6','minitoc') end + def mini_lev7 + @txt=strip_endnotes(@txt) + lev('h7','minitoc') + end def mini_lev0 #docinfo lev('h1','minitoc') end -- cgit v1.2.3