From c3d8132256107735a8124d1ed5526205f3a211d3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 4 Jun 2021 20:14:02 +0000 Subject: platex (4jun21) git-svn-id: svn://tug.org/texlive/trunk@59463 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/platex/base/plcore.dtx | 32 +++++--- Master/texmf-dist/source/platex/base/plfonts.dtx | 15 ++-- Master/texmf-dist/source/platex/base/plnewsc16.tex | 94 ++++++++++++++++++++++ Master/texmf-dist/source/platex/base/plvers.dtx | 6 +- 4 files changed, 130 insertions(+), 17 deletions(-) create mode 100644 Master/texmf-dist/source/platex/base/plnewsc16.tex (limited to 'Master/texmf-dist/source/platex') diff --git a/Master/texmf-dist/source/platex/base/plcore.dtx b/Master/texmf-dist/source/platex/base/plcore.dtx index 6e61ab38c94..118a6ad96f3 100644 --- a/Master/texmf-dist/source/platex/base/plcore.dtx +++ b/Master/texmf-dist/source/platex/base/plcore.dtx @@ -126,7 +126,7 @@ % \changes{v1.3e}{2020/03/05}{合字処理を抑止しつつ\cs{xkanjiskip}は挿入} % \changes{v1.3f}{2020/09/26}{\cs{AtBeginDvi}を再定義しない % (checked ltshipout.dtx 2020/09/21 v1.0c)} -% \changes{v1.3f}{2020/09/26}{\cs{\_\_shipout_execute_cont:}を再定義 +% \changes{v1.3f}{2020/09/26}{\cs{\_\_shipout\_execute\_cont:}を再定義 % (checked ltshipout.dtx 2020/09/21 v1.0c)} % \changes{v1.3g}{2020/09/28}{縦組で空のフロートだけのページの % フッタ(Issue 78)} @@ -134,13 +134,14 @@ % \changes{v1.3h}{2021/03/14}{\LaTeXe~2021-06-01に伴う修正} % \changes{v1.3i}{2021/03/25}{\cs{@outputpage}, \cs{@vtryfc}での、非横組時における % \cs{@outputbox}の寸法補正のコードを別命令として切り出した} +% \changes{v1.3j}{2021/06/03}{巻戻しコードのエラー修正} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{plcore.dtx}[2021/03/25 v1.3i pLaTeX core file] +\ProvidesFile{plcore.dtx}[2021/06/03 v1.3j pLaTeX core file] % \iffalse \documentclass{jltxdoc} \GetFileInfo{plcore.dtx} @@ -1641,9 +1642,10 @@ % ^^A 本当は、処理終了時に|\box\l__platex_shipout_dummy_box|して % ^^A メイン垂直リストに中身を戻したいのですが、 % ^^A なぜか無限ループが起きるため実行していません。 -% \changes{v1.3f}{2020/09/26}{\cs{shipout-execute-cont}を再定義 +% \changes{v1.3f}{2020/09/26}{\cs{\_\_shipout\_execute\_cont:}を再定義 % (checked ltshipout.dtx 2020/09/21 v1.0c)} % \changes{v1.3g}{2020/09/28}{\file{plexpl3}で定義した命令を使用} +% \changes{v1.3j}{2021/06/03}{巻戻しコードのエラー修正} % \begin{macrocode} % %\plIncludeInRelease{2020/10/01}{\__shipout_execute_cont:} @@ -1651,9 +1653,14 @@ %<*plcore|platexrelease> \ifdefined\ExplSyntaxOn %--- expl3 available BEGIN \ExplSyntaxOn -\if_cs_exist:N \__shipout_execute_cont: -\cs_new_eq:NN \__platex_original_shipout_execute_cont: \__shipout_execute_cont: -\box_new:N \l__platex_shipout_dummy_box +\cs_if_exist:NT \__shipout_execute_cont: { %--- IF LEVEL 1 BEGIN +\cs_if_exist:NF \__platex_original_shipout_execute_cont: { + \cs_new_eq:NN \__platex_original_shipout_execute_cont: + \__shipout_execute_cont: + } +\cs_if_exist:NF \l__platex_shipout_dummy_box { + \box_new:N \l__platex_shipout_dummy_box + } \cs_set:Npn \__shipout_execute_cont: { % if \l_shipout_box is not a \yoko-box (= horizontal writing), @@ -1683,7 +1690,7 @@ %\box_use:N \l__platex_shipout_dummy_box } } -\fi: +} %--- IF LEVEL 1 END % \end{macrocode} % \end{macro} % @@ -1692,10 +1699,13 @@ % 必要なので、それを行います。 % \changes{v1.3h}{2021/03/14}{\LaTeXe~2021-06-01では % \cs{\_\_shipout\_execute\_nohooks\_cont:}が追加された} +% \changes{v1.3j}{2021/06/03}{巻戻しコードのエラー修正} % \begin{macrocode} -\if_cs_exist:N \__shipout_execute_nohooks_cont: -\cs_new_eq:NN \__platex_original_shipout_execute_nohooks_cont: - \__shipout_execute_nohooks_cont: +\cs_if_exist:NT \__shipout_execute_nohooks_cont: { %--- IF LEVEL 1 BEGIN +\cs_if_exist:NF \__platex_original_shipout_execute_nohooks_cont: { + \cs_new_eq:NN \__platex_original_shipout_execute_nohooks_cont: + \__shipout_execute_nohooks_cont: + } \cs_set:Npn \__shipout_execute_nohooks_cont: { \platex_if_box_yoko:NF \l__shipout_raw_box { @@ -1715,7 +1725,7 @@ } } } -\fi: +} %--- IF LEVEL 1 END \ExplSyntaxOff \fi %--- expl3 available END % diff --git a/Master/texmf-dist/source/platex/base/plfonts.dtx b/Master/texmf-dist/source/platex/base/plfonts.dtx index 4474d8a36e5..a46eb001015 100644 --- a/Master/texmf-dist/source/platex/base/plfonts.dtx +++ b/Master/texmf-dist/source/platex/base/plfonts.dtx @@ -184,13 +184,15 @@ % \changes{v1.7l}{2021/05/23}{Unset the forced series boolean when reaching % \cs{selectfont} (latex2e/444) % (sync with ltfsstrc.dtx 2021/04/26 v3.0o)} +% \changes{v1.7m}{2021/06/04}{latex2e/444対応:\cs{@shape@roman@kanji}フラグ +% を\cs{delayed@k@adjustment}の中で変更/復帰する} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{plfonts.dtx}[2021/05/23 v1.7l pLaTeX New Font Selection Scheme] +\ProvidesFile{plfonts.dtx}[2021/06/04 v1.7m pLaTeX New Font Selection Scheme] % \iffalse \documentclass{jltxdoc} \GetFileInfo{plfonts.dtx} @@ -323,7 +325,7 @@ %<*trace> \NeedsTeXFormat{pLaTeX2e} \ProvidesPackage{ptrace} - [2021/01/10 v1.7k Standard pLaTeX package (font tracing)] + [2021/06/04 v1.7m Standard pLaTeX package (font tracing)] \RequirePackageWithOptions{tracefnt} % % \end{macrocode} @@ -2878,6 +2880,8 @@ % \LaTeXe~2021-06-01以降では、シェイプの更新を|\selectfont|まで遅らせます。 % \changes{v1.7k}{2021/01/10}{Distangle series and shape update (latex2e/444) % (sync with ltfssaxes.dtx 2020/12/22 v1.0h)} +% \changes{v1.7m}{2021/06/04}{latex2e/444対応:\cs{@shape@roman@kanji}フラグ +% を\cs{delayed@k@adjustment}の中で変更/復帰する} % \begin{macrocode} %\plIncludeInRelease{2020/04/12}{\fontshape} % {No \k@shape update if unavailable}% @@ -2905,9 +2909,10 @@ \expandafter\def\expandafter\delayed@k@adjustment\expandafter {\delayed@k@adjustment\delayed@merge@kanji@shape{#1}}} \DeclareRobustCommand\fontshape[1]{% - \@shape@roman@kanjitrue - \kanjishape{#1}\romanshape{#1}% - \@shape@roman@kanjifalse} + \romanshape{#1}% + \expandafter\def\expandafter\delayed@k@adjustment\expandafter + {\delayed@k@adjustment\@shape@roman@kanjitrue + \delayed@merge@kanji@shape{#1}\@shape@roman@kanjifalse}} \fi % --- for >= 2021-06-01 END \fi % diff --git a/Master/texmf-dist/source/platex/base/plnewsc16.tex b/Master/texmf-dist/source/platex/base/plnewsc16.tex new file mode 100644 index 00000000000..c0811bd01fc --- /dev/null +++ b/Master/texmf-dist/source/platex/base/plnewsc16.tex @@ -0,0 +1,94 @@ +%% <2021-06-01> +\documentclass{plnews} +\usepackage{minijs} + +\publicationyear{2021}% 発行年 +\publicationmonth{06}% 発行月 +\publicationissue{c16}% 番号 +\author{日本語\TeX{}開発コミュニティ(\texttt{https://texjp.org/})} + +\def\cs#1{\texttt{\char92\nobreak #1}} +\def\pTeX{p\kern-.15em\TeX} +\def\eTeX{$\varepsilon$-\TeX} +\def\epTeX{$\varepsilon$-\pTeX} +\def\pLaTeX{p\kern-.05em\LaTeX} +\def\pLaTeXe{p\kern-.05em\LaTeXe} +\xspcode`\\=1 + +\begin{document} + +\maketitle + +コミュニティ版\pLaTeXe\ \texttt{<2021-06-01>}について、 +\pLaTeXe\ \texttt{<2020-10-01>}からの更新箇所を +まとめました。u\pLaTeXe{}も同時に更新してください。 + + +\section{\LaTeXe\ \texttt{<2021-06-01>}対応} +→参考:|texjporg/platex#96| + +新しい\LaTeXe\ \texttt{<2021-06-01>}で修正・追加された +機能(\file{ltnews33}, \file{ltpara-doc}も参照)のうち、 +\pLaTeXe{}の日本語拡張部分に影響するものに対応を施しました。 +具体的には、以下が該当します。 +\begin{itemize} +\item 段落へのフック機能 + (Extending the hook concept to paragraphs) +\item 書体選択命令 |\selectfont| へのフック機能 + (A new hook in |\selectfont|) + (これは従来の |everysel| パッケージに相当) +\item 新NFSSへの追加修正:シリーズ・シェイプの変更を + |\selectfont| まで遅らせる + (Change of font series/shape delayed until |\selectfont|) +\end{itemize} + + +\section{開発版のテストのお願い} +特に2020年以降、オリジナルの\LaTeX{}が活発に開発されており、 +その変更点が\pLaTeX{}に波及するケースが増えてきました。 +そのようなケースの見落としを避け、かつ、今後\pLaTeX{}に +導入するかもしれない修正や仕様変更を事前にテストしていただく +ことは、予期しないバグの防止につながります。 +ぜひ開発版のテストにご協力ください。いくつかの方法があります。 + +最も簡単な方法は「通常のコマンド名 |platex| の代わりに +|platex-dev| というコマンドを起動する」というものです。 +通常のコマンドは +「\LaTeXe{}の\emph{安定版}に\pLaTeXe{}を載せたもの」 +ですが、|-dev| 付きコマンドは +「\LaTeXe{}の\emph{開発版}に\pLaTeXe{}を載せたもの」 +になります。 +コマンドラインで直接実行するほか、以下の方法でも利用可能です。 +\begin{itemize} + \item ローカルインストール不要で、すぐにWeb上で\pLaTeX{}を + 実行できるサービス + Cloud LaTeX (https://cloudlatex.io/ja) + には、2021/05/09以降、 + プロジェクト設定に「開発版を試す」という機能が用意されています。 + これは |platex| の代わりに |platex-dev| を起動するものです。 + これで、一般のユーザの方々にも開発版のテストに参加していただき + やすくなりました。 + \item \TeX Shopや\TeX worksなどの支援環境を使用する場合、 + 起動コマンド名に |ptex2pdf -l ...| とある箇所を + |ptex2pdf -ld ...| に変更すれば、開発版が起動します。 +\end{itemize} +この方法によって、\pLaTeXe{}が開発版\LaTeXe{}に非対応の箇所を +あぶり出すことができます。 + +さらに、\pLaTeXe{}特有の試験的コードを配布する場合もあります。 +\TeX{}ファイルの冒頭(|\documentclass|より前)で +\begin{verbatim} + \RequirePackage{exppl2e} +\end{verbatim} +と書くことで、\pLaTeXe{}の開発版コードも上乗せできます。 +詳細は\file{exppl2e.pdf}を参照してください。ここには、 +その他の\pLaTeXe{}の既知の制約事項も記載しています。 + +開発版をお試しいただき、\TeX\ ForumやGitHubのIssueでの +バグ報告やご意見を歓迎します。 +\begin{itemize} +\item \texttt{https://github.com/texjporg/platex} +\item \texttt{https://github.com/texjporg/uplatex} +\end{itemize} + +\end{document} diff --git a/Master/texmf-dist/source/platex/base/plvers.dtx b/Master/texmf-dist/source/platex/base/plvers.dtx index 2bacd245538..8b509580f87 100644 --- a/Master/texmf-dist/source/platex/base/plvers.dtx +++ b/Master/texmf-dist/source/platex/base/plvers.dtx @@ -197,7 +197,7 @@ {2021-06-01} % %<*plcore> -\def\ppatch@level{0} +\def\ppatch@level{1} % % \end{macrocode} % \end{macro} @@ -496,6 +496,10 @@ \else % for LaTeX2e 2020-10-01 or later \AddToHook{begindocument/before}{\p@warn@latexrelease} +%%% temporary workaround: see latex3/latex2e#577 +\AddToHook{package/before/latexrelease}{\let\saved@pathstack\@kernel@currpathstack} +\AddToHook{package/after/latexrelease}{\let\@kernel@currpathstack\saved@pathstack} +%%% [TODO] remove the above when fixed! \fi % \def\p@warn@latexrelease{% -- cgit v1.2.3