From 452f2c20ea361d68e7533f2bd45a6d5b215ed700 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 19 Sep 2008 19:03:07 -0400 Subject: sample sisu markup "Free as in Freedom": book index markers included, and; identify markup helpers updated * sample sisu markup "Free as in Freedom": book index markers included * identify markup helpers updated --- lib/sisu/v0/sst_identify_markup.rb | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v0/sst_identify_markup.rb') diff --git a/lib/sisu/v0/sst_identify_markup.rb b/lib/sisu/v0/sst_identify_markup.rb index a9eb4d32..3fbac3f3 100644 --- a/lib/sisu/v0/sst_identify_markup.rb +++ b/lib/sisu/v0/sst_identify_markup.rb @@ -114,7 +114,7 @@ WOK or cont[0] =~ /^(?:%\s+)?sisu-([0-9](?:\.[0-9]+){1,2})/ @declared_markup=$1 end - @flat_66,@flag_57,@flag_38=false,false,false + @flag_66,@flag_57,@flag_38=false,false,false cont.each_with_index do |y,i| if y =~/^(?:0\{?~links?|@links?:)\s/ \ and f =~/(?:\.sst|\.ssm|\.ssi|\.s[123])/ @@ -130,6 +130,13 @@ WOK end end if @flag_38 + if @flag_69 \ + or y =~/^=\{.+?\}\s*$/ + version='0.69' + markup=Markup_inform.new(version,'0.69' + oldlinks,@declared_markup,@declared_type) + @flag_69=true + break + end if @flag_66 \ or y =~/[a-z+][:;]\{.+?\}[:;][a-z+]/ version='0.66' @@ -139,7 +146,7 @@ WOK end end end - unless @flag_66 + unless @flag_66 or @flag_69 cont.each_with_index do |y,i| if y =~/^(?:0\{?~links?|@links?:)\s/ \ and f =~/(?:\.sst|\.ssm|\.ssi|\.s[123])/ @@ -245,6 +252,22 @@ WOK def initialize(opt) @opt=opt end + def sisu_0_69 + <