Tweak parsing of punctuation in lyrics

This commit is contained in:
Matthias Neeracher 2008-08-15 13:28:29 +00:00
parent 782b37d572
commit 0debd16015

View File

@ -187,7 +187,7 @@ def parseLilypond
INFILE.each do |line| INFILE.each do |line|
line.chomp!.sub!(/%.*/, "") line.chomp!.sub!(/%.*/, "")
line.gsub!(/\\breve/, "1*8/4") line.gsub!(/\\breve/, "1*8/4")
line.scan(%r$\G\s*(\{|\}|\(|\)|\||=|~|<<|>>|--|#'|#\(|##t|##f|\\\w+|\".*?\"|\w[-+^\w\d.',:*/]+|.)$) do |token| line.scan(%r$\G\s*(\{|\}|\(|\)|\||=|~|<<|>>|--|#'|#\(|##t|##f|\\\w+|\".*?\"|\w[-+^\w\d.',:*/?!]+|.)$) do |token|
tokens.push(token[0]) tokens.push(token[0])
end end
end end