texlive[62921] Master/texmf-dist: pxjahyper (2apr22)
commits+karl at tug.org
commits+karl at tug.org
Tue Apr 5 23:55:37 CEST 2022
Revision: 62921
http://tug.org/svn/texlive?view=revision&revision=62921
Author: karl
Date: 2022-04-05 23:55:37 +0200 (Tue, 05 Apr 2022)
Log Message:
-----------
pxjahyper (2apr22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md
trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def
trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md 2022-04-05 21:55:37 UTC (rev 62921)
@@ -12,7 +12,10 @@
### 前提環境
* フォーマット: LaTeX
- * エンジン: pTeX、upTeX、pTeX-ng
+ * エンジン:
+ - pTeX 3.0版以降
+ - upTeX 0.10版以降
+ - pTeX-ng (試験的)
※一部の機能では e-TeX 拡張が必要。
* DVIウェア: dvipdfmx
* 依存パッケージ:
@@ -70,6 +73,12 @@
更新履歴
--------
+ * Version 1.0 〈2022/04/01〉
+ - オプション `auto` を `autodvidriver` に改名(旧名は非推奨)。
+ - オプション `nodvidriver` の非推奨の旧名 `none`を廃止した。
+ - `disablecmds` の対象に jsclasses 独自の命令を追加した。
+ - (試験的)“pTeX + hyperref unicode モード”に対するサポート。
+
* Version 0.9d 〈2022/03/15〉
- LaTeX カーネル 2021/11/15 版への対応。(thanks: @wtsnjp さん)
Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md 2022-04-05 21:55:37 UTC (rev 62921)
@@ -52,6 +52,7 @@
Revision History
----------------
+ * Version 1.0 〈2022/04/01〉
* Version 0.9d 〈2022/03/15〉
* Version 0.9c 〈2021/06/06〉
* Version 0.9b 〈2021/05/29〉
Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex 2022-04-05 21:55:37 UTC (rev 62921)
@@ -16,8 +16,8 @@
\bxtexlogoimport{*}
\usepackage{shortvrb}
\MakeShortVerb{\|}
-\newcommand{\PkgVersion}{0.9d}
-\newcommand{\PkgDate}{2022/03/15}
+\newcommand{\PkgVersion}{1.0}
+\newcommand{\PkgDate}{2022/04/01}
\newcommand{\Pkg}[1]{\textsf{#1}}
\newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$}
\newcommand{\Note}{\par\noindent ※}
@@ -42,7 +42,8 @@
内部漢字コードに応じて適切なものを出力する。
\item PDF文字列の中でLICR(|\"a| や |\textsection| 等の
文字出力の命令)が正しく機能するようにする。
- ただし、エンジンが {\pTeX} の場合は、out2uni/convbkmk を利用
+ ただし、エンジンが {\pTeX} の場合は、out2uni/convbkmk%
+ (および試験的機能の“force-unicode”)を利用
する場合を除き、JIS~X~0208にない文字は出力できない
(hyperrefの警告が出る)。
\item {\TeX} の版面拡大機能が使われている
@@ -69,10 +70,13 @@
(ドライバ依存動作の無効化を明示的に指示、
現状ではほとんどの動作が無効になる)
が指定できる。
- \Note 0.5版より、|nodvidriver| の別名の |none| は
- \Strong{非推奨}の扱いとする。
-\item |auto|(既定)\Means
+ \Note 1.0版において |nodvidriver| の別名の |none| は
+ \Strong{廃止}された。
+ (0.5版から非推奨だった。)
+\item |autodvidriver|(既定)\Means
ドライバオプションを\Pkg{hyperref}のドライバ指定から自動的に判定する。
+ \Note 1.0版において名前を |auto| から |autodvidriver| に変更した。
+ 旧名の |auto| は\Strong{非推奨}とする。
\item |tounicode|(既定)\Means
以下の2つの設定を行う。
\begin{enumerate}
@@ -130,6 +134,10 @@
papersize specialの補正を有効にする。
\item |nopapersize|\Means
|papersize| の否定。
+\item |force-unicode|\Means
+ \Pkg{hyperref}の |unicode| オプションが有効でかつエンジンが{\pTeX}で
+ ある状況(0.9版よりサポートが追加されたが\Strong{試験的}である)
+ において出る警告を抑止する。
\end{itemize}
%===========================================================
@@ -297,17 +305,24 @@
以下の命令が対象になる。
\begin{itemize}
-\item 和文のフォント選択命令\Means
- |\textmc| |\gtfamily| |\kanjifamily| |\useroman| |\userelfont|
- など
-\item 次の{\pLaTeX}カーネル命令\Means
+\item \Pkg{hyperref}での無効化の対象である「フォント選択命令」の
+ 和文版に相当するもの。
+ 例えば、
+ |\textmc| |\gtfamily| |\kanjifamily| |\romanshape|
+ |\usekanji| |\useroman| |\userelfont|
+ 等が該当する。
+\item {\pLaTeX}カーネル命令\Means
|\<|
-\item 次の{\pTeX}プリミティブ\Means
- |\inhibitglue| |\|(|no|)|autospacing| |\|(|no|)|autoxspacing|
-\item 次の\Pkg{plext}の命令\Means
+\item {\pTeX}プリミティブ\Means
+ |\|(|dis|)|inhibitglue| |\|(|no|)|autospacing| |\|(|no|)|autoxspacing|
+\item \Pkg{plext}の命令\Means
|\bou| |\kasen| |\rensuji|
-\item 次の\Pkg{japanese-otf}の命令\Means
+\item \Pkg{japanese-otf}の命令\Means
|\textmg| |\mgfamily| |\ltseries| |\ebseries| |\propshape|
+\item \Pkg{jsclasses}のクラスの命令\Means
+ |\maybeblue| |\HUGE|
+\item \Pkg{jlreq}クラスの命令\Means
+ |\jafontsize| |\tatechuyoko| |\jidori| % |\jaspace| |\akigumi|
\end{itemize}
\end{document}
Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def 2022-04-05 21:55:37 UTC (rev 62921)
@@ -11,7 +11,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesFile{pxjahyper-ajm.def}[2022/03/15 v0.9d]
+\ProvidesFile{pxjahyper-ajm.def}[2022/04/01 v1.0]
%% avoid multiple loading
\csname pxjahyperajmLoaded\endcsname
Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty 2022-04-05 21:55:37 UTC (rev 62921)
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper-enc}[2022/03/15 v0.9d]
+\ProvidesPackage{pxjahyper-enc}[2022/04/01 v1.0]
\def\pxhe at pkgname{pxjahyper-enc}
\providecommand{\bxDebug}[1]{}
Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def 2022-04-05 21:55:37 UTC (rev 62921)
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesFile{pxjahyper-uni.def}[2022/03/15 v0.9d]
+\ProvidesFile{pxjahyper-uni.def}[2022/04/01 v1.0]
\providecommand{\bxDebug}[1]{}
%--------------------------------------- environment check
Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty 2022-04-05 21:48:49 UTC (rev 62920)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty 2022-04-05 21:55:37 UTC (rev 62921)
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper}[2022/03/15 v0.9d]
+\ProvidesPackage{pxjahyper}[2022/04/01 v1.0]
\def\pxhy at pkgname{pxjahyper}
\providecommand{\bxDebug}[1]{}
@@ -48,6 +48,8 @@
\newif\ifpxhy at otfutf
\newif\ifpxhy at otfcid
\newif\ifpxhy at otfmacros
+\let\pxhy at jsclasses@name\relax
+\newif\ifpxhy at jlreq@cls
%--------------------------------------- Package options
@@ -64,10 +66,10 @@
\DeclareOption{nodvidriver}{%
\let\pxhy at driver\pxhy at driver@none
}
+\DeclareOption{autodvidriver}{%
+ \let\pxhy at driver\@undefined
+}
%% modes
-\DeclareOption{none}{%
- \let\pxhy at driver\pxhy at driver@none %FIXME
-}
\DeclareOption{auto}{%
\let\pxhy at driver\@undefined %FIXME
}
@@ -207,6 +209,17 @@
\expandafter\endinput
\fi
+%% Check the document class.
+% jlreq
+\ifpxhy at etex
+ \ifx\jlreqsetup\@undefined\else \pxhy at jlreq@clstrue \fi
+\fi
+% jsclasses
+\@ifclassloaded{jsarticle}{\def\pxhy at jsclasses@name{jsarticle}}{}
+\@ifclassloaded{jsbook}{\def\pxhy at jsclasses@name{jsbook}}{}
+\ifx\bxjs at clsname\@undefined\else \let\pxhy at jsclasses@name\relax \fi
+\ifx\jsc at clsname\@undefined\else \let\pxhy at jsclasses@name\jsc at clsname \fi
+
%% Check for the new hook system.
\@ifl at t@r\fmtversion{2021/11/15}{%
\chardef\pxhy at hook@system=2
@@ -245,11 +258,9 @@
% hyperref 'unicode' is allowed only on upLaTeX.
\ifnum0\ifpxhy at hy@unicode\ifpxhy at uptex\else
\ifx t\pxhy at force@unicode\else1\fi\fi\fi>\z@
- \PackageError\pxhy at pkgname
- {The hyperref 'unicode' mode is not supported\MessageBreak
- on the pTeX engine}%
- {\pxhy at eh@fatal}%
- \expandafter\endinput
+ \PackageWarningNoLine\pxhy at pkgname
+ {The support for the hyperref 'unicode' mode\MessageBreak
+ on the pTeX engine is currently experimental}%
\fi
\ifpxhy at hy@unicode
\pxhy at uniescapefalse
@@ -325,6 +336,12 @@
\endgroup
}
+%% \pxhy at let@jchar at jc\CS{<jis-code>}
+\def\pxhy at let@jchar at jc#1#2{%
+ \pxhy at get@jchar{\jis"#2}%
+ \let#1\pxhy at jchar
+}
+
%% \pxhy at forcecjktoken
\ifpxhy at uptex
\let\pxhy at forcecjktoken\forcecjktoken
@@ -733,6 +750,17 @@
}
\fi
+%% \pxhy at let@jchar at uc\CS{<num>}
+\ifx\pxhy at Ux\@undefined
+ \def\pxhy at let@jchar at uc#1#2{%
+ \let#1\noindent % issue a warning
+ }
+\else
+ \def\pxhy at let@jchar at uc#1#2{%
+ \def#1{\pxhy at Ux{#2}}%
+ }
+\fi
+
%--------------------------------------- Support for 'otfutf'
\ifpxhy at otfutf
@@ -801,7 +829,7 @@
\pxhy at Ux{#1}%
\else
\@nameuse{CID+#2}%
- %\pxhy at geta %FIXME: future change
+ \pxhy at geta
\fi
}
\fi
@@ -1468,6 +1496,7 @@
\let\inhibitglue\@empty
\let\noautospacing\@empty
\let\noautoxspacing\@empty
+ \let\disinhibitglue\@empty
% pLaTeX core
\let\romanencoding\@gobble
\let\kanjiencoding\@gobble
@@ -1504,7 +1533,59 @@
% and thus is prepended to pdfstringdefPreHook.
\ltx at GlobalPrependToMacro\pdfstringdefPreHook{\pxhy at disable@commands}
+%% additions for jsclasses
+\ifx\pxhy at jsclasses@name\relax\else
+ \g at addto@macro\pxhy at disable@commands{%
+ \let\HUGE\@empty
+ \pxhy at ifdef@let\maybeblue\@empty
+ }
\fi
+
+%% additions for jlreq
+\ifpxhy at jlreq@cls
+ % characters
+ \pxhy at let@jchar at jc\pxhy at C@ZWSP{2121}
+ \pxhy at let@jchar at jc\pxhy at C@ZWQM{2129}
+ \pxhy at let@jchar at jc\pxhy at C@ZWEM{212A}
+ %% \pxhy at P@tatechuyoko*{<text>}
+ \def\pxhy at P@tatechuyoko{\pxhy at if@star\@firstofone\@firstofone}
+ %% \pxhy at P@jaspace{<name>}
+ \def\pxhy at P@jaspace#1{\@nameuse{jaspace(arg=#1)}}
+ \@namedef{jaspace(arg=zenkaku)}{\pxhy at C@ZWSP}
+ \@namedef{jaspace(arg=nibu)}{ }
+ \@namedef{jaspace(arg=shibu)}{}
+ % addition
+ \def\pxhy at next#1{%
+ \let\expandafter\noexpand\csname#1\endcsname\noexpand#1}
+ \edef\pxhy at disable@commands{%
+ \unexpanded\expandafter{\pxhy at disable@commands}%
+ \pxhy at next\pxhy at C@ZWSP
+ \pxhy at next\pxhy at C@ZWQM
+ \pxhy at next\pxhy at C@ZWEM
+ \unexpanded{%
+ \let\jafontsize\@gobbletwo
+ \let\jaspace\pxhy at P@jaspace
+ \let\tatechuyoko\pxhy at P@tatechuyoko
+ \let\jidori\@secondoftwo
+ \let\akigumi\@secondoftwo}%
+ }
+\fi
+
+%% additions for ascmac (experimental)
+\@onlypreamble\pxhy at dispatch@dc at ascmac
+\def\pxhy at dispatch@dc at ascmac{%
+ \pxhy at let@jchar at jc\pxhy at P@yen{216F}
+ \pxhy at let@jchar at uc\pxhy at P@return{23CE}
+ \g at addto@macro\pxhy at disable@commands{%
+ \let\keytop\@firstofone
+ \let\yen\pxhy at P@yen
+ \let\return\pxhy at P@return
+ \let\Return\pxhy at P@return
+ }%
+}
+\pxhy at hook@after at package{ascmac}{\pxhy at dispatch@dc at ascmac}
+
+\fi
%--------------------------------------- All done
\endinput
%% EOF
More information about the tex-live-commits
mailing list.