From 2a6b0dc182991e61d84f65b4aacdec9a7f63933f Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Tue, 13 Oct 2015 23:19:12 +0000 Subject: web2c/luatexdir/tex/mlist.w: Sync with the upstream. git-svn-id: svn://tug.org/texlive/trunk@38633 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/ChangeLog | 4 ++++ Build/source/texk/web2c/luatexdir/tex/mlist.w | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 4998e8413a1..2273375d482 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,7 @@ +2015-10-13 Akira Kakuto + + * tex/mlist.w: Sync with the upstream. + 2015-10-09 Akira Kakuto * luatex.c: Sync with the upstream. diff --git a/Build/source/texk/web2c/luatexdir/tex/mlist.w b/Build/source/texk/web2c/luatexdir/tex/mlist.w index 7684dd0d171..be0cf552378 100644 --- a/Build/source/texk/web2c/luatexdir/tex/mlist.w +++ b/Build/source/texk/web2c/luatexdir/tex/mlist.w @@ -2128,12 +2128,20 @@ static void do_make_math_accent(pointer q, internal_font_number f, int c, if (sa == INT_MIN) { sa = half(width(y)); /* just take the center */ } - shift_amount(y) = s - sa; + if (math_direction == dir_TRT) { + shift_amount(y) = s + sa - width(y); + } else { + shift_amount(y) = s - sa; + } } else { if (width(y)== 0) { shift_amount(y) = s + w; } else { - shift_amount(y) = s + half(w - width(y)); + if (math_direction == dir_TRT) { + shift_amount(y) = s + width(y); + } else { + shift_amount(y) = s + half(w - width(y)); + } } } width(y) = 0; -- cgit v1.2.3