texlive[58545] branches/branch2020.0/Master/texmf-dist: luatexja

commits+karl at tug.org commits+karl at tug.org
Fri Mar 19 22:30:23 CET 2021


Revision: 58545
          http://tug.org/svn/texlive?view=revision&revision=58545
Author:   karl
Date:     2021-03-19 22:30:23 +0100 (Fri, 19 Mar 2021)
Log Message:
-----------
luatexja (19mar21) (branch)

Modified Paths:
--------------
    branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/README
    branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf
    branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf
    branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-kinsoku.tex
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-latex.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-plain.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-ruby.lua
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.lua
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-atbegshi.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-footmisc.sty
    branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-stfloats.sty

Modified: branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/README
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/README	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/README	2021-03-19 21:30:23 UTC (rev 58545)
@@ -1,4 +1,4 @@
-The LuaTeX-ja Package 20210214.0
+The LuaTeX-ja Package 20210319.0
 --------------------------------
 Copyright (c) 2011--2021 The LuaTeX-ja project
 License: modified BSD (see COPYING)
@@ -26,8 +26,6 @@
     - luaotfload (v3.1 or later recommended)
     - adobemapping (Adobe CMap files)
     - LaTeX2e 2020-02-02 patch level 5 or later (if you want to use with LaTeX)
-      Note that the adaptation for LaTeX2e 2021-05-01 is 
-      work in progress; it will be done after the freeze of TL'20
     - etoolbox package
     - ltxcmds package, pdftexcmds package
     - filehook package, atbegshi package (for LaTeX2e 2020-02-02)
@@ -39,14 +37,14 @@
    One might be able to typeset documents without an error, but with
    some unwanted results.
 
-1. If you are using TeX Live 2020, you can install LuaTeX-ja via tlmgr.
+1. If you are using TeX Live 2021, you can install LuaTeX-ja via tlmgr.
 
 2. If you must/want to install manually:
 
    a. Download the source archive from CTAN,
-      or tagged as 20210214.0 in the Git repository by
+      or tagged as 20210319.0 in the Git repository by
       <http://git.osdn.jp/view?p=luatex-ja/luatexja.git
-                              ;a=snapshot;h=refs/tags/20210214.0;sf=tgz>
+                              ;a=snapshot;h=refs/tags/20210319.0;sf=tgz>
 
    b. Extract the archive and process following three files by LuaLaTeX
       to generate classes for Japanese typesetting:
@@ -91,8 +89,8 @@
 
 * src/*.{ins.dtx} are not needed in regular use.
 
-* ltj-kinsoku_make.tex is removed in version 20200808.0. 
+* ltj-kinsoku_make.tex is removed in version 20200808.0.
   This file and ltj-kinsoku.lua are not used anymore.
   (Do not remove ltj-kinsoku.tex.)
 
-Last commit date: Sun Feb 14 10:04:35 2021 +0900
+Last commit date: Fri Mar 19 19:52:23 2021 +0900

Modified: branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx	2021-03-19 21:30:23 UTC (rev 58545)
@@ -25,10 +25,11 @@
 \setmonofont[RawFeature=-notdef, Ligatures=CommonOff, %CharacterVariant={31,45,61,36},
 %<en>  Scale=0.8132073118633364, FakeStretch=1.183236,
 %<ja>  Scale=MatchLowercase, FakeStretch=1.137121,
-  Contextuals=AlternateOff,
-  ItalicFont=Iosevka Term Slab Oblique,
-  BoldFont=Iosevka Term Slab Bold, BoldItalicFont=Iosevka Term Slab Bold Oblique,
-]{Iosevka Term Slab}
+  Contextuals=AlternateOff, Kerning=Off,
+  Ligatures={CommonOff,RequiredOff,ContextualOff,RareOff,HistoricOff,TeXOff},
+  ItalicFont=Iosevka Slab Oblique,
+  BoldFont=Iosevka Slab Bold, BoldItalicFont=Iosevka Slab Bold Oblique,
+]{Iosevka Slab}
 \setsansfont[Scale=MatchLowercase,Ligatures=TeX,RawFeature=-notdef]{Linux Biolinum O}
 \usepackage[match]{luatexja-fontspec}
 \usepackage[haranoaji]{luatexja-preset}
@@ -225,7 +226,7 @@
 }
 
 \catcode`\<=13
-\def<#1>{{\normalfont\rm\itshape$\langle$#1\/$\rangle$}}
+\def<#1>{{\normalfont\rmfamily\itshape$\langle$#1\/$\rangle$}}
 \let\LARG=<
 \maketitle
 
@@ -5667,7 +5668,7 @@
 \item[\DParam{jacharrange}\,=<ranges>]
 \item[\DParam{kansujichar}\,=\{<digit>, <chr\_code>\}$^\ast$] [\cs{kansujichar}]
 
-\item[\DParam{direction}\,=<dir>\ \hbox{\rm (always local)}]\
+\item[\DParam{direction}\,=<dir>\ \hbox{\normalfont\rmfamily (always local)}]\
 
 %<*en>
 Assigning to this parameter has the same effect as
@@ -10458,7 +10459,7 @@
 \item \textit{Np}の中身の文字コードについて,「直前への\Param{xkanjiskip}の挿入」が禁止されている
 (つまり,\Param{jaxspmode}~(or \Param{alxspmode})パラメータが偶数).
 \end{itemize}
-\item ユーザ側から見た\Param{xkanjiskip}パラメータの自然長が$\cs{maxdimen}=(2^{30}-1)\,{\rm sp}$で
+\item ユーザ側から見た\Param{xkanjiskip}パラメータの自然長が$\cs{maxdimen}=(2^{30}-1)\,\textrm{sp}$で
 なければ,\Param{xkanjiskip}パラメータの値を持つglueを採用する.
 \item 2.でない場合は,\textit{Nq}, \textit{Np}(\textsf{和文A}/\textsf{和文B}なのは片方だけ)
 で使われているJFMに指定されている\Param{xkanjiskip}の値を用いる.

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -13,7 +13,7 @@
 
 \ifltj at in@latex                 %<*LaTeX>
   \NeedsTeXFormat{LaTeX2e}
-  \ProvidesPackage{ltj-base}[2020-08-04]
+  \ProvidesPackage{ltj-base}[2021-03-16]
 \fi                             %</LaTeX>
 
 %%------------------ Tiny helpers
@@ -40,17 +40,7 @@
 %% \ltj at q@mark
 \protected\def\ltj at q@mark{\ltj at q@mark@}
 
-%! etoolbox の \letcs, \cslet, \csletcs.
-%% \ltj at letcs
-\protected\def\ltj at letcs#1#2{
-  \expandafter\let\expandafter#1\csname#2\endcsname
-}
-
-%% \ltj at cslet
-\protected\def\ltj at cslet#1#2{
-  \expandafter\let\csname#1\endcsname#2
-}
-
+%! etoolbox の \csletcs.
 %% \ltj at csletcs
 \protected\def\ltj at csletcs#1#2{
   \expandafter\let\csname#1\expandafter\endcsname
@@ -66,12 +56,6 @@
   \else\expandafter\ltx at secondoftwo\fi
 }
 
-%% \ltj at if@empty{<stuff>}{<yes>}{<no>}
-%! <stuff> が空であるか.
-% Checks if <stuff> is empty.
-\long\def\ltj at if@empty#1{
-  \ltj at ifx{\ltj@@q at empty#1\ltj@@q at empty}
-}
 \protected\def\ltj@@q at empty{\ltj@@q at empty@}
 
 %% \ltj at if@blank{<stuff>}{<yes>}{<no>}
@@ -96,10 +80,6 @@
 %! plain であるか.
 \ltj at csletcs{ifltj at in@plain}{iffalse}
 
-%% \ltj at print{<message>}
-%! 端末への出力.
-\let\ltj at print\typeout
-
 \else                           %<*!LaTeX>
 
 %% \ifltj at in@plain
@@ -109,11 +89,6 @@
   \ltj at csletcs{ifltj at in@plain}{iffalse}
 \fi
 
-%% \ltj at print{<message>}
-\def\ltj at print#1{
-  \immediate\write16{#1}
-}
-
 \fi                             %</LaTeX>
 %%------------------ Value-token handling
 
@@ -201,28 +176,6 @@
   }
 }
 
-%% \ltj at safe@real{<real>}
-%! 実数. これは十進表記に限る.
-% For a real number given in decimal notation or a macro that
-% expands to such notation.
-\def\ltj at safe@real#1{
-  (tonumber("\luatexluaescapestring{#1}"))
-}
-
-%% \ltj at val@counter{<counter>}
-%! LaTeX カウンタの現在値.
-% For the current value of a LaTeX counter.
-\def\ltj at val@counter#1{
-  (\expandafter\number\csname c@#1\endcsname)
-}
-
-%% \ltj at val@skip{<skip>}
-% For the current value of a skip (or LaTeX-length) parameter.
-%! グルーレジスタ(LaTeX 長さ変数).
-%! 整形式のグルー値にも使える.
-\def\ltj at val@skip#1{
-  (luatexja.base.to_skip("\the\glueexpr#1\relax"))
-}
 %! 整形式の整数 → 数値 : \number#1
 %! 内部寸法 → 数値 : \number#1
 %! 整形式の寸法 → 数値 : \number\dimexpr#1\relax
@@ -234,17 +187,6 @@
   "\luatexluaescapestring{\detokenize{#1}}"
 }
 
-%% \ltj at luaescape{<text>}
-%! 非トークン化して Lua エスケープ.
-\def\ltj at luaescape#1{
-  \luatexluaescapestring{\detokenize{#1}}
-}
-%% \ltj at luaxescape{<text>}
-%! 非トークン化せずに(展開ありで) Lua エスケープ.
-%! つまり単なる \luatexescape.
-\let\ltj at luaxescape\luatexluaescapestring
-
-
 %%------------------ debug logging
 \ifdefined\LuaTeXjaDebugEnabled
 
@@ -284,30 +226,15 @@
 
 %% \ltj at afterbox <token><box>
 %% -> \setbox\ltj at afbox<box><token>
-%% from Sonja Maus, ``Looking Ahead for a <box>'',
-%%      TUGBoat, 11, No. 4, 1990.
+%% idea from the atbegshi package
 \newbox\ltj at afbox
 \directlua{luatexja.afbox_number=\the\ltj at afbox}
 \protected\def\ltj at afterbox#1{%
-  \def\ltj at afb@xarg{#1}%
-  \afterassignment\ltj at afb@x
-  \chardef\ltj@@next`.}
-\def\ltj at afb@x{\futurelet\ltj@@next\ltj at afb@xtest}
-\def\ltj at afb@xtest{%
-  \ifcase\ifx\ltj@@next\hbox\tw@\fi
-         \ifx\ltj@@next\vbox\tw@\fi
-         \ifx\ltj@@next\vtop\tw@\fi
-         \ifx\ltj@@next\box\@ne\fi
-         \ifx\ltj@@next\copy\@ne\fi
-         \ifx\ltj@@next\vsplit\@ne\fi
-         \ifx\ltj@@next\lastbox\@ne\fi
-         0% ``A <box> was ...'' error will be causes by \setbox later anyway.
-  \or\afterassignment\ltj at afb@xarg
-  \or\afterassignment\ltj at afb@xagarg
-  \fi
-  \setbox\ltj at afbox
+  \def\ltj at afbox@@arg{#1}\edef\ltj at afbox@@grouplevel{\number\currentgrouplevel}%
+  \afterassignment\ltj at afbox@@\setbox\ltj at afbox}
+\def\ltj at afbox@@{%
+  \ifnum\ltj at afbox@@grouplevel<\currentgrouplevel\expandafter\aftergroup\fi\ltj at afbox@@arg
 }
-\def\ltj at afb@xagarg{\aftergroup\ltj at afb@xarg}
 
 
 %%------------------ all done

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua	2021-03-19 21:30:23 UTC (rev 58545)
@@ -1113,13 +1113,10 @@
          end
       end
    end
-   local getbox, shipout = tex.getbox, tex.shipout
-   local setbox, copy = node.direct.setbox, node.direct.copy
-   local afbox
-   function luatexja.direction.shipout()
+   local copy = node.direct.copy
+   function luatexja.direction.shipout_lthook (head)
       start_time_measure 'box_primitive_hook'
-      if (not afbox) and luatexja.afbox_number  then afbox = luatexja.afbox_number end
-      local a = to_direct(getbox 'ltj at afbox')
+      local a = to_direct(head)
       local a_dir = get_box_dir(a, dir_yoko)
       if a_dir~=dir_yoko then
          local b = create_dir_node(a, a_dir, dir_yoko, false)
@@ -1126,8 +1123,8 @@
          setfield(b, 'head', a); a = b
       end
       setfield(shipout_temp, 'head', a); finalize_inner(shipout_temp)
-      setbox(afbox, copy(getlist(shipout_temp))); setfield(shipout_temp, 'head',nil)
-      shipout(afbox)
+      a = copy(getlist(shipout_temp)); setfield(shipout_temp, 'head',nil)
       stop_time_measure 'box_primitive_hook'
+      return to_node(a)
    end
 end

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-kinsoku.tex
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-kinsoku.tex	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-kinsoku.tex	2021-03-19 21:30:23 UTC (rev 58545)
@@ -226,6 +226,7 @@
 \ltjsetparameter{alxspmode={`],postonly}}
 \ltjsetparameter{alxspmode={``,preonly}}
 \ltjsetparameter{alxspmode={`',postonly}}
+\ltjsetparameter{alxspmode={`:,postonly}}
 \ltjsetparameter{alxspmode={`;,postonly}}
 \ltjsetparameter{alxspmode={44,postonly}}
 \ltjsetparameter{alxspmode={`.,postonly}}
@@ -364,6 +365,7 @@
 \ltjsetparameter{jaxspmode={`。,postonly}}
 \ltjsetparameter{jaxspmode={`,,postonly}}
 \ltjsetparameter{jaxspmode={`.,postonly}}
+\ltjsetparameter{jaxspmode={`:,postonly}}
 \ltjsetparameter{jaxspmode={`;,postonly}}
 \ltjsetparameter{jaxspmode={`?,postonly}}
 \ltjsetparameter{jaxspmode={`!,postonly}}
@@ -465,5 +467,5 @@
 
 \directlua{%
  local s = table.copy(luatexja.stack.charprop_stack_table[0])
- luatexja.base.save_cache('ltj-kinsoku_default', {s, version=2})
+ luatexja.base.save_cache('ltj-kinsoku_default', {s, version=3})
 }

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-latex.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-latex.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-latex.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -12,19 +12,11 @@
 \def\luatexjalatexLoaded{\endinput}
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltj-latex}[2020-12-29 LaTeX support of LuaTeX-ja]
+\ProvidesPackage{ltj-latex}[2021-03-18 LaTeX support of LuaTeX-ja]
 
-% cleanup at end of the document
-%\let\ltj@@orig at end=\@@end
-%\protected\def\@@end{%
-%  \directlua{luatexja.ext_cleanup()}\ltj@@orig at end}
-
 \endlinechar=13
 
 %%% LaTeX version detection
-\ifcsname tex_shipout:D\endcsname
-  \expandafter\let\csname tex_shipout:D\endcsname\ltj at shipout
-\fi
 \newif\ifltj at ltfilehook@avail
 \@ifl at t@r\fmtversion{2020-10-01}{%
   \@ifl at t@r\fmtversion{2020-10-02}%
@@ -34,6 +26,32 @@
       \else\ltj at ltfilehook@availtrue\fi
     }%
 }{}
+\@ifl at t@r\fmtversion{2021-05-01}{\count@=1 }{\count@=0 }
+\ifnum \count@<1
+%%%% \shipout
+  \newluafunction\ltj@@lua at shipout@inner
+  \directlua{
+    local t = lua.get_functions_table()
+    local getbox, setbox = tex.getbox, tex.setbox
+    local shipout_lthook = luatexja.direction.shipout_lthook
+    t[\the\ltj@@lua at shipout@inner]=function ()
+      local a = shipout_lthook(getbox(\the\ltj at afbox))
+      if a then setbox(\the\ltj at afbox, a) end
+    end
+  }
+  \protected\luadef\ltj@@lua at shipout\ltj@@lua at shipout@inner
+  \def\ltj at shipout@{\ltj@@lua at shipout\primitive\shipout\box\ltj at afbox}%
+  \protected\def\ltj at shipout{\ltj at afterbox\ltj at shipout@}
+  \ifprimitive\shipout\let\shipout\ltj at shipout\fi
+  \ifcsname tex_shipout:D\endcsname
+    \expandafter\let\csname tex_shipout:D\endcsname\ltj at shipout
+  \fi
+  \directlua{luatexja.direction.shipout_lthook = nil}
+\else
+  \directlua{%
+    luatexbase.add_to_callback('pre_shipout_filter',luatexja.direction.shipout_lthook, 'ltj.direction', 1)
+  }
+\fi
 
 %%% patch for LaTeX
 \usepackage{lltjfont}

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-plain.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-plain.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-plain.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -23,10 +23,25 @@
 %! ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
 % LuaTeX-ja macros against plain TeX
 
+%%%%\shipout
+\newluafunction\ltj@@lua at shipout@inner
+\directlua{
+  local t = lua.get_functions_table()
+  local getbox, setbox = tex.getbox, tex.setbox
+  local shipout_lthook = luatexja.direction.shipout_lthook
+  t[\the\ltj@@lua at shipout@inner]=function ()
+    local a = shipout_lthook(getbox(\the\ltj at afbox))
+  if a then setbox(\the\ltj at afbox, a) end
+  end
+}
+\protected\luadef\ltj@@lua at shipout\ltj@@lua at shipout@inner
+\def\ltj at shipout@{\ltj@@lua at shipout\primitive\shipout\box\ltj at afbox}%
+\protected\def\ltj at shipout{\ltj at afterbox\ltj at shipout@}
+\ifprimitive\shipout\let\shipout\ltj at shipout\fi
+\directlua{luatexja.direction.shipout_lthook = nil}
+
 \ifdefined\ltj at stdmcfont\else\def\ltj at stdmcfont{file:HaranoAjiMincho-Regular.otf}\fi
 \ifdefined\ltj at stdgtfont\else\def\ltj at stdgtfont{file:HaranoAjiGothic-Medium.otf}\fi
-%\ifdefined\ltj at stdmcfont\else\def\ltj at stdmcfont{IPAExMincho}\fi
-%\ifdefined\ltj at stdgtfont\else\def\ltj at stdgtfont{IPAExGothic}\fi
 \ifdefined\ltj at stdyokojfm\else\def\ltj at stdyokojfm{ujis}\fi
 \ifdefined\ltj at stdtatejfm\else\def\ltj at stdtatejfm{ujisv}\fi
 \newread\ltj@@cfgread
@@ -96,9 +111,6 @@
 \ltjsetparameter{jacharrange={-1, +2, +3, -4, -5, +6, +7, -8, +9}}
 
 \directlua{for x=128,255 do luatexja.math.is_math_letters[x] = true end}
-\let\ltj@@orig at end=\@@end
-\protected\def\@@end{%
-  \directlua{luatexja.ext_cleanup()}\ltj@@orig at end}
 
 \directlua{luatexja.jfont.register_vert_replace{
   [',']='、', ['.']='。', ['“']=0x301D, ['”']=0x301F,

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-ruby.lua
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-ruby.lua	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/ltj-ruby.lua	2021-03-19 21:30:23 UTC (rev 58545)
@@ -312,7 +312,7 @@
    local intmode = floor(tmp_tbl.mode/4)%4
    if no_begin then mapre  = mapre + tmp_tbl.before_jfmgk end
    if no_end   then mapost = mapost + tmp_tbl.after_jfmgk end
-   if (tmp_tbl.mode%4 >=2) and (tmp.pre<0) and (tmp.post<0) then
+   if (tmp_tbl.mode%4 >=2) and (tmp_tbl.pre<0) and (tmp_tbl.post<0) then
        mapre = min(mapre,mapost); mapost = mapre
    end
    if intmode == 0 then --  とりあえず組んでから決める

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -65,7 +65,7 @@
   \expandafter\let\csname ifltj at in@latex\expandafter\endcsname
     \csname iftrue\endcsname
   \NeedsTeXFormat{LaTeX2e}
-  \ProvidesPackage{luatexja-core}[2021-01-02 Core of LuaTeX-ja]
+  \ProvidesPackage{luatexja-core}[2021-03-16 Core of LuaTeX-ja]
 \fi                             %</LaTeX>
 
 %% Load prerequisite packages.
@@ -701,16 +701,6 @@
   \ltj@@lua at raisebox\ltj@@orig at vcenter{\box\ltj at afbox}%
 }
 
-%%%% \shipout
-\newluafunction\ltj@@lua at shipout@inner
-\directlua{
-  local t = lua.get_functions_table()
-  t[\the\ltj@@lua at shipout@inner]=luatexja.direction.shipout
-}
-\protected\luadef\ltj@@lua at shipout\ltj@@lua at shipout@inner
-\protected\def\ltj at shipout{\ltj at afterbox\ltj@@lua at shipout}
-\ifprimitive\shipout\let\shipout\ltj at shipout\fi
-
 %%%% \unhbox and \unvbox
 \newluafunction\ltj@@lua at unboxcheckdir@inner
 \directlua{

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.lua
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.lua	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.lua	2021-03-19 21:30:23 UTC (rev 58545)
@@ -332,11 +332,6 @@
    ltjb.add_to_callback('hpack_filter', adjust_icflag, 'ltj.adjust_icflag', 1)
 end
 
--- cleanup process
-function luatexja.ext_cleanup()
-   ltjf.cleanup_size_cache(); ltjd.remove_end_whatsit()
-end
-
 -- lastnodechar
 do
    local id_glyph = node.id('glyph')
@@ -356,7 +351,7 @@
 end
 
 do
-    local cache_ver = 2 -- must be same as ltj-kinsoku.tex
+    local cache_ver = 3 -- must be same as ltj-kinsoku.tex
     local cache_outdate_fn = function (t) return t.version~=cache_ver end
     local t = ltjs.charprop_stack_table
     function luatexja.load_kinsoku()

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -35,13 +35,13 @@
   \expandafter\let\csname ifltj at in@latex\expandafter\endcsname
     \csname iftrue\endcsname
   \NeedsTeXFormat{LaTeX2e}
-  \ProvidesPackage{luatexja}[2021-02-14 Japanese Typesetting with Lua(La)TeX]
+  \ProvidesPackage{luatexja}[2021-03-19 Japanese Typesetting with Lua(La)TeX]
   \DeclareOption{disablejfam}{\ltj at disablejfamtrue}
   \DeclareOption*{}
   \ProcessOptions\relax
 \fi                             %</LaTeX>
 %%%% VERSION
-\def\LuaTeXjaversion{20210214.0}
+\def\LuaTeXjaversion{20210319.0}
 
 \directlua{require('ltj-unicode-ccfix.lua')}% catcode of ideographs
 

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjcore}[2020-09-28 Patch to LaTeX2e Kernel for LuaTeX-ja]
+\ProvidesPackage{lltjcore}[2021-03-19 Patch to LaTeX2e Kernel for LuaTeX-ja]
 \RequirePackage{etoolbox}
 
 %%% expl3
@@ -72,7 +72,10 @@
   \fi\fi}
 
 \patchcmd\@vtryfc{\global\setbox\@outputbox\vbox{}}
-  {\global\setbox\@outputbox\vbox{\unless\ifnum\ltjgetparameter{direction}=4\hskip\z@\fi}}{}{}
+  {\global\setbox\@outputbox\vbox{%
+     \unless\ifnum\ltjgetparameter{direction}=4
+       \primitive\everypar{}\hskip\z@\fi
+  }}{}{}
 
 \newif\iftombow \tombowfalse
 \newif\iftombowdate \tombowdatetrue
@@ -86,7 +89,7 @@
 \newbox\@BR\newbox\@Br
 \newbox\@CL
 \newbox\@CR
-\font\@bannerfont=cmtt9
+\font\@bannerfont=file:lmmono9-regular.otf % cmtt9 in pLaTeX
 \newtoks\@bannertoken
 \@bannertoken{}
 \def\maketombowbox{%
@@ -134,7 +137,7 @@
 }
 \def\@outputtombow{%
   \iftombow
-  \vbox to\z@{\kern-\dimexpr 10mm+\@tombowbleed\relax
+  \vbox to\z@{\kern\dimexpr-10mm-\@tombowbleed\relax
     \boxmaxdepth\maxdimen
       \moveleft\@tombowbleed\vbox to\@@paperheight{%
 	  \color at begingroup
@@ -141,16 +144,16 @@
 	  \@tombowcolor
       \hbox to\@@paperwidth{\hskip\@tombowbleed\relax
          \copy\@TL\hfill\copy\@TC\hfill\copy\@TR\hskip\@tombowbleed}%
-      \kern-10mm
+      \kern-10mm%
       \hbox to\@@paperwidth{\copy\@Tl\hfill\copy\@Tr}%
       \vfill
       \hbox to\@@paperwidth{\copy\@CL\hfill\copy\@CR}%
       \vfill
       \hbox to\@@paperwidth{\copy\@Bl\hfill\copy\@Br}%
-      \kern-10mm
+      \kern-10mm%
       \hbox to\@@paperwidth{\hskip\@tombowbleed\relax
          \copy\@BL\hfill\copy\@BC\hfill\copy\@BR\hskip\@tombowbleed}%
-	\color at endgroup
+      \color at endgroup
     }\vss
   }%
   \fi
@@ -158,81 +161,46 @@
 \def\@tombowcolor{\normalcolor}
 \def\@tombowbleed{3mm}
 \def\@tombowreset@@paper{%
-     \@@topmargin\topmargin
-     \iftombow
-       \@@paperwidth\paperwidth
-	   \advance\@@paperwidth 2\dimexpr\@tombowbleed\relax
-       \@@paperheight\paperheight\advance\@@paperheight 10mm\relax
-	   \advance\@@paperheight 2\dimexpr\@tombowbleed\relax
-       \advance\@@topmargin 1in\relax \advance\@themargin 1in\relax
-     \fi
+   \@@topmargin \topmargin % only for compatibility
+   \iftombow
+     \@@paperwidth\dimexpr\paperwidth+2\dimexpr\@tombowbleed\relax
+     \@@paperheight\dimexpr\paperheight+10mm+2\dimexpr\@tombowbleed\relax
+     \advance\@@topmargin 1in\relax \advance\@themargin 1in\relax
+   \fi
 }
 \newdimen\@@paperheight
 \newdimen\@@paperwidth
-\newdimen\@@topmargin
-\def\@outputpage{%
-\begingroup % the \endgroup is put in by \aftergroup
+\newdimen\@@topmargin % not used by LuaTeX-ja; only to avoid existing codes
+\patchcmd\@outputpage{\begingroup\let\protect\noexpand}{% tate direction
+\begingroup
   \ifnum\ltjgetparameter{direction}=4\else
     \dimen\z@\textwidth \textwidth\textheight \textheight\dimen\z@
   \fi
   \let \protect \noexpand
-  \language\document at default@language %LaTeX2e 2017/05/01
-  \@resetactivechars
-  \global\let\@@if at newlist\if at newlist
-  \global\@newlistfalse
-  \@parboxrestore
-  \shipout\vbox{\yoko
+}{}{}
+\patchcmd\@outputpage{% supply \yoko
     \set at typeset@protect
-    \aftergroup\endgroup
-    \aftergroup\set at typeset@protect
-     \if at specialpage
-       \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
-     \fi
-     \if at twoside
-       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
-          \ifnum\ltjgetparameter{direction}=3 \let\@themargin\evensidemargin
-          \else\let\@themargin\oddsidemargin\fi
-       \else \let\@thehead\@evenhead
-          \let\@thefoot\@evenfoot
-           \ifnum\ltjgetparameter{direction}=3 \let\@themargin\oddsidemargin
-           \else\let\@themargin\evensidemargin\fi
-     \fi\fi
-     \@tombowreset@@paper
-     \reset at font
-     \normalsize
-     \normalsfcodes
-     \let\label\@gobble
-     \let\index\@gobble
-     \let\glossary\@gobble
-     \baselineskip\z at skip \lineskip\z at skip \lineskiplimit\z@
-    \@begindvi
-    \@outputtombow
-    \vskip \@@topmargin
-    \moveright\@themargin\vbox{%
-      \setbox\@tempboxa \vbox to\headheight{%
-        \vfil
-        \color at hbox
-          \normalcolor
-          \hb at xt@\textwidth{\@thehead}%
-        \color at endbox
-      }%                        %% 22 Feb 87
-      \dp\@tempboxa \z@
-      \box\@tempboxa
-      \vskip \headsep
-      \box\@outputbox
-      \baselineskip \footskip
-      \color at hbox
-        \normalcolor
-        \hb at xt@\textwidth{\@thefoot}%
-      \color at endbox
-    }%
-  }%
-  \global\let\if at newlist\@@if at newlist
-  \global \@colht \textheight
-  \stepcounter{page}%
-  \let\firstmark\botmark
-}
+    \aftergroup \endgroup
+}{%
+    \yoko \set at typeset@protect
+    \aftergroup \endgroup
+}{}{}
+\patchcmd\@outputpage{\let\@thefoot\@oddfoot\let\@themargin\oddsidemargin}{% tate direction
+  \let\@thefoot\@oddfoot
+  \ifnum\ltjgetparameter{direction}=3 \let\@themargin\evensidemargin
+  \else\let\@themargin\oddsidemargin\fi
+}{}{}
+\patchcmd\@outputpage{\let\@thefoot\@evenfoot\let\@themargin\evensidemargin}{% tate direction
+  \let\@thefoot\@evenfoot
+  \ifnum\ltjgetparameter{direction}=3 \let\@themargin\oddsidemargin
+  \else\let\@themargin\evensidemargin\fi
+}{}{}
 
+% 将来は shipout hook で書き直したい
+\patchcmd\@outputpage{\vskip\topmargin}{\vskip\topmargin\iftombow\vskip1in\fi}{}{}
+\patchcmd\@outputpage{\reset at font}{\@tombowreset@@paper\reset at font}{}{}
+\patchcmd\@outputpage{\@begindvi}{\@begindvi\@outputtombow}{}{}
+
 %%% Remove extra xkanjiskip
 \renewcommand\@makefnmark{%
   \unless\ifnum\ltjgetparameter{direction}=3
@@ -327,7 +295,9 @@
        \@texttop
        \dimen@ \dp\@outputbox
        \unvbox \@outputbox
-       \unless\ifnum\ltjgetparameter{direction}=4\vbox{\hskip\z@}\fi %%% LuaTeX-ja
+       \unless\ifnum\ltjgetparameter{direction}=4
+         \vbox{\primitive\everypar{}\hskip\z@}%
+       \fi %%% LuaTeX-ja
        \vskip -\dimen@
        \ifltj at ftn@unvboxed\iffnfixbottom\else\@textbottom\fi\else\@textbottom\fi
        }%

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -279,6 +279,19 @@
                            \def\default at k@series{#3}%
                            \def\default at k@shape{#4}}%
   \fi}
+\@onlypreamble\DeclareKanjiSubstitution
+
+\def\DeclareErrorKanjiFont#1#2#3#4#5{%
+   \xdef\error at kfontshape{%
+      \noexpand\expandafter\noexpand\split at name\noexpand\string
+      \expandafter\noexpand\csname#1/#2/#3/#4/#5\endcsname
+      \noexpand\@nil}%
+   \gdef\default at k@family{#2}%
+   \gdef\default at k@series{#3}%
+   \gdef\default at k@shape{#4}%
+   }
+\@onlypreamble\DeclareErrorKanjiFont
+
 \let\wrong at ja@fontshape\wrong at fontshape
 \let\wrong at al@fontshape\wrong at fontshape
 \patchcmd\wrong at ja@fontshape{\default at shape}{\default at k@shape}{}{}
@@ -291,17 +304,6 @@
     \wrong at al@fontshape
   \fi
 }
-\@onlypreamble\DeclareKanjiSubstitution
-\def\DeclareErrorKanjiFont#1#2#3#4#5{%
-   \xdef\error at kfontshape{%
-      \noexpand\expandafter\noexpand\split at name\noexpand\string
-      \expandafter\noexpand\csname#1/#2/#3/#4/#5\endcsname
-      \noexpand\@nil}%
-   \gdef\default at k@family{#2}%
-   \gdef\default at k@series{#3}%
-   \gdef\default at k@shape{#4}%
-   }
-\@onlypreamble\DeclareErrorKanjiFont
 
 \newif\ifltjselectfont at force@define
 \def\DeclareFixedFont#1#2#3#4#5#6{%
@@ -310,16 +312,16 @@
       \every at math@size{}%
       \fontsize{#6}\z@
       \ltj@@is at kyenc{#2}\ifin@%
-            \ltjselectfont at force@definetrue
+        \ltjselectfont at force@definetrue
         \usekanji{#2}{#3}{#4}{#5}%
         \global\let#1\getjfont
-            \ltjselectfont at force@definefalse
+        \ltjselectfont at force@definefalse
       \else
         \ltj@@is at ktenc{#2}\ifin@%
-              \ltjselectfont at force@definetrue
+          \ltjselectfont at force@definetrue
           \usekanji{#2}{#3}{#4}{#5}%
           \global\let#1\gettfont
-              \ltjselectfont at force@definefalse
+          \ltjselectfont at force@definefalse
         \else
           \useroman{#2}{#3}{#4}{#5}%
           \global\expandafter\let\expandafter#1\the\font
@@ -639,7 +641,7 @@
     \fi
 }
 \DeclareRobustCommand\fontencoding[1]{%
-  \ltj@@is at kyenc{#1}\ifin@\kanjiencoding{#1}\else\romanencoding{#1}\fi}
+  \ltj@@is at kenc{#1}\ifin@\kanjiencoding{#1}\else\romanencoding{#1}\fi}
 \def\@@kenc at update{%
   \default at KT
   \csname T@\k at encoding\endcsname
@@ -892,21 +894,13 @@
 \ifnum\ltj@@latex at plv=300 % 2020-02-02 pl3, 4
   \DeclareRobustCommand\romanseries[1]{\merge at font@series{#1}}
   \DeclareRobustCommand\kanjiseries[1]{\merge at kanji@series{#1}}
-  \DeclareRobustCommand\fontseries[1]{%
-     \merge at font@series{#1}\merge at kanji@series{#1}}
   \DeclareRobustCommand\romanseriesforce[1]{\edef\f at series{#1}}
   \DeclareRobustCommand\kanjiseriesforce[1]{\edef\k at series{#1}}
-  \DeclareRobustCommand\fontseriesforce[1]{%
-     \edef\f at series{#1}\edef\k at series{#1}}
 \else\ifnum\ltj@@latex at plv<1500% >=2020-02-02 pl5 and <=2020-10-01
   \DeclareRobustCommand\romanseries[1]{\@forced at seriesfalse\merge at font@series{#1}}
   \DeclareRobustCommand\kanjiseries[1]{\@forced at seriesfalse\merge at kanji@series{#1}}
-  \DeclareRobustCommand\fontseries[1]{%
-    \@forced at seriesfalse\merge at font@series{#1}\merge at kanji@series{#1}}
-  \DeclareRobustCommand\romanseriesforce[1]{\@forced at seriestrue\merge at font@series{#1}}
-  \DeclareRobustCommand\kanjiseriesforce[1]{\@forced at seriestrue\merge at kanji@series{#1}}
-  \DeclareRobustCommand\fontseriesforce[1]{%
-     \@forced at seriestrue\merge at font@series{#1}\merge at kanji@series{#1}}
+  \DeclareRobustCommand\romanseriesforce[1]{\@forced at seriestrue\edef\f at series{#1}}
+  \DeclareRobustCommand\kanjiseriesforce[1]{\@forced at seriestrue\edef\k at series{#1}}
 \else% >=2021-05-01
   \DeclareRobustCommand\romanseries[1]{\@forced at seriesfalse
       \expandafter\def\expandafter\delayed at f@adjustment\expandafter
@@ -914,7 +908,6 @@
   \DeclareRobustCommand\kanjiseries[1]{\@forced at seriesfalse
       \expandafter\def\expandafter\delayed at k@adjustment\expandafter
           {\delayed at k@adjustment\delayed at merge@kanji at series{#1}}}
-  \DeclareRobustCommand\fontseries[1]{\kanjiseries{#1}\romanseries{#1}}
   \DeclareRobustCommand\romanseriesforce[1]{\@forced at seriestrue
       \expandafter\def\expandafter\delayed at f@adjustment\expandafter
           {\delayed at f@adjustment\edef\f at series{#1}}}
@@ -921,9 +914,11 @@
   \DeclareRobustCommand\kanjiseriesforce[1]{\@forced at seriestrue
       \expandafter\def\expandafter\delayed at k@adjustment\expandafter
           {\delayed at k@adjustment\edef\k at series{#1}}}
-  \DeclareRobustCommand\fontseriesforce[1]{\kanjiseriesforce{#1}\romanseriesforce{#1}}%
   \let\delayed at k@adjustment\@empty
 \fi\fi
+\DeclareRobustCommand\fontseries[1]{\kanjiseries{#1}\romanseries{#1}}%
+\DeclareRobustCommand\fontseriesforce[1]{\kanjiseriesforce{#1}\romanseriesforce{#1}}%
+
 \ifnum\ltj@@latex at plv<1500% <=2020-10-01
   \DeclareRobustCommand\romanshape[1]{\merge at font@shape{#1}}
   \DeclareRobustCommand\kanjishape[1]{\merge at kanji@shape{#1}}

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-atbegshi.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-atbegshi.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-atbegshi.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjp-atbegshi}[2020-09-30 Patching \string\shipout\space hooks for LuaTeX-ja]
+\ProvidesPackage{lltjp-atbegshi}[2021-03-14 Patching \string\shipout\space hooks for LuaTeX-ja]
 
 % concept: execute all hooks inside yoko direction \vbox
 
@@ -13,22 +13,24 @@
 \RequirePackage{expl3}
 \ExplSyntaxOn\makeatletter
 \box_new:N \l__platex_shipout_dummy_box
-\cs_new_eq:NN \__platex_original_shipout_execute_cont: \__shipout_execute_cont:
-\cs_set:Npn \__shipout_execute_cont:
-{
-  % if \l_shipout_box is not a \yoko-box (= horizontal writing),
+\if_cs_exist:N \__shipout_execute_main_cont:Nnnn %% 2021-05-01
+\cs_new_eq:NN \__platex_original_shipout_execute_main_cont:Nnnn
+              \__shipout_execute_main_cont:Nnnn
+\cs_set:Npn \__shipout_execute_main_cont:Nnnn #1#2#3#4 {
+  % if the box #1 is not a \yoko-box (= horizontal writing),
   % then make it a \yoko-box behorehand.
-  \platex_if_box_yoko:NF \l_shipout_box {
-    \vbox_set:Nn \l_shipout_box { \platex_direction_yoko: \box_use:N \l_shipout_box }
+  \platex_if_box_yoko:NF #1 {
+    \vbox_set:Nn #1 { \platex_direction_yoko: \box_use:N #1 }
   }
   % if the current direction is not \yoko,
-  % then enclose \__shipout_execute_cont: with
+  % then enclose \__shipout_execute_main_cont:Nnnn with
   % a dummy \yoko-box named \l__platex_shipout_dummy_box.
   \platex_if_direction_yoko:TF {
-    \__platex_original_shipout_execute_cont:
+    \__platex_original_shipout_execute_main_cont:Nnnn { #1 } { #2 } { #3 } { #4 }
   }{
     \vbox_set:Nn \l__platex_shipout_dummy_box {
-      \platex_direction_yoko: \__platex_original_shipout_execute_cont:
+      \platex_direction_yoko:
+      \__platex_original_shipout_execute_main_cont:Nnnn { #1 } { #2 } { #3 } { #4 }
     }
     % [Limitation] the code above may discard some contents,
     % so we'd like to put it back by \box\l__platex_shipout_dummy_box.
@@ -37,6 +39,23 @@
     %\box_use:N \l__platex_shipout_dummy_box
   }
 }
+
+\else: %% 2020-10-01
+\cs_new_eq:NN \__platex_original_shipout_execute_cont: \__shipout_execute_cont:
+\cs_set:Npn \__shipout_execute_cont:
+{
+  \platex_if_box_yoko:NF \l_shipout_box {
+    \vbox_set:Nn \l_shipout_box { \platex_direction_yoko: \box_use:N \l_shipout_box }
+  }
+  \platex_if_direction_yoko:TF {
+    \__platex_original_shipout_execute_cont:
+  }{
+    \vbox_set:Nn \l__platex_shipout_dummy_box {
+      \platex_direction_yoko: \__platex_original_shipout_execute_cont:
+    }
+  }
+}
+\fi:
 %</ltshipout>-----------------------------------
 \ExplSyntaxOff
 \expandafter\endinput

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-footmisc.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-footmisc.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-footmisc.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjp-footmisc}[2017/05/05 Patch to footmisc for LuaTeX-ja]
+\ProvidesPackage{lltjp-footmisc}[2021-03-17 Patch to footmisc for LuaTeX-ja]
 \RequirePackage{footmisc}
 
 \let  \if at tempswa  \ifFN at bottom
@@ -47,7 +47,9 @@
       \setbox\@outputbox \vbox to\@colht{%
         \@texttop \dimen@\dp\@outputbox
         \unvbox\@outputbox
-        \ifnum\ltjgetparameter{direction}=3 \vbox{\hskip\z@}\fi %%% LuaTeX-ja
+        \unless\ifnum\ltjgetparameter{direction}=4
+          \vbox{\primitive\everypar{}\hskip\z@}%
+        \fi %%% LuaTeX-ja
         \vskip -\dimen@\@textbottom
       }%
     \fi

Modified: branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-stfloats.sty
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-stfloats.sty	2021-03-19 21:30:02 UTC (rev 58544)
+++ branches/branch2020.0/Master/texmf-dist/tex/luatex/luatexja/patches/lltjp-stfloats.sty	2021-03-19 21:30:23 UTC (rev 58545)
@@ -1,5 +1,5 @@
 %
-% lltjp-stfloats.sty 2017-05-05
+% lltjp-stfloats.sty 2021-03-17
 %
 
 \NeedsTeXFormat{LaTeX2e}
@@ -14,7 +14,9 @@
 \global\let\org at makecol\ltj at orig@makecol
 
 \patchcmd\fn at makecol{\vskip -\dimen@\@textbottom}%
-  {\ifnum\ltjgetparameter{direction}=4\else\vbox{\hskip\z@}\fi %%% LuaTeX-ja
+  {\unless\ifnum\ltjgetparameter{direction}=4
+     \vbox{\primitive\everypar{}\hskip\z@}%
+   \fi %%% LuaTeX-ja
    \vskip -\dimen@
    \ifltj at ftn@unvboxed\iffnfixbottom\else\@textbottom\fi\else\@textbottom\fi}{}{}
 \patchcmd\fn at makecol{\vskip\skip\footins}{\iffnfixbottom\vskip\z@\@plus.0001fil\fi\vskip\skip\footins}{}{}



More information about the tex-live-commits mailing list.