summaryrefslogtreecommitdiff
path: root/language/japanese
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-04-03 03:00:36 +0000
committerNorbert Preining <norbert@preining.info>2022-04-03 03:00:36 +0000
commit506de1e2d3515161cdbc7018b4ccc9e49d7f86e8 (patch)
tree45724bd3d77239b332b9251b099af3b16e8b8108 /language/japanese
parent0a334de875944625912f2bf2d918122bb55c0dad (diff)
CTAN sync 202204030300
Diffstat (limited to 'language/japanese')
-rw-r--r--language/japanese/pxjahyper/README-ja.md11
-rw-r--r--language/japanese/pxjahyper/README.md1
-rw-r--r--language/japanese/pxjahyper/pxjahyper-ajm.def2
-rw-r--r--language/japanese/pxjahyper/pxjahyper-enc.sty2
-rw-r--r--language/japanese/pxjahyper/pxjahyper-uni.def2
-rw-r--r--language/japanese/pxjahyper/pxjahyper.pdfbin129264 -> 133200 bytes
-rw-r--r--language/japanese/pxjahyper/pxjahyper.sty101
-rw-r--r--language/japanese/pxjahyper/pxjahyper.tex43
8 files changed, 134 insertions, 28 deletions
diff --git a/language/japanese/pxjahyper/README-ja.md b/language/japanese/pxjahyper/README-ja.md
index bc147ceb65..2f3f39c499 100644
--- a/language/japanese/pxjahyper/README-ja.md
+++ b/language/japanese/pxjahyper/README-ja.md
@@ -12,7 +12,10 @@ LaTeX: pLaTeX 上での hyperref のサポート
### 前提環境
* フォーマット: LaTeX
- * エンジン: pTeX、upTeX、pTeX-ng
+ * エンジン:
+ - pTeX 3.0版以降
+ - upTeX 0.10版以降
+ - pTeX-ng (試験的)
※一部の機能では e-TeX 拡張が必要。
* DVIウェア: dvipdfmx
* 依存パッケージ:
@@ -70,6 +73,12 @@ pxjahyper-enc パッケージ ー 文字コード設定
更新履歴
--------
+ * 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 さん)
diff --git a/language/japanese/pxjahyper/README.md b/language/japanese/pxjahyper/README.md
index 83cef352b2..8357146cc8 100644
--- a/language/japanese/pxjahyper/README.md
+++ b/language/japanese/pxjahyper/README.md
@@ -52,6 +52,7 @@ the PDF strings in the output DVI file.
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〉
diff --git a/language/japanese/pxjahyper/pxjahyper-ajm.def b/language/japanese/pxjahyper/pxjahyper-ajm.def
index f4f0f427e2..54fee59714 100644
--- a/language/japanese/pxjahyper/pxjahyper-ajm.def
+++ b/language/japanese/pxjahyper/pxjahyper-ajm.def
@@ -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
diff --git a/language/japanese/pxjahyper/pxjahyper-enc.sty b/language/japanese/pxjahyper/pxjahyper-enc.sty
index 1e2ae71bb5..57a74a6f9b 100644
--- a/language/japanese/pxjahyper/pxjahyper-enc.sty
+++ b/language/japanese/pxjahyper/pxjahyper-enc.sty
@@ -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@pkgname{pxjahyper-enc}
\providecommand{\bxDebug}[1]{}
diff --git a/language/japanese/pxjahyper/pxjahyper-uni.def b/language/japanese/pxjahyper/pxjahyper-uni.def
index 0b1019fbb9..81c62ecf88 100644
--- a/language/japanese/pxjahyper/pxjahyper-uni.def
+++ b/language/japanese/pxjahyper/pxjahyper-uni.def
@@ -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
diff --git a/language/japanese/pxjahyper/pxjahyper.pdf b/language/japanese/pxjahyper/pxjahyper.pdf
index 55c1153e34..f8b58af5c8 100644
--- a/language/japanese/pxjahyper/pxjahyper.pdf
+++ b/language/japanese/pxjahyper/pxjahyper.pdf
Binary files differ
diff --git a/language/japanese/pxjahyper/pxjahyper.sty b/language/japanese/pxjahyper/pxjahyper.sty
index 47a913f8ee..0a4a928952 100644
--- a/language/japanese/pxjahyper/pxjahyper.sty
+++ b/language/japanese/pxjahyper/pxjahyper.sty
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper}[2022/03/15 v0.9d]
+\ProvidesPackage{pxjahyper}[2022/04/01 v1.0]
\def\pxhy@pkgname{pxjahyper}
\providecommand{\bxDebug}[1]{}
@@ -48,6 +48,8 @@
\newif\ifpxhy@otfutf
\newif\ifpxhy@otfcid
\newif\ifpxhy@otfmacros
+\let\pxhy@jsclasses@name\relax
+\newif\ifpxhy@jlreq@cls
%--------------------------------------- Package options
@@ -64,10 +66,10 @@
\DeclareOption{nodvidriver}{%
\let\pxhy@driver\pxhy@driver@none
}
-%% modes
-\DeclareOption{none}{%
- \let\pxhy@driver\pxhy@driver@none %FIXME
+\DeclareOption{autodvidriver}{%
+ \let\pxhy@driver\@undefined
}
+%% modes
\DeclareOption{auto}{%
\let\pxhy@driver\@undefined %FIXME
}
@@ -207,6 +209,17 @@
\expandafter\endinput
\fi
+%% Check the document class.
+% jlreq
+\ifpxhy@etex
+ \ifx\jlreqsetup\@undefined\else \pxhy@jlreq@clstrue \fi
+\fi
+% jsclasses
+\@ifclassloaded{jsarticle}{\def\pxhy@jsclasses@name{jsarticle}}{}
+\@ifclassloaded{jsbook}{\def\pxhy@jsclasses@name{jsbook}}{}
+\ifx\bxjs@clsname\@undefined\else \let\pxhy@jsclasses@name\relax \fi
+\ifx\jsc@clsname\@undefined\else \let\pxhy@jsclasses@name\jsc@clsname \fi
+
%% Check for the new hook system.
\@ifl@t@r\fmtversion{2021/11/15}{%
\chardef\pxhy@hook@system=2
@@ -245,11 +258,9 @@
% hyperref 'unicode' is allowed only on upLaTeX.
\ifnum0\ifpxhy@hy@unicode\ifpxhy@uptex\else
\ifx t\pxhy@force@unicode\else1\fi\fi\fi>\z@
- \PackageError\pxhy@pkgname
- {The hyperref 'unicode' mode is not supported\MessageBreak
- on the pTeX engine}%
- {\pxhy@eh@fatal}%
- \expandafter\endinput
+ \PackageWarningNoLine\pxhy@pkgname
+ {The support for the hyperref 'unicode' mode\MessageBreak
+ on the pTeX engine is currently experimental}%
\fi
\ifpxhy@hy@unicode
\pxhy@uniescapefalse
@@ -325,6 +336,12 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J%
\endgroup
}
+%% \pxhy@let@jchar@jc\CS{<jis-code>}
+\def\pxhy@let@jchar@jc#1#2{%
+ \pxhy@get@jchar{\jis"#2}%
+ \let#1\pxhy@jchar
+}
+
%% \pxhy@forcecjktoken
\ifpxhy@uptex
\let\pxhy@forcecjktoken\forcecjktoken
@@ -733,6 +750,17 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J%
}
\fi
+%% \pxhy@let@jchar@uc\CS{<num>}
+\ifx\pxhy@Ux\@undefined
+ \def\pxhy@let@jchar@uc#1#2{%
+ \let#1\noindent % issue a warning
+ }
+\else
+ \def\pxhy@let@jchar@uc#1#2{%
+ \def#1{\pxhy@Ux{#2}}%
+ }
+\fi
+
%--------------------------------------- Support for 'otfutf'
\ifpxhy@otfutf
@@ -801,7 +829,7 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J%
\pxhy@Ux{#1}%
\else
\@nameuse{CID+#2}%
- %\pxhy@geta %FIXME: future change
+ \pxhy@geta
\fi
}
\fi
@@ -1468,6 +1496,7 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J%
\let\inhibitglue\@empty
\let\noautospacing\@empty
\let\noautoxspacing\@empty
+ \let\disinhibitglue\@empty
% pLaTeX core
\let\romanencoding\@gobble
\let\kanjiencoding\@gobble
@@ -1504,6 +1533,58 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J%
% and thus is prepended to pdfstringdefPreHook.
\ltx@GlobalPrependToMacro\pdfstringdefPreHook{\pxhy@disable@commands}
+%% additions for jsclasses
+\ifx\pxhy@jsclasses@name\relax\else
+ \g@addto@macro\pxhy@disable@commands{%
+ \let\HUGE\@empty
+ \pxhy@ifdef@let\maybeblue\@empty
+ }
+\fi
+
+%% additions for jlreq
+\ifpxhy@jlreq@cls
+ % characters
+ \pxhy@let@jchar@jc\pxhy@C@ZWSP{2121}
+ \pxhy@let@jchar@jc\pxhy@C@ZWQM{2129}
+ \pxhy@let@jchar@jc\pxhy@C@ZWEM{212A}
+ %% \pxhy@P@tatechuyoko*{<text>}
+ \def\pxhy@P@tatechuyoko{\pxhy@if@star\@firstofone\@firstofone}
+ %% \pxhy@P@jaspace{<name>}
+ \def\pxhy@P@jaspace#1{\@nameuse{jaspace(arg=#1)}}
+ \@namedef{jaspace(arg=zenkaku)}{\pxhy@C@ZWSP}
+ \@namedef{jaspace(arg=nibu)}{ }
+ \@namedef{jaspace(arg=shibu)}{}
+ % addition
+ \def\pxhy@next#1{%
+ \let\expandafter\noexpand\csname#1\endcsname\noexpand#1}
+ \edef\pxhy@disable@commands{%
+ \unexpanded\expandafter{\pxhy@disable@commands}%
+ \pxhy@next\pxhy@C@ZWSP
+ \pxhy@next\pxhy@C@ZWQM
+ \pxhy@next\pxhy@C@ZWEM
+ \unexpanded{%
+ \let\jafontsize\@gobbletwo
+ \let\jaspace\pxhy@P@jaspace
+ \let\tatechuyoko\pxhy@P@tatechuyoko
+ \let\jidori\@secondoftwo
+ \let\akigumi\@secondoftwo}%
+ }
+\fi
+
+%% additions for ascmac (experimental)
+\@onlypreamble\pxhy@dispatch@dc@ascmac
+\def\pxhy@dispatch@dc@ascmac{%
+ \pxhy@let@jchar@jc\pxhy@P@yen{216F}
+ \pxhy@let@jchar@uc\pxhy@P@return{23CE}
+ \g@addto@macro\pxhy@disable@commands{%
+ \let\keytop\@firstofone
+ \let\yen\pxhy@P@yen
+ \let\return\pxhy@P@return
+ \let\Return\pxhy@P@return
+ }%
+}
+\pxhy@hook@after@package{ascmac}{\pxhy@dispatch@dc@ascmac}
+
\fi
%--------------------------------------- All done
\endinput
diff --git a/language/japanese/pxjahyper/pxjahyper.tex b/language/japanese/pxjahyper/pxjahyper.tex
index ecdeaf166c..18467d4837 100644
--- a/language/japanese/pxjahyper/pxjahyper.tex
+++ b/language/japanese/pxjahyper/pxjahyper.tex
@@ -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 @@ PDF文字列と版面出力の両方に使われるテキスト(節見出し
以下の命令が対象になる。
\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}