From d6a641b5c2ed0643a0b769ec14d43db6afff8bf3 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 19 Jul 2006 20:43:19 +0000 Subject: [PATCH] No longer process syllable zero in factorybrews. Originally committed to SVN as r506. --- automation/factorybrew/line-per-syllable.lua | 2 +- automation/factorybrew/multi-template.lua | 2 +- automation/factorybrew/simple-k-replacer.lua | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/automation/factorybrew/line-per-syllable.lua b/automation/factorybrew/line-per-syllable.lua index 1a29113b3..7cc704e63 100644 --- a/automation/factorybrew/line-per-syllable.lua +++ b/automation/factorybrew/line-per-syllable.lua @@ -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 diff --git a/automation/factorybrew/multi-template.lua b/automation/factorybrew/multi-template.lua index 4e889a7cf..678068c88 100644 --- a/automation/factorybrew/multi-template.lua +++ b/automation/factorybrew/multi-template.lua @@ -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 diff --git a/automation/factorybrew/simple-k-replacer.lua b/automation/factorybrew/simple-k-replacer.lua index 9e9909a6a..b62d13078 100644 --- a/automation/factorybrew/simple-k-replacer.lua +++ b/automation/factorybrew/simple-k-replacer.lua @@ -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