class SiSU_XHTML_EPUB2_Format::HeadToc

Public Class Methods

new(md) click to toggle source
# 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
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
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
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