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