class SiSU_HTML_Format::HeadSeg
Public Class Methods
new(md)
click to toggle source
Calls superclass method
SiSU_HTML_Format::HeadInformation::new
# File lib/sisu/html_format.rb, line 614 def initialize(md) super(md) end
Public Instance Methods
concordance_link(text)
click to toggle source
# File lib/sisu/html_format.rb, line 714 def concordance_link(text) if @md.concord_make %{<font size=2> <a href="#{@md.file.base_filename.html_concordance}" target="_top"> #{text} </a> </font>} else '' end end
credit()
click to toggle source
# File lib/sisu/html_format.rb, line 724 def credit %{ <div class="main_column"> #{@bits.credits_sisu} <a name="bottom" id="bottom"></a> <a name="end" id="end"></a> </div></div> } end
dot_control_pre()
click to toggle source
# File lib/sisu/html_format.rb, line 645 def dot_control_pre pre="#{@per.seg_name_x[@per.seg_name_x_tracker-2]}#{@md.lang_code_insert}#{Sfx[:html]}" up=@toc nxt="#{@md.file.base_filename.html_segtoc}" %{<table summary="segment hidden control pre" width="100%" border="0" cellpadding="0" bgcolor=#{the_color.grey_pale} align="center"> <tr><td align="left"> <a href="#{pre}" target="_top"> #{png_nav.dot_pre} </a> </td> <td align="center"> <a href="#{up}" target="_top"> #{png_nav.dot_toc} </a> </td> <td align="right"> <a href="#{nxt}" target="_top"> #{png_nav.dot_nxt} </a> #{the_table_close}} end
dot_control_pre_next()
click to toggle source
# File lib/sisu/html_format.rb, line 617 def dot_control_pre_next pre="#{@per.seg_name_x[@per.seg_name_x_tracker-1]}#{@md.lang_code_insert}#{Sfx[:html]}" up=@toc nxt="#{@per.seg_name_x[@per.seg_name_x_tracker+1]}#{@md.lang_code_insert}#{Sfx[:html]}" if nxt=~/sisu_manifest\.html/ @file=SiSU_Env::FileOp.new(@md) if @md if @file.output_dir_structure.by_language_code? \ or @file.output_dir_structure.by_filetype? nxt=nxt.gsub(/sisu_manifest\.html/,"../../manifest/#{@file.base_filename.manifest}") end end %{<table summary="segment hidden control pre and next" width="100%" border="0" cellpadding="0" bgcolor=#{the_color.grey_pale} align="center"> <tr><td align="left"> <a href="#{pre}" target="_top"> #{png_nav.dot_pre} </a> </td> <td align="center"> <a href="#{up}" target="_top"> #{png_nav.dot_toc} </a> </td> <td align="right"> <a href="#{nxt}" target="_top"> #{png_nav.dot_nxt} </a> #{the_table_close}} end
endnote_mark()
click to toggle source
# File lib/sisu/html_format.rb, line 762 def endnote_mark %{ <p class="center" id="endnotes"> <hr class="endnote" /> </p>} end
endnote_section_close()
click to toggle source
# File lib/sisu/html_format.rb, line 773 def endnote_section_close %{ </div> } #revisit end
endnote_section_open()
click to toggle source
# File lib/sisu/html_format.rb, line 768 def endnote_section_open %{ <div class="endnote"> } end
head_seg()
click to toggle source
# File lib/sisu/html_format.rb, line 778 def head_seg rdf=SiSU_XML_Tags::RDF.new(@md) %{<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> #{@per.seg_name_x[@per.seg_name_x_tracker]} - #{@md.title.main} </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> #{rdf.metatag_html} #{@stylesheet.css_head_seg} </head> <body lang="#{@md.opt.lng}"> <a name="top" id="top"></a>} end
manifest_link(text)
click to toggle source
# File lib/sisu/html_format.rb, line 707 def manifest_link(text) %{<font size=2> <a href="#{@md.file.base_filename.manifest}" target="_top"> #{text} </a> </font>} end
toc_next2()
click to toggle source
# File lib/sisu/html_format.rb, line 698 def toc_next2 toc_nav(false,true).dup end
toc_pre2()
click to toggle source
# File lib/sisu/html_format.rb, line 704 def toc_pre2 toc_nav(true,false,2).dup end
toc_pre_next2()
click to toggle source
# File lib/sisu/html_format.rb, line 701 def toc_pre_next2 toc_nav(true,true).dup end