mirror of https://github.com/odrling/Aegisub
No longer process syllable zero in factorybrews.
Originally committed to SVN as r506.
This commit is contained in:
parent
086a918323
commit
d6a641b5c2
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue