From 528875ec1f8a0c3918760252a59d97994345ea84 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 24 Feb 2008 21:02:43 +0000 Subject: for now strip sisu-0.66 semantic markup tags --- lib/sisu/v0/dal_syntax.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sisu/v0/dal_syntax.rb b/lib/sisu/v0/dal_syntax.rb index a6c48af0..22ec72b0 100644 --- a/lib/sisu/v0/dal_syntax.rb +++ b/lib/sisu/v0/dal_syntax.rb @@ -1,3 +1,4 @@ +# coding: utf-8 =begin * Name: SiSU @@ -99,6 +100,7 @@ module Syntax end def songsheet @data.each do |line| + line=if @md.sem_tag then sem(line) else line end line=pre(line) line=wordlist_italics(line) line=wordlist_bold(line) @@ -107,9 +109,11 @@ module Syntax end @data_new end + def sem(line) + line=SiSU_sem::Tags.new(line,@md).rm.all + end def pre(line) line=line.dup - line=SiSU_sem::Tags.new(line).rm.all if line =~/\{(?:t|table)(?:~h)?\s*c?[\d; ]*\}/; line.gsub!(/(\n)/,';;\1') #markup for alternative tables end line -- cgit v1.2.3