(.*)/.match(para).captures
format_scroll=SiSU_HTML_Format_type::Format_scroll.new(@md,one,two)
end
else # this is crazy rethink and redo later with some form of inject
m=/<~\d+;(?:[oh]|[0-6]:)\d+;\w\d+><#@dp:#@dp>$/
if para =~m
format_txt_obj=SiSU_HTML_Format_type::Format_text_object.new(@md,@sto.text) if @sto.format =~/[12]|null/
meta=case @sto.format
when /^1~/; @sto.scroll_lev_para_ocn.heading_body1
when /^2~/; @sto.scroll_lev_para_ocn.heading_body2
when /^3~/; @sto.scroll_lev_para_ocn.heading_body3
when /^4~\S+/; @sto.scroll_lev_para_ocn.heading_body4 # work on see Split_text_object
when /^5~/; @sto.scroll_lev_para_ocn.heading_body5
when /^6~/; @sto.scroll_lev_para_ocn.heading_body6
when /^i1$/
format_txt_obj.gsub_body
@sto.scroll_lev_para_ocn.indent1
when /^i2$/
format_txt_obj.gsub_body
@sto.scroll_lev_para_ocn.indent2
when /^center$/; @sto.scroll_lev_para_ocn.center
when /^(b|bold)$/; @sto.scroll_lev_para_ocn.bold
when /null/ # see whether u can improve
if para !~/#{@vz.margin_txt_0}|#{@vz.margin_txt_1}|#{@vz.margin_txt_2}/
format_txt_obj.gsub_body
@sto.scroll_lev_para_ocn.para
if para =~/<#@dp:#@dp>$/
format_txt_obj=SiSU_HTML_Format_type::Format_text_object.new(@md,'
Note')
meta=format_txt_obj.bold_para
elsif para =~/MetaData/ and para =~/<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>$/ #debug 2003w46 add rc info
format_txt_obj=SiSU_HTML_Format_type::Format_text_object.new(@md,'
MetaData')
meta=format_txt_obj.bold_para
elsif para =~/Owner Details/ and para !~/<~\d+;(?:[oh]|[0-6]:)\d+;\w\d+><#@dp:#@dp>$/
format_txt_obj=SiSU_HTML_Format_type::Format_text_object.new(@md,'
Owner Details')
@scr[:owner_details]=format_txt_obj.bold_para
meta=''
elsif para =~/(¡|<#@dp:#@dp>(.*)/ #ok - bug in equiv for seg 2004w46
one,two=$1,$2
format_scroll=SiSU_HTML_Format_type::Format_scroll.new(@md,one,two) #watch #fix
meta=format_scroll.no_paranum
end
meta='' if para =~// and para =~/^(\^~\d+ |)/ # -endnote
if para =~/<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>$/
case para
when /<:i1>/
gsub(/<:i1>/,'')
format_scroll=SiSU_HTML_Format_type::Format_scroll.new(@md,para)
meta=format_scroll.indent_one_no_paranum
when /<:i2>/
gsub(/<:i2>/,'')
format_scroll=SiSU_HTML_Format_type::Format_scroll.new(@md,para)
meta=format_scroll.indent_one_no_paranum
end
end
if para !~/#{@vz.margin_txt_0}|#{@vz.margin_txt_1}|#{@vz.margin_txt_2}/
end
if para =~/<:center>/
one,two=/(.*)<:center>(.*)/.match(para).captures
format_scroll=SiSU_HTML_Format_type::Format_scroll.new(@md,one,two)
end
end
para.gsub!(//,' ')
para.gsub!(/^<:\S?>/,'')
para.gsub!(/<:\S?>/,' ')
para.strip!
unless meta; @scr[:body] << para unless para =~/\A\s*\Z/
else @scr[:metadata] << meta
end
end
end
@scr
end
def tails
scr_tail=[]
format_head_scroll=SiSU_HTML_Format_type::Head_toc.new(@md)
ads=SiSU_HTML_promo::Ad.new(@md)
scr_tail << format_head_scroll.scroll_tail << ads.div.close << ads.display << format_head_scroll.html_close
scr_tail
end
end
end
__END__