From 90c65af1050b7ef8027884fe24ce23c9511468c1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 30 Apr 2010 23:16:28 -0400 Subject: param_identify_markup, identify version 2 markup --- lib/sisu/v2/dal_doc_str.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sisu/v2/dal_doc_str.rb') diff --git a/lib/sisu/v2/dal_doc_str.rb b/lib/sisu/v2/dal_doc_str.rb index dc9a55b7..46ae8d3c 100644 --- a/lib/sisu/v2/dal_doc_str.rb +++ b/lib/sisu/v2/dal_doc_str.rb @@ -728,7 +728,7 @@ module SiSU_document_structure_extract @dob end def structure_markup_normalize #needs a bit of thinking - dob=if @md.markup_version.to_f < 0.38 #%convert internal representation, consider making 0.38 structure default ([A-C1-6] instead of [1-9]), requires downstream changes + dob=if @md.markup_version.determined < 0.38 #%convert internal representation, consider making 0.38 structure default ([A-C1-6] instead of [1-9]), requires downstream changes @dob.gsub!(/^[456]~/,'!_') @dob.gsub!(/^3~(\S+)/,"#{Mx[:lv_o]}6:\\1#{Mx[:lv_c]}") @dob.gsub!(/^3~\s+/,"#{Mx[:lv_o]}6:#{Mx[:lv_c]}") @@ -756,7 +756,7 @@ module SiSU_document_structure_extract end end def structure_marks - t_o=if @md.markup_version.to_f < 0.38 + t_o=if @md.markup_version.determined < 0.38 @t_o.gsub!(/^1~(\S+)/,"#{Mx[:lv_o]}1:\\1#{Mx[:lv_c]}") @t_o.gsub!(/^1~\s+/,"#{Mx[:lv_o]}1:#{Mx[:lv_c]}") @t_o.gsub!(/^2~(\S+)/,"#{Mx[:lv_o]}2:\\1#{Mx[:lv_c]}") -- cgit v1.2.3