#{@md.html_title}
#{@full_title}
#{@author}
#{@subject}
#{@description}
#{@publisher}
#{@contributor}
#{@date}
#{@date_created}
#{@date_issued}
#{@date_available}
#{@date_valid}
#{@date_modified}
#{@type}
#{@format}
#{@identifier}
#{@source}
#{@language}
#{@relation}
#{@coverage}
#{@rights}
#{@copyright}
#{@owner}
#{@png.ico}
#{@txt.generator}
#{@js.head}
\n
#{@color.body}
#{@font.css_table_file}
#{@js.top}
WOK
end
end
class FormatTextObject
include SiSU_Parts_XML
attr_accessor :md,:txt,:format,:paranum,:p_num,:para_id,:headname,:font
def initialize(md,dob)
@md,@dob=md,dob
if @dob[:ocn]=~/\d+/
@paranum=/(\d+)/m.match(@dob[:ocn])[1]
@headname=''
@headname=%{} if defined? dob.name
@p_num=SiSU_XML_Format::ParagraphNumber.new(@md,dob.ocn)
end
rgx=/^[1-6-]~{1,2}/ #watch
@lnk_url=@lnk_url.gsub(rgx,'') if @lnk_url =~rgx
rgx=/~\{\d+\s+(.+?)\}~/
@lnk_url=@lnk_url.gsub(rgx,'\1') if @lnk_url =~rgx
end
def scr_endnote_body
"#{@txt} "
end
end
class FormatScroll < FormatTextObject
def initialize(md,dob)
super(md,dob)
end
def heading_body
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body0
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body1
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body2
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body3
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body4
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body5
%{#{@p_num.name}#{@headname}#{@dob.obj}
} +
%{ #{@dob.ocn}
\n}
end
def heading_body6
%{#{@p_num.name}#{@headname}#{@dob.obj}} +
%{ #{@dob.ocn}
\n}
end
end
class ParagraphNumber
def initialize(md,ocn)
@md,@ocn=md,ocn.to_s
@ocn ||=''
end
def ocn_display
@make=SiSU_Env::ProcessingSettings.new(@md)
if @make.build.ocn?
ocn_class='ocn'
if @ocn.to_i==0
@ocn.gsub(/^(\d+|)$/,
%{})
else
@ocn.gsub(/^(\d+|)$/,
%{})
end
else
ocn_class='ocn_off'
@ocn.gsub(/^(\d+|)$/,
%{})
end
end
def name
%{}
end
def id #w3c? "tidy" complains about numbers as identifiers ! annoying
%{id="o#{@ocn}"}
end
def goto
%{}
end
end
class HeadInformation
include SiSU_Parts_XML
attr_reader :md,:sfx,:pdf,:rdf,:vz
def initialize(md)
@md=md
@rdf=SiSU_XML_Tags::RDF.new(md)
# DublinCore 1 - title
@stylesheet=SiSU_Style::CSS_HeadInfo.new(md).stylesheet
@seg_name_html=(SiSU_HTML::Source::Seg.new.seg_name_html || [])
@seg_name_html_tracker=(SiSU_HTML::Source::Seg.new.seg_name_html_tracker || [])
@index='index'
@metalink='#metadata'
@tocband_scroll,@tocband_segtoc=nil,nil
end
def doc_type
%{
\n}
end
def table_close
%{
#{the_table_close}}
end
def html_close #moved
%{