diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-08-08 00:34:25 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-08-08 00:36:15 -0400 |
commit | 6bc3b814011e829db684ec96bb3abd1e4abb29c3 (patch) | |
tree | 72d759c1d89a72c4fc5e3c46f6917f69e72699e6 /lib/sisu/v6/xml_format.rb | |
parent | v5: merged v6 libraries (diff) |
v5 v6: extend document structure, headings A - D, 1 - 4
* sql db table structure changed (needs to be rebuilt)
Diffstat (limited to 'lib/sisu/v6/xml_format.rb')
-rw-r--r-- | lib/sisu/v6/xml_format.rb | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/lib/sisu/v6/xml_format.rb b/lib/sisu/v6/xml_format.rb index 70c1a27f..38cc7f85 100644 --- a/lib/sisu/v6/xml_format.rb +++ b/lib/sisu/v6/xml_format.rb @@ -1115,6 +1115,9 @@ WOK def heading_body6 heading_normal('h6','norm') end + def heading_body7 + heading_normal('h7','norm') + end def title_header(tag,attrib) %{ <div class="content"> @@ -1291,6 +1294,9 @@ WOK def subtoc_lev6 subtoc_lev('h6','subtoc') if @txt end + def subtoc_lev7 + subtoc_lev('h7','subtoc') if @txt + end #% para sisu def header_sub(tag,attrib) @txt=@txt.gsub(/(?:#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}|#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]})\s*/m,' ') @@ -1303,12 +1309,6 @@ WOK </div> } end - def header5 - header_sub('p','bold') - end - def header6 - header_sub('p','bold') - end def header4 %{ <div class="substance"> @@ -1320,6 +1320,15 @@ WOK </div> } end + def header5 + header_sub('p','bold') + end + def header6 + header_sub('p','bold') + end + def header7 + header_sub('p','bold') + end def navigation_header4 %{<table summary="navigation segment header 4" width=100% bgcolor="#08163f" border="0"> <tr><td align="center"> @@ -1338,6 +1347,11 @@ WOK #{@txt} </p>} end + def navigation_header7 + %{<p class="bold"> + #{@txt} +</p>} + end def navigation_center "<center>#{@txt}</center>" end @@ -1381,6 +1395,10 @@ WOK def lev6 lev('h6','toc') end + def lev7 + lev('h7','toc') + #lev('b','toc') + end def lev0 #docinfo lev('h0','toc') end @@ -1402,6 +1420,9 @@ WOK def mini_lev6 lev('h6','minitoc') end + def mini_lev7 + lev('h7','minitoc') + end def mini_lev0 #docinfo lev('h0','minitoc') end |