• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョンc4b0dcceef384d874e827bb1a8c134f6f0ab33dc (tree)
日時2020-09-26 14:46:33
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Import from platex/2c50d2a22

変更サマリ

差分

--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -5804,12 +5804,12 @@ and 4 means \emph{yoko} direction (horizontal typesetting).
58045804 \item
58055805 %<*en>
58065806 For an integer~<reg\_num> between 0~and~65535,
5807-\verb+\ltjgetparameter{boxdim}{+<reg\_num>\verb+}+ returns the direction of
5807+\verb+\ltjgetparameter{boxdir}{+<reg\_num>\verb+}+ returns the direction of
58085808 \cs{box}<reg\_num>. If this box register is void, the returned value is zero.
58095809 %</en>
58105810 %<*ja>
58115811 0--65535の数<reg\_num>に対して,
5812-\verb+\ltjgetparameter{boxdim}{+<reg\_num>\verb+}+ は,\cs{box}<reg\_num>に
5812+\verb+\ltjgetparameter{boxdir}{+<reg\_num>\verb+}+ は,\cs{box}<reg\_num>に
58135813 格納されているボックスの組方向を表す.もしこのレジスタが空の場合は,0が返される.
58145814 %</ja>
58155815
--- a/src/patches/lltjfont.sty
+++ b/src/patches/lltjfont.sty
@@ -3,7 +3,7 @@
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjfont}[2020-05-17 Patch to NFSS2 for LuaTeX-ja]
6+\ProvidesPackage{lltjfont}[2020-09-26 Patch to NFSS2 for LuaTeX-ja]
77
88 %% patching \DeclareTextComposite
99 \def\ltj@chardef@text@cmd#1{%
@@ -945,10 +945,10 @@
945945
946946 \let\romanprocess@table\process@table
947947 \def\kanjiprocess@table{%
948- \kanjiencoding{\kanjiencodingdefault}%
949- \kanjifamily{\kanjifamilydefault}%
950- \kanjiseries{\kanjiseriesdefault}%
951- \kanjishape{\kanjishapedefault}%
948+ \kanjiencoding\kanjiencodingdefault%
949+ \edef\k@family{\kanjifamilydefault}%
950+ \edef\k@series{\kanjiseriesdefault}%
951+ \edef\k@shape{\kanjishapedefault}%
952952 }
953953 \def\process@table{%
954954 \romanprocess@table
--- a/src/patches/lltjp-atbegshi.sty
+++ b/src/patches/lltjp-atbegshi.sty
@@ -19,10 +19,30 @@
1919 \RequirePackage{expl3}
2020 \ExplSyntaxOn\makeatletter
2121 \box_new:N \l__platex_shipout_dummy_box
22-\tl_put_left:Nn {\__shipout_execute_cont:}
23- {\tex_setbox:D \l__platex_shipout_dummy_box \tex_vbox:D \c_group_begin_token \yoko }
24-\tl_put_right:Nn {\__shipout_execute_cont:} {\c_group_end_token}
25-\ExplSyntaxOff
22+\cs_new_eq:NN \__platex_original_shipout_execute_cont: \__shipout_execute_cont:
23+\cs_set:Npn \__shipout_execute_cont:
24+{
25+ % if \l_shipout_box is not a \yoko-box (= horizontal writing),
26+ % then make it a \yoko-box behorehand.
27+ \unless\ifnum\ltjgetparameter{boxdir}{\l_shipout_box}=4
28+ \vbox_set:Nn \l_shipout_box { \yoko \box_use:N \l_shipout_box }
29+ \fi
30+ % if the current direction is not \yoko,
31+ % then enclose \__shipout_execute_cont: with
32+ % a dummy \yoko-box named \l__platex_shipout_dummy_box.
33+ \ifnum\ltjgetparameter{direction}=4
34+ \__platex_original_shipout_execute_cont:
35+ \else
36+ \vbox_set:Nn \l__platex_shipout_dummy_box {
37+ \yoko \__platex_original_shipout_execute_cont:
38+ }
39+ % [Limitation] the code above may discard some contents,
40+ % so we'd like to put it back by \box\l__platex_shipout_dummy_box.
41+ % however, an infinite loop occurs if we uncomment the line below
42+ % so we can't.
43+ %\box_use:N \l__platex_shipout_dummy_box
44+ \fi
45+}
2646 %</ltshipout>-----------------------------------
2747
2848 \expandafter\endinput
旧リポジトリブラウザで表示