Also accept SSA "Karaoke" effect field for timed karaoke source in kara-templater

Originally committed to SVN as r1465.
This commit is contained in:
Niels Martin Hansen 2007-08-03 01:46:33 +00:00
parent 400266c383
commit f556478902

View file

@ -321,7 +321,7 @@ function apply_templates(meta, styles, subs, templates)
aegisub.progress.set(i/n*100)
i = i + 1
local l = subs[i]
if l.class == "dialogue" and ((l.effect == "" and not l.comment) or (l.effect == "karaoke" and l.comment)) then
if l.class == "dialogue" and ((l.effect == "" and not l.comment) or l.effect:match("[Kk]araoke")) then
l.i = i
l.comment = false
karaskel.preproc_line(subs, meta, styles, l)