• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョンa44e79d8dc5c8d5d2d987f022cb8d40d9fdf43a7 (tree)
日時2020-04-07 23:33:21
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Adapt platex/5548403

変更サマリ

差分

--- a/src/patches/lltjfont.sty
+++ b/src/patches/lltjfont.sty
@@ -712,19 +712,6 @@
712712 \fi
713713 \fi
714714 }
715-\def\set@safe@kanji@shape#1#2{%
716- \edef\reserved@b{\k@encoding /\k@family /\k@series/#1}%
717- \ifcsname \reserved@b\endcsname
718- \edef\k@shape{#1}%
719- #2%
720- \else
721- \@kanji@shape@nochange@info{\reserved@b}%
722- \fi
723-}
724-\def\@kanji@shape@nochange@info#1{%
725- \@font@info{Kanji font shape `#1' undefined\MessageBreak
726- No change}%
727-}
728715 \ifnum\ltj@@latex@plv=300 % !!! pl3, 4
729716 \DeclareRobustCommand\romanseries[1]{\merge@font@series{#1}}
730717 \DeclareRobustCommand\kanjiseries[1]{\merge@kanji@series{#1}}
@@ -768,7 +755,7 @@
768755 \DeclareRobustCommand\fontseries[1]{\kanjiseries{#1}\romanseries{#1}}
769756 \DeclareRobustCommand\romanshape[1]{\edef\f@shape{#1}}
770757 \DeclareRobustCommand\kanjishape[1]{\edef\k@shape{#1}}
771-\DeclareRobustCommand\fontshape[1]{\kanjishape{#1}\romanshape{#1}}
758+\DeclareRobustCommand\fontshape[1]{\set@safe@kanji@shape{#1}{}\romanshape{#1}}
772759 \DeclareRobustCommand\usekanji[4]{%
773760 \kanjiencoding{#1}\kanjifamily{#2}\kanjiseries{#3}\kanjishape{#4}%
774761 \selectfont\ignorespaces}
@@ -778,6 +765,21 @@
778765 %%%% LaTeX 2019-10-01 END
779766 \fi
780767 %%%%
768+
769+\def\set@safe@kanji@shape#1#2{%
770+ \edef\reserved@b{\k@encoding /\k@family /\k@series/#1}%
771+ \ifcsname \reserved@b\endcsname
772+ \edef\k@shape{#1}%
773+ #2%
774+ \else
775+ \@kanji@shape@nochange@info{\reserved@b}%
776+ \fi
777+}
778+\def\@kanji@shape@nochange@info#1{%
779+ \@font@info{Kanji font shape `#1' undefined\MessageBreak
780+ No change}%
781+}
782+
781783 \protected\def\usefont#1#2#3#4{%
782784 \ltj@@is@kenc{#1}\ifin@\usekanji{#1}{#2}{#3}{#4}%
783785 \else\useroman{#1}{#2}{#3}{#4}%
旧リポジトリブラウザで表示