aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-02-24 21:02:43 +0000
committerRalph Amissah <ralph@amissah.com>2008-02-24 21:02:43 +0000
commit528875ec1f8a0c3918760252a59d97994345ea84 (patch)
tree1c4df9c9046f7e6161948581a4cd48845253c901
parentextract identification of use of sisu-0.66 markup tags (diff)
for now strip sisu-0.66 semantic markup tags
-rw-r--r--lib/sisu/v0/dal_syntax.rb6
1 files changed, 5 insertions, 1 deletions
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