Class: SiSU_XHTML_EPUB2_Concordance::Source::DocTitle

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/xhtml_epub2_concordance.rb

Instance Method Summary collapse

Constructor Details

#initialize(particulars) ⇒ DocTitle

Returns a new instance of DocTitle.



99
100
101
102
103
104
105
106
107
# File 'lib/sisu/xhtml_epub2_concordance.rb', line 99

def initialize(particulars)
  @particulars,@md=particulars,particulars.md
  @data=SiSU_XHTML_EPUB2::Source::XHTML_Environment.new(particulars).tuned_file_instructions
  @fnb=@md.fnb
  @lex_button=%{<a href="http://www.jus.uio.no/sisu/" target="_top"><img border="0" height="44" width="144" valign="center" src="../_sisu/image/sisu.png" alt="SiSU home"></a>}
  @doc_details =<<WOK
<table summary="links to text related to this rudimentary index" width="96%" border="0" bgcolor="white" cellpadding="0" align="center"><tr><td width="2%" align="right">#{$ep[:hsp]}</td><td width="94%" valign="top" align="justify"><h1 class="small"><a href="#{@md.file.base_filename.epub}"><b>#{@md.title.full}</b></a></h1><p class="bold">#{@md.creator.author}</p></td></tr></table>
WOK
end

Instance Method Details

#createObject



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/sisu/xhtml_epub2_concordance.rb', line 108

def create
  @css=SiSU_Env::CSS_Stylesheet.new(@particulars.md)
  format_head_toc=SiSU_XHTML_EPUB2_Format::HeadToc.new(@md)
  dochead=format_head_toc.head
  <<WOK
#{dochead}
<div class="content">
 #{@doc_details}
<p>Word index links are to html versions of the text the segmented version followed by the scroll (single document) version.<br />[For segmented text references [T1], [T2] or [T3] appearing without a link, indicates that the word appears in a title (or subtitle) of the text (that is identifiable by the appended object citation number).]</p>
<p>(The word listing/index is Case sensitive: Capitalized words appear before lower case)</p>
  <p>
    <b>word</b> (number of occurences)<br />linked references to word within document <br />
    [if number of occurences exceed number of references - word occurs more than once in at least one reference. Footnote/endnotes are either assigned to the paragraph from which they are referenced or ignored, so it is relevant to check the footnotes referenced from within a paragraph as well.]
  </p>
  <p>
    (After the page is fully loaded) you can jump directly to a word by appending a hash (#) and the word to the url for this text, (do not forget that words are case sensitive, and may be listed twice (starting with and without an upper case letter)), #your_word # [#{$ep[:hsp]}http://[web host]/#{@fnb}/concordance.html#your_word#{$ep[:hsp]}]
  </p>
WOK
end