diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-07-26 18:37:17 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-26 18:37:17 -0400 |
commit | e4e85022c6fec0009c0e64f62f3cb7f781039e90 (patch) | |
tree | c145c19de70f6df35f1ff8d854330e70d30645ad /lib | |
parent | manifest, minitoc configurable (true/false) (diff) |
html, links to output formats, remove icons
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/defaults.rb | 21 | ||||
-rw-r--r-- | lib/sisu/v2/html_format.rb | 21 | ||||
-rw-r--r-- | lib/sisu/v2/sysenv.rb | 2 |
3 files changed, 31 insertions, 13 deletions
diff --git a/lib/sisu/v2/defaults.rb b/lib/sisu/v2/defaults.rb index f53ca7ce..5c10c020 100644 --- a/lib/sisu/v2/defaults.rb +++ b/lib/sisu/v2/defaults.rb @@ -124,6 +124,8 @@ module SiSU_Viz end def js_prev end + def js_plaintext + end def js_portrait end def js_landscape @@ -1112,12 +1114,12 @@ module SiSU_Viz end def nav_txt_homepage %{ <font face="#{font_fonts}" size="2"> - #{png_site} homepage + home </font> } end def nav_txt_toc_link %{ <font face="#{font_fonts}" size="2"> - #{png_toc} toc + toc </font> } end def nav_txt_toc_link_verbose @@ -1127,7 +1129,7 @@ module SiSU_Viz end def nav_txt_doc_link %{ <font face="#{font_fonts}" size="2"> - #{png_doc} scroll + scroll </font> } end def nav_txt_manifest @@ -1151,9 +1153,14 @@ module SiSU_Viz Next <b>>></b> </font> } end + def nav_txt_plaintext + %{ <font face="#{font_fonts}" size="2"> + txt + </font> } + end def nav_txt_odf %{ <font face="#{font_fonts}" size="2"> - #{png_odf} odt + odt </font> } end def nav_txt_pdfs @@ -1163,17 +1170,17 @@ module SiSU_Viz end def nav_txt_epub %{ <font face="#{font_fonts}" size="2"> - #{png_epub} epub + epub </font> } end def nav_txt_pdf_portrait %{ <font face="#{font_fonts}" size="2"> - #{png_pdf_portrait} pdf + pdf </font> } end def nav_txt_pdf_landscape %{ <font face="#{font_fonts}" size="2"> - #{png_pdf_landscape} pdf + pdf </font> } end #% banner diff --git a/lib/sisu/v2/html_format.rb b/lib/sisu/v2/html_format.rb index b3712690..1cd5104f 100644 --- a/lib/sisu/v2/html_format.rb +++ b/lib/sisu/v2/html_format.rb @@ -147,7 +147,7 @@ module SiSU_HTML_Format def home %{<td align="center" bgcolor=#{@vz.color_band2}> <a href="../index.html" target="_top"> - #{@vz.png_homepage}</a> + #{@vz.nav_txt_homepage}</a> </td> } end @@ -198,6 +198,17 @@ module SiSU_HTML_Format else '' end end + def txt + txt=if @cf_defaults.cf_0 =~/[at]/ + %{ +<td valign=bottom bgcolor=#{@vz.color_band2}> + <a href="#{@md.fn[:plain]}" target="_top" #{@vz.js_plaintext}> + #{@vz.nav_txt_plaintext} + </a> +</td>} + else '' + end + end def epub epub=if @cf_defaults.cf_0 =~/e/ %{ @@ -338,7 +349,7 @@ WOK %{<table summary="toc segment and scroll with pdf" border="0" cellpadding="3" cellspacing="0"> <tr> #{scroll} - #{wgt.seg(@vz.nav_txt_toc_link)}#{wgt.epub}#{wgt.pdf}#{wgt.odf} + #{wgt.seg(@vz.nav_txt_toc_link)}#{wgt.txt}#{wgt.epub}#{wgt.pdf}#{wgt.odf} #{wgt.concordance(@vz.nav_txt_concordance)} #{wgt.manifest} #{wgt.search} @@ -355,7 +366,7 @@ WOK %{<table summary="toc scroll and segment with pdf" border="0" cellpadding="3" cellspacing="0"> <tr> #{seg} - #{wgt.scroll(@vz.nav_txt_doc_link)}#{wgt.epub}#{wgt.pdf}#{wgt.odf} + #{wgt.scroll(@vz.nav_txt_doc_link)}#{wgt.txt}#{wgt.epub}#{wgt.pdf}#{wgt.odf} <td align="center" bgcolor=#{@vz.color_band2}> #{wgt.concordance(@vz.nav_txt_concordance)} #{wgt.manifest} @@ -736,7 +747,7 @@ WOK <tr> #{wgt.seg(@vz.nav_txt_toc_link)} #{wgt.scroll(@vz.nav_txt_doc_link)} - #{wgt.epub}#{wgt.pdf}#{wgt.odf} + #{wgt.txt}#{wgt.epub}#{wgt.pdf}#{wgt.odf} <td align="center" bgcolor=#{@vz.color_band2}> #{wgt.concordance(@vz.nav_txt_concordance)} #{wgt.manifest} @@ -749,7 +760,7 @@ WOK <tr> #{wgt.seg(@vz.nav_txt_toc_link)} #{wgt.scroll(@vz.nav_txt_doc_link)} - #{wgt.epub}#{wgt.pdf}#{wgt.odf} + #{wgt.txt}#{wgt.epub}#{wgt.pdf}#{wgt.odf} <td align="center" bgcolor=#{@vz.color_band2}> #{wgt.manifest} #{wgt.search} diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb index f45ccdee..5b16a673 100644 --- a/lib/sisu/v2/sysenv.rb +++ b/lib/sisu/v2/sysenv.rb @@ -2210,7 +2210,7 @@ WOK and @md.cmd !~ /[hH]/ ft << @md.fn[:manifest] end - if @md.cmd =~ /a/; ft << @md.fn[:plain] + if @md.cmd =~ /[at]/; ft << @md.fn[:plain] end if @md.cmd =~ /b/; ft << @md.fn[:xhtml] end |