Fix inline-fx parsing in karaskel and handling in kara-templater. (Fixes #577)

Originally committed to SVN as r1783.
This commit is contained in:
Niels Martin Hansen 2008-01-19 23:53:29 +00:00
parent d4a35fc03b
commit 15ce07e803
2 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ function parse_template(meta, styles, line, templates, mods)
addtext = true,
keeptags = false,
fxgroup = nil,
inline_fx = nil,
fx = nil,
multi = false,
isline = false,
perchar = false,
@ -634,7 +634,7 @@ function apply_one_syllable_template(syl, line, template, tenv, varctx, subs, sk
aegisub.debug.out(5, "Applying template to one syllable with text: %s\n", syl.text)
-- Check for right inline_fx
if t.inline_fx and t.inline_fx ~= syl.inline_fx then
if t.fx and t.fx ~= syl.inline_fx then
aegisub.debug.out(5, "Syllable has wrong inline-fx (wanted '%s', got '%s'), skipping.\n", t.inline_fx, syl.inline_fx)
return false
end

View file

@ -137,7 +137,7 @@ function karaskel.preproc_line_text(meta, styles, line)
local syl = kara[i]
-- Detect any inline-fx tags
local inline_fx = syl.text:match("%{.*\\%-([^}\\]-)")
local inline_fx = syl.text:match("%{.*\\%-([^}\\]+)")
if inline_fx then
cur_inline_fx = inline_fx
end