OSDN Git Service

Fix a bug caused by commit 0526b27.
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 7 Nov 2014 10:27:03 +0000 (19:27 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Fri, 7 Nov 2014 10:27:03 +0000 (19:27 +0900)
src/ltj-jfmglue.lua

index b1d7b94..a4c0895 100644 (file)
@@ -112,7 +112,7 @@ do
    local stop_time_measure = ltjb.stop_time_measure
    slow_find_char_class = function (c, m, oc)
       local cls = ltjf_find_char_class(oc, m)
    local stop_time_measure = ltjb.stop_time_measure
    slow_find_char_class = function (c, m, oc)
       local cls = ltjf_find_char_class(oc, m)
-      if oc~=c and cls==0 then
+      if c and oc~=c and cls==0 then
         return ltjf_find_char_class(-c, m), oc
       else
         return cls, oc
         return ltjf_find_char_class(-c, m), oc
       else
         return cls, oc
@@ -320,7 +320,7 @@ local min, max = math.min, math.max
 local function calc_np_aux_glyph_common(lp)
    Np.nuc = lp
    Np.id = npi
 local function calc_np_aux_glyph_common(lp)
    Np.nuc = lp
    Np.id = npi
-   if ltjs_orig_char_table[lp] then
+   if getfield(lp, 'lang') == lang_ja then
       Np.id = id_jglyph
       set_np_xspc_jachar(Np, lp)
       local npi, npf
       Np.id = id_jglyph
       set_np_xspc_jachar(Np, lp)
       local npi, npf
@@ -345,7 +345,7 @@ local function calc_np_aux_glyph_common(lp)
            lp=lx; break
         else
            local lid = getid(lx)
            lp=lx; break
         else
            local lid = getid(lx)
-           if lid==id_glyph and not ltjs_orig_char_table[lx] then
+           if lid==id_glyph and getfield(lx, 'lang') ~= lang_ja then
               -- 欧文文字
               last_glyph = lx; set_attr(lx, attr_icflag, PROCESSED); Np.last = lx
               y_adjust = has_attr(lx,attr_ablshift) or 0
               -- 欧文文字
               last_glyph = lx; set_attr(lx, attr_icflag, PROCESSED); Np.last = lx
               y_adjust = has_attr(lx,attr_ablshift) or 0