Class: SiSU_Concordance::Source::DocTitle

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

Instance Method Summary collapse

Constructor Details

#initialize(particulars) ⇒ DocTitle

Returns a new instance of DocTitle.



123
124
125
126
127
128
129
130
131
132
133
# File 'lib/sisu/html_concordance.rb', line 123

def initialize(particulars)
  @particulars,@md=particulars,particulars.md
  @data=SiSU_HTML::Source::HTML_Environment.new(particulars).tuned_file_instructions
  @file=SiSU_Env::FileOp.new(@md)
  @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="#{@file.path_rel_links.html_seg_2}_sisu/image/sisu.png" alt="SiSU home --&gt;"></a>}
  @doc_details =<<WOK
<table summary="links to text related to this rudimentary index" width="96%" border="0" cellpadding="0" align="center"><tr><td width="2%" align="right">&nbsp;</td><td width="94%" valign="top" align="justify"><h1 class="small"><a href="#{@md.file.base_filename.html_segtoc}"><b>#{@md.title.full}</b></a></h1><p class="bold">#{@md.author}</p></td></tr></table>
WOK
  @make=SiSU_Env::ProcessingSettings.new(@md)
end

Instance Method Details

#createObject



134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/sisu/html_concordance.rb', line 134

def create
  head_banner=SiSU_HTML_Format::HeadToc.new(@md)
  minitoc=SiSU_HTML_MiniToc::TocMini.new(@md,@data).songsheet.join("\n")
  stylesheet=SiSU_Style::CSS_HeadInfo.new(@md).stylesheet
  if @make.build.manifest_minitoc?
    toc='<div class="toc">' + minitoc + '</div>'
    div_class='content'
  else
    toc=''
    div_class='content0'
  end
  top_band=if @make.build.html_top_band?
    head_banner.concordance_navigation_band
  else ''
  end
  <<WOK
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>
    SiSU created WordIndex for: #{@md.title.full}
  </title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="Description" content="&nbsp;SiSU created">
  <meta name="keywords" content="word index for #{@md.title.full}">
  <meta name="generator" content="SiSU (Linux &amp; Ruby!)">
  <link rel="generator" href="http://www.jus.uio.no/sisu" />
  <link rel="shortcut icon" href="../_sisu/image/rb7.ico" />
  #{stylesheet.css_head_seg}
</head>
<body>
  #{top_band}
  #{toc}
<div class="#{div_class}">
 #{@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 # [&nbsp;http://[web host]/#{@fnb}/concordance.html#your_word&nbsp;]
  </p>
WOK
end