No longer process syllable zero in factorybrews.

Originally committed to SVN as r506.
This commit is contained in:
Niels Martin Hansen 2006-07-19 20:43:19 +00:00
parent 086a918323
commit d6a641b5c2
3 changed files with 6 additions and 2 deletions

View File

@ -103,7 +103,7 @@ function do_syllable(meta, styles, config, line, syl)
end
-- Don't bother with empty syllables
if syl.text == "" then
if syl.text == "" or syl.n == 0 then
return { n=0 }
end

View File

@ -74,7 +74,7 @@ function do_syllable(meta, styles, config, line, syl)
local result = { n=0 }
-- Don't bother with empty syllables
if syl.text == "" then
if syl.text == "" or syl.n == 0 then
return result
end

View File

@ -97,6 +97,10 @@ function do_syllable(meta, styles, config, line, syl)
text = syl.text
end
if syl.n == 0 then
return text
end
-- Add the variable names to the syllable data
syl["dur"] = syl.duration
syl["start"] = syl.start_time