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
|
end
|
||||||
|
|
||||||
-- Don't bother with empty syllables
|
-- Don't bother with empty syllables
|
||||||
if syl.text == "" then
|
if syl.text == "" or syl.n == 0 then
|
||||||
return { n=0 }
|
return { n=0 }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ function do_syllable(meta, styles, config, line, syl)
|
||||||
local result = { n=0 }
|
local result = { n=0 }
|
||||||
|
|
||||||
-- Don't bother with empty syllables
|
-- Don't bother with empty syllables
|
||||||
if syl.text == "" then
|
if syl.text == "" or syl.n == 0 then
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,10 @@ function do_syllable(meta, styles, config, line, syl)
|
||||||
text = syl.text
|
text = syl.text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if syl.n == 0 then
|
||||||
|
return text
|
||||||
|
end
|
||||||
|
|
||||||
-- Add the variable names to the syllable data
|
-- Add the variable names to the syllable data
|
||||||
syl["dur"] = syl.duration
|
syl["dur"] = syl.duration
|
||||||
syl["start"] = syl.start_time
|
syl["start"] = syl.start_time
|
||||||
|
|
Loading…
Reference in New Issue