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

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
navigation_band(segtocband,seg_table_top_control) click to toggle source
navigation_band_bottom(segtocband,seg_table_top_control) click to toggle source
title_banner(title,subtitle,creator) click to toggle source
# File lib/sisu/html_format.rb, line 795
    def title_banner(title,subtitle,creator)
      %{
<div class="summary">
  <p class="tiny">
    #{title}
  </p>
  <p class="tiny">
    #{subtitle}
  </p>
  <p class="tiny">
    #{creator}
  </p>
  <p class="tiny">
    copy @
    <a href="#{the_url.home}">
      #{the_text.txt_home}
    </a>
  </p>
</div>
}
    end
toc_nav(f_pre=false,f_nxt=false,use=1) click to toggle source
# File lib/sisu/html_format.rb, line 666
    def toc_nav(f_pre=false,f_nxt=false,use=1)
      pre=nxt=''
      toc=%{<td align="center" bgcolor=#{the_color.band1}>
  <a href="#{@toc}" target="_top">
    #{png_nav.toc}
  </a>
</td>}
      pre=%{<td align="center" bgcolor=#{the_color.band1}>
  <a href="#{@per.seg_name_x[@per.seg_name_x_tracker-use]}#{@md.lang_code_insert}#{Sfx[:html]}" target="_top">
    #{png_nav.pre}
  </a>
</td>} if f_pre==true
      nxt=%{<td align="center" bgcolor=#{the_color.band1}>
  <a href="#{@per.seg_name_x[@per.seg_name_x_tracker+1]}#{@md.lang_code_insert}#{Sfx[:html]}" target="_top">
    #{png_nav.nxt}
  </a>
</td>} if f_nxt==true
      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 navigation pre/next" border="0" cellpadding="3" cellspacing="0">
<tr>
#{pre}
#{toc}
#{nxt}
<td>
#{the_table_close}}
    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