• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: Commit

ソースコードの管理場所


Commit MetaInfo

Revision240b0eca009d4a201829c6eecea520a52633e947 (tree)
Time2018-08-10 22:43:47
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

fix \ltjruby in non-yoko direction

Change Summary

Incremental Difference

--- a/src/ltj-jfmglue.lua
+++ b/src/ltj-jfmglue.lua
@@ -280,17 +280,17 @@ local function check_next_ickern(lp)
280280 end
281281
282282 local function calc_np_pbox(lp, last)
283- local first, lpa, nc = (not Np.first), KINSOKU, nil
283+ local first, lpa, nc = (not Np.first), get_attr_icflag(lp), nil
284284 Np.first = Np.first or lp; Np.id = id_pbox
285285 set_attr(lp, attr_icflag, get_attr_icflag(lp));
286286 while lp ~=last and (lpa>=PACKED) and (lpa<BOXBDD) do
287287 local lpi = getid(lp)
288- if lpi==id_hlist or lpi==id_vlist then
288+ if lpa==PACKED then
289+ if lpi==id_rule then lp = node_next(lp) end
290+ nc, lp = lp, node_next(lp)
291+ elseif lpi==id_hlist or lpi==id_vlist then
289292 head, lp, nc = ltjd_make_dir_whatsit(head, lp, list_dir, 'jfm pbox')
290293 Np.first = first and nc or Np.first
291- elseif (lpi==id_rule) and (lpa==PACKED) then
292- lp = node_next(lp)
293- nc, lp = lp, node_next(lp)
294294 else
295295 nc, lp = lp, node_next(lp)
296296 end
--- a/src/ltj-ruby.lua
+++ b/src/ltj-ruby.lua
@@ -252,6 +252,7 @@ local function texiface_low(rst, rtlr, rtlp)
252252 setfield(w, 'value', to_node(wv))
253253 setfield(wv, 'type', 100)
254254 setfield(wv, 'value', floor(#rtlr))
255+ setfield(wv, 'user_id', RUBY_PRE) -- dummy
255256 set_attr(wv, attr_ruby, rst.rubyzw)
256257 set_attr(wv, attr_ruby_maxmargin, rst.maxmargin)
257258 set_attr(wv, attr_ruby_maxprep, rst.pre)
Show on old repository browser