From fab2bde15ca24bb31b491665af6fb8e882f5737e Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Tue, 22 May 2007 22:03:17 +0000 Subject: [PATCH] Fix syllable spacing issue (regression, I think) Originally committed to SVN as r1196. --- automation/include/karaskel-auto4.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automation/include/karaskel-auto4.lua b/automation/include/karaskel-auto4.lua index 0f23b5f34..bb704cbae 100644 --- a/automation/include/karaskel-auto4.lua +++ b/automation/include/karaskel-auto4.lua @@ -235,6 +235,7 @@ function karaskel.preproc_line_text(meta, styles, line) worksyl.i = line.kara.n worksyl.text_stripped = prespace .. syltext .. postspace -- be sure to include the spaces so the original line can be built from text_stripped worksyl.inline_fx = cur_inline_fx + worksyl.text_spacestripped = syltext worksyl.prespace = prespace worksyl.postspace = postspace else @@ -273,7 +274,7 @@ function karaskel.preproc_line_size(meta, styles, line) for s = 0, line.kara.n do local syl = line.kara[s] syl.style = line.styleref - syl.width, syl.height = aegisub.text_extents(syl.style, syl.text_stripped) + syl.width, syl.height = aegisub.text_extents(syl.style, syl.text_spacestripped) syl.prespacewidth = aegisub.text_extents(syl.style, syl.prespace) syl.postspacewidth = aegisub.text_extents(syl.style, syl.postspace) end