ソースコードの管理場所
Révision | 60378cef325e483158392b0e6e5adc1b50d5bd91 (tree) |
---|---|
l'heure | 2014-11-07 19:27:03 |
Auteur | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
Fix a bug caused by commit 0526b27.
@@ -112,7 +112,7 @@ do | ||
112 | 112 | local stop_time_measure = ltjb.stop_time_measure |
113 | 113 | slow_find_char_class = function (c, m, oc) |
114 | 114 | local cls = ltjf_find_char_class(oc, m) |
115 | - if oc~=c and cls==0 then | |
115 | + if c and oc~=c and cls==0 then | |
116 | 116 | return ltjf_find_char_class(-c, m), oc |
117 | 117 | else |
118 | 118 | return cls, oc |
@@ -320,7 +320,7 @@ local min, max = math.min, math.max | ||
320 | 320 | local function calc_np_aux_glyph_common(lp) |
321 | 321 | Np.nuc = lp |
322 | 322 | Np.id = npi |
323 | - if ltjs_orig_char_table[lp] then | |
323 | + if getfield(lp, 'lang') == lang_ja then | |
324 | 324 | Np.id = id_jglyph |
325 | 325 | set_np_xspc_jachar(Np, lp) |
326 | 326 | local npi, npf |
@@ -345,7 +345,7 @@ local function calc_np_aux_glyph_common(lp) | ||
345 | 345 | lp=lx; break |
346 | 346 | else |
347 | 347 | local lid = getid(lx) |
348 | - if lid==id_glyph and not ltjs_orig_char_table[lx] then | |
348 | + if lid==id_glyph and getfield(lx, 'lang') ~= lang_ja then | |
349 | 349 | -- 欧文文字 |
350 | 350 | last_glyph = lx; set_attr(lx, attr_icflag, PROCESSED); Np.last = lx |
351 | 351 | y_adjust = has_attr(lx,attr_ablshift) or 0 |