aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/html_format.rb')
-rw-r--r--lib/sisu/v0/html_format.rb78
1 files changed, 55 insertions, 23 deletions
diff --git a/lib/sisu/v0/html_format.rb b/lib/sisu/v0/html_format.rb
index 87988ec1..1ee409ab 100644
--- a/lib/sisu/v0/html_format.rb
+++ b/lib/sisu/v0/html_format.rb
@@ -335,6 +335,25 @@ WOK
#{@vz.table_close}
<p />}
end
+ def seg_head_navigation_band_bottom(type='')
+ if type=~/pdf/
+ @tocband_segtoc=make_scroll_seg_pdf
+ end
+ firstseg=%{<a href="#{@md.fnl[:pre]}#{@md.firstseg}#{@md.fnl[:mid]}#@sfx#{@md.fnl[:post]}" target="_top" alt="-&gt;">
+ #{@vz.png_nav_nxt}
+ </a>} if @md.firstseg =~/\S+/
+ %{<table summary="table of contents segment navigation band" id="toc" width="100%" bgcolor=#{@vz.color_band1}>
+<tr><td width="20%">
+ &nbsp;
+</td>
+<td width="60%" align="center">
+ #@tocband_segtoc
+</td>
+<td width="20%" align="right">
+ &nbsp;#{firstseg}&nbsp;
+#{@vz.table_close}
+<p />}
+ end
def manifest_link(text)
%{<font size=2>
<a href="#{@md.fn[:manifest]}" target="_top" #{@vz.js_manifest}>#{text}</a>
@@ -572,7 +591,9 @@ WOK
metadata
end
def seg_tail
- %{<p>&nbsp;<p>
+ %{
+<div class="main_column">
+<p>&nbsp;<p>
<table summary="toc segment tail" bgcolor=#{@vz.color_band1}>
<tr><td width="20%">
#{@vz.banner_band}
@@ -591,11 +612,15 @@ WOK
<a name="end" id="end"></a>
<a name="finish" id="finish"></a>
<a name="stop" id="stop"></a>
-<a name="credits"></a>}
+<a name="credits"></a>
+</div>
+}
end
def scroll_tail #debug
nav=scroll_head_navigation_band
- %{#{nav}
+ %{
+<div class="main_column">
+#{nav}
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
@@ -604,11 +629,13 @@ WOK
<a name="finish" id="finish"></a>
<a name="stop" id="stop"></a>
<a name="credits"></a>
-</div></div>}
+</div>}
end
def seg_navigation_tail #this is a bug area, look up and "tidy"
#nav=scroll_head_navigation_band
- %{<p>&nbsp;</p>
+ %{
+<div class="main_column">
+<p>&nbsp;</p>
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
@@ -616,7 +643,9 @@ WOK
<a name="end" id="end"></a>
<a name="finish" id="finish"></a>
<a name="stop" id="stop"></a>
-<a name="credits"></a>}
+<a name="credits"></a>
+</div>
+}
end
end
class Head_seg < Head_information
@@ -864,7 +893,9 @@ WOK
</center>}
end
def credit
- %{#{@vz.credits_splash}
+ %{
+<div class="main_column">
+#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
<a name="down" id="down"></a>
@@ -891,8 +922,7 @@ WOK
end
def navigation_band_bottom(segtocband,seg_table_top_control) #change name to navigaion_band_bannerless
%{
-<div class="substance">
-<p class="content">
+<div class="main_column">
<table summary="segment navigation band" bgcolor=#{@vz.color_band1} width="100%"><tr>
<td width="70%" align="center">
#{doc_types}
@@ -902,13 +932,24 @@ WOK
</td></tr>
</table>
#{seg_table_top_control}
-</p>
</div>
}
end
def endnote_mark
-%{<p class="center" id="endnotes">
-</p>} #revisit
+%{
+<p class="center" id="endnotes">
+ <hr class="endnote" />
+</p>}
+ end
+ def endnote_section_open
+%{
+<div class="endnote">
+}
+ end
+ def endnote_section_close
+%{
+</div>
+} #revisit
end
def head
%{#{doc_type}
@@ -1177,12 +1218,9 @@ WOK
end
def endnote_body
%{
-<div class="substance">
- <label class="ocn">&nbsp;</label>
- <p class="endnote">
+<p class="endnote">
#@one
- </p>
-</div>
+</p>
}
end
def header_normal
@@ -1279,30 +1317,24 @@ WOK
end
def endnote_body_seg_tail #FIX
%{
-<div class="endnote">
<p class="endnote">
#@one
</p>
-</div>
}
end
def endnote_body_seg_tail_indent
%{
-<div class="endnote">
<p class="endnote_indent">
#@one
</p>
-</div>
}
end
def endnote_seg_body(fn='') #FIX #url construction keep within single line... BUG WATCH 200408
fn='doc' if fn.empty? #you may wish to reconsider, sends to 'doc' where no segment info
%{
-<div class="endnote">
<p class="endnote">
#@one#{@md.fnl[:pre]}#{fn}#{@md.fnl[:mid]}#{@md.sfx}#{@md.fnl[:post]}#@two#@three
</p>
-</div>
}
end
def title_header