class SiSU_XHTML_EPUB2_Format::HeadToc
Public Class Methods
new(md)
click to toggle source
Calls superclass method
SiSU_XHTML_EPUB2_Format::HeadInformation::new
# File lib/sisu/xhtml_epub2_format.rb, line 1729 def initialize(md) super(md) @md=md @tocband_segtoc=make_seg end
Public Instance Methods
all()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1775 def all rights=SanitizeXML.xml(@md.rights.all) %{<p class="small_left">Rights: #{rights}</p>} end
concordance()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1753 def concordance if @md.concord_make %{#{the_margin.css} <h4 class="toc"> <a href="./#{@md.file.base_filename.html_concordance}"> <i>Concordance</i> </a> </h4> #{the_table_close}} else %{#{the_margin.css} #{the_table_close}} end end
concordance_link(text)
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1737 def concordance_link(text) if @md.concord_make %{<a href="#{@md.file.base_filename.html_concordance}" target="_top"> #{text} </a>} else '' end end
head()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1745 def head %{#{doc_type} <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> #{@css.xhtml_epub} </head> <body lang="#{@md.opt.lng}">} end
links_guide_open(type='horizontal')
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1767 def links_guide_open(type='horizontal') (type=='vertical') \ ? links_guide_vertical_open : links_guide_horizontal_open end
make_seg()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1784 def make_seg concord=concordance_link(the_nav.txt_concordance) %{<table summary="toc segment" border="0" cellpadding="3" cellspacing="0"> <tr><td align="center" bgcolor="white"> #{the_nav.txt_toc_link} </td> <td align="center" bgcolor="white"> <font size=2> #{concord} #{the_table_close}} end
manifest()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1795 def manifest #check structure manifest=manifest_link(the_nav.txt_manifest) %{#{the_margin.txt_3} #{the_font.paragraph_font_small} #{manifest} </font> #{the_table_close}} end
manifest_link(text)
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1734 def manifest_link(text) %{ <a href="#{@md.file.output_path.manifest.url}/#{@md.file.base_filename.manifest}" target="_top">#{text}</a>} end
metadata()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1811 def metadata %{#{the_margin.css} <h4 class="toc"> <a href="#{@metalink}"> <i>MetaData</i> </a> </h4> #{the_table_close}} end
prefix_a()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1772 def prefix_a end
prefix_b()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1781 def prefix_b %{<p class="small_left">Prefix: #{@md.prefix_b}} end
rights()
click to toggle source
# File lib/sisu/xhtml_epub2_format.rb, line 1774 def rights def all rights=SanitizeXML.xml(@md.rights.all) %{<p class="small_left">Rights: #{rights}</p>} end self end