aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/sst_to_s_xml_node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/sst_to_s_xml_node.rb')
-rw-r--r--lib/sisu/v0/sst_to_s_xml_node.rb50
1 files changed, 1 insertions, 49 deletions
diff --git a/lib/sisu/v0/sst_to_s_xml_node.rb b/lib/sisu/v0/sst_to_s_xml_node.rb
index ed7f4b10..d9451149 100644
--- a/lib/sisu/v0/sst_to_s_xml_node.rb
+++ b/lib/sisu/v0/sst_to_s_xml_node.rb
@@ -440,54 +440,6 @@ WOK
end
end
end
- #obj.each do |o|
- # para=o.txt unless o.txt =~/^%% / #comments are lost, consider
- # if para
- # para.gsub!(/#{Mx[:fa_italics_o]}(.+?)#{Mx[:fa_italics_c]}/,'<i>\1</i>')
- # para.gsub!(/#{Mx[:fa_bold_o]}(.+?)#{Mx[:fa_bold_c]}/,'<b>\1</b>')
- # para.gsub!(/#{Mx[:fa_underscore_o]}(.+?)#{Mx[:fa_underscore_c]}/,'<u>\1</u>')
- # para.gsub!(/#{Mx[:fa_strike_o]}(.+?)#{Mx[:fa_strike_c]}/,'<del>\1</del>')
- # para.gsub!(/#{Mx[:br_line]}|#{Mx[:br_paragraph]}/,'<br />')
- # if @rcdc==false \
- # and (para =~/~metadata/ or para =~/^1~meta\s+Document Information/)
- # if para !~/(^0~|^@\S+?:|^\s*$|<ENDNOTES>|<EOF>)/
- # @rcdc=true
- # end
- # @sto=SiSU_text_parts::Split_text_object.new(@md,para).lev_segname_para
- # unless @rcdc
- # format_scroll=SiSU_XML_format::Format_scroll.new(@md,@sto.text) if @sto.format =~/i[12]|null/
- # case @sto.format
- # when /^(1):(\S*)/
- # node_structure(o,para,$1,$2)
- # when /^(2):(\S*)/
- # node_structure(o,para,$1,$2)
- # when /^(3):(\S*)/
- # node_structure(o,para,$1,$2)
- # when /^(4):(\S*)/ # work on see Split_text_object
- # node_structure(o,para,$1,$2)
- # when /^(5):(\S*)/
- # node_structure(o,para,$1,$2)
- # when /^(6):(\S*)/
- # node_structure(o,para,$1,$2)
- # else
- # if para =~ /<:verse>/
- # node_structure(o,para)
- # elsif para =~ /<:group>/
- # node_structure(o,para)
- # elsif para =~ /<:code>/
- # node_structure(o,para)
- # elsif para =~/<!Th?.+/ # tables come as single block #work area 2005w13
- # #elsif para =~/#{Mx[:gr_o]}Th?.+/ # tables come as single block #work area 2005w13
- # table=SiSU_Tables::Table_xml.new(para)
- # para=table.table_split
- # node_structure(o,para)
- # else node_structure(o,para,nil,nil)
- # end
- # end
- # end
- # end
- # end
- #end
obj.each do |o|
para=o.txt unless o.txt =~/^%% / #comments are lost, consider
if para
@@ -504,7 +456,7 @@ WOK
if para !~/(^0~|^@\S+?:|^\s*$|<ENDNOTES>|<EOF>)/
@sto=SiSU_text_parts::Split_text_object.new(@md,para).lev_segname_para
unless @rcdc
- format_scroll=SiSU_XML_format::Format_scroll.new(@md,@sto.text) if @sto.format =~/i[12]|null/
+ format_scroll=SiSU_XML_format::Format_scroll.new(@md,@sto.text) if @sto.format =~/i[12]|ordinary/
case @sto.format
when /^(1):(\S*)/
xml_clean(para)