OSDN Git Service

date
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 30 Sep 2020 14:30:24 +0000 (23:30 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 30 Sep 2020 14:30:24 +0000 (23:30 +0900)
src/patches/lltjcore.sty
src/patches/lltjdefs.sty
src/patches/lltjfont.sty
src/patches/lltjp-atbegshi.sty

index bb12ea1..2af2503 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjcore}[2020-09-27 Patch to LaTeX2e Kernel for LuaTeX-ja]
+\ProvidesPackage{lltjcore}[2020-09-28 Patch to LaTeX2e Kernel for LuaTeX-ja]
 \RequirePackage{etoolbox}
 
 %%% expl3
index 7940d3f..03366c2 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjdefs}[2020-08-08 Default font settings of LuaTeX-ja]
+\ProvidesPackage{lltjdefs}[2020-09-30 Default font settings of LuaTeX-ja]
 
 \ifdefined\ltj@stdmcfont\else\def\ltj@stdmcfont{file:HaranoAjiMincho-Regular.otf}\fi
 \ifdefined\ltj@stdgtfont\else\def\ltj@stdgtfont{file:HaranoAjiGothic-Medium.otf}\fi
index 8807c35..564a1b6 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjfont}[2020-09-26 Patch to NFSS2 for LuaTeX-ja]
+\ProvidesPackage{lltjfont}[2020-09-30 Patch to NFSS2 for LuaTeX-ja]
 
 %% patching \DeclareTextComposite
 \def\ltj@chardef@text@cmd#1{%
index 07f1673..a9ca6a2 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjp-atbegshi}[2020-09-27 Patching \string\shipout\space hooks for LuaTeX-ja]
+\ProvidesPackage{lltjp-atbegshi}[2020-09-30 Patching \string\shipout\space hooks for LuaTeX-ja]
 
 % concept: execute all hooks inside yoko direction \vbox
 
 {
   % if \l_shipout_box is not a \yoko-box (= horizontal writing),
   % then make it a \yoko-box behorehand.
-  \unless\ifnum\ltjgetparameter{boxdir}{\l_shipout_box}=4
-    \vbox_set:Nn \l_shipout_box { \yoko \box_use:N \l_shipout_box }
-  \fi
+  \platex_if_box_yoko:NF \l_shipout_box {
+    \vbox_set:Nn \l_shipout_box { \platex_direction_yoko: \box_use:N \l_shipout_box }
+  }
   % if the current direction is not \yoko,
   % then enclose \__shipout_execute_cont: with
   % a dummy \yoko-box named \l__platex_shipout_dummy_box.
-  \ifnum\ltjgetparameter{direction}=4
+  \platex_if_direction_yoko:TF {
     \__platex_original_shipout_execute_cont:
-  \else
+  }{
     \vbox_set:Nn \l__platex_shipout_dummy_box {
-      \yoko \__platex_original_shipout_execute_cont:
+      \platex_direction_yoko: \__platex_original_shipout_execute_cont:
     }
     % [Limitation] the code above may discard some contents,
     % so we'd like to put it back by \box\l__platex_shipout_dummy_box.
     % however, an infinite loop occurs if we uncomment the line below
     % so we can't.
     %\box_use:N \l__platex_shipout_dummy_box
-  \fi
+  }
 }
 %</ltshipout>-----------------------------------
-
+\ExplSyntaxOff
 \expandafter\endinput
 \fi
 \RequirePackage{atbegshi}