aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-07-26 18:37:17 -0400
committerRalph Amissah <ralph@amissah.com>2010-07-26 18:37:17 -0400
commite4e85022c6fec0009c0e64f62f3cb7f781039e90 (patch)
treec145c19de70f6df35f1ff8d854330e70d30645ad
parentmanifest, minitoc configurable (true/false) (diff)
html, links to output formats, remove icons
-rw-r--r--lib/sisu/v2/defaults.rb21
-rw-r--r--lib/sisu/v2/html_format.rb21
-rw-r--r--lib/sisu/v2/sysenv.rb2
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}&nbsp;homepage&nbsp;
+ &nbsp;home&nbsp;
</font> }
end
def nav_txt_toc_link
%{ <font face="#{font_fonts}" size="2">
- #{png_toc}&nbsp;&nbsp;toc&nbsp;
+ &nbsp;&nbsp;toc&nbsp;
</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}&nbsp;scroll&nbsp;
+ &nbsp;scroll&nbsp;
</font> }
end
def nav_txt_manifest
@@ -1151,9 +1153,14 @@ module SiSU_Viz
&nbsp;&nbsp;Next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>&gt;&gt;</b>&nbsp;&nbsp;
</font> }
end
+ def nav_txt_plaintext
+ %{ <font face="#{font_fonts}" size="2">
+ &nbsp;&nbsp;txt&nbsp;
+ </font> }
+ end
def nav_txt_odf
%{ <font face="#{font_fonts}" size="2">
- #{png_odf}&nbsp;&nbsp;odt&nbsp;
+ &nbsp;&nbsp;odt&nbsp;
</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}&nbsp;epub&nbsp;
+ &nbsp;epub&nbsp;
</font> }
end
def nav_txt_pdf_portrait
%{ <font face="#{font_fonts}" size="2">
- #{png_pdf_portrait}&nbsp;pdf&nbsp;
+ &nbsp;pdf&nbsp;
</font> }
end
def nav_txt_pdf_landscape
%{ <font face="#{font_fonts}" size="2">
- #{png_pdf_landscape}&nbsp;pdf&nbsp;
+ &nbsp;pdf&nbsp;
</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