From: Hironori Kitagawa Date: Sun, 19 Aug 2012 10:18:54 +0000 (+0900) Subject: Fix a bug introduced by commit 79c1a4f. X-Git-Tag: 20120904.0~1^2~5 X-Git-Url: http://git.osdn.net/view?p=luatex-ja%2Fluatexja.git;a=commitdiff_plain;h=119149642b9d090d76e2ce17a2bfecddaf05b572 Fix a bug introduced by commit 79c1a4f. --- diff --git a/src/ltj-jfont.lua b/src/ltj-jfont.lua index 9b791a6..59c8d5c 100644 --- a/src/ltj-jfont.lua +++ b/src/ltj-jfont.lua @@ -61,7 +61,12 @@ function define_jfm(t) elseif type(w) == 'string' and utf.len(w)==1 then real_char = true; w = utf.byte(w) elseif type(w) == 'string' and utf.len(w)==2 and utf.sub(w,2) == '*' then - real_char = true; w = -utf.byte(utf.sub(w,1,1)) + real_char = true; w = utf.byte(utf.sub(w,1,1)) + if not t.chars[-w] then + t.chars[-w] = i + else + defjfm_res= nil; return + end end if not t.chars[w] then t.chars[w] = i