summaryrefslogtreecommitdiff
path: root/language
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-08 03:01:09 +0000
committerNorbert Preining <norbert@preining.info>2021-05-08 03:01:09 +0000
commit0f8acc6eb1940c147de1fb17b307dad849cb3915 (patch)
tree396fc6150b43761431485f4e19ee22d376b72922 /language
parentc92d9953347e3bdebc5243c67cf012a2f7a60fb6 (diff)
CTAN sync 202105080301
Diffstat (limited to 'language')
-rw-r--r--language/japanese/pxjahyper/README-ja.md5
-rw-r--r--language/japanese/pxjahyper/README.md1
-rw-r--r--language/japanese/pxjahyper/pxjahyper-ajm.def4
-rw-r--r--language/japanese/pxjahyper/pxjahyper-enc.sty2
-rw-r--r--language/japanese/pxjahyper/pxjahyper.pdfbin116486 -> 116446 bytes
-rw-r--r--language/japanese/pxjahyper/pxjahyper.sty81
-rw-r--r--language/japanese/pxjahyper/pxjahyper.tex4
7 files changed, 68 insertions, 29 deletions
diff --git a/language/japanese/pxjahyper/README-ja.md b/language/japanese/pxjahyper/README-ja.md
index be61cf1b21..2cdec2a99d 100644
--- a/language/japanese/pxjahyper/README-ja.md
+++ b/language/japanese/pxjahyper/README-ja.md
@@ -70,6 +70,11 @@ pxjahyper-enc パッケージ ー 文字コード設定
更新履歴
--------
+ * Version 0.8 〈2021/05/05〉
+ - japanese-otf パッケージに対する実行のタイミングをパッケージ読込
+ の直後に変更した。
+ - (試験的) `(no)papersize` オプション。
+
* Version 0.7b 〈2021/02/26〉
- バグ修正。
diff --git a/language/japanese/pxjahyper/README.md b/language/japanese/pxjahyper/README.md
index 8f7b757210..280544dfc6 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 0.8 〈2021/05/05〉
* Version 0.7b 〈2021/02/26〉
* Version 0.7a 〈2021/02/23〉
* Version 0.7 〈2021/02/13〉
diff --git a/language/japanese/pxjahyper/pxjahyper-ajm.def b/language/japanese/pxjahyper/pxjahyper-ajm.def
index 86be5bc940..2ad165c9c3 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}[2021/02/26 v0.7b]
+\ProvidesFile{pxjahyper-ajm.def}[2021/05/05 v0.8]
%% avoid multiple loading
\csname pxjahyperajmLoaded\endcsname
@@ -645,7 +645,7 @@
%% ad-hoc redefinitions
\pxhy@DeclareMacro{DKunoji}{\UTF{3032}}
-\pxhy@DeclareMacro{KunojiwithBou}{\UTF{3032}}
+\pxhy@DeclareMacro{DKunojiwithBou}{\UTF{3032}}
\pxhy@DeclareMacro{Kunoji}{\UTF{3031}}
\pxhy@DeclareMacro{KunojiwithBou}{\UTF{3031}}
\pxhy@DeclareMacro{Yusuriten}{\CID{16193}}
diff --git a/language/japanese/pxjahyper/pxjahyper-enc.sty b/language/japanese/pxjahyper/pxjahyper-enc.sty
index 967e376624..7c392984b0 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}[2021/02/26 v0.7b]
+\ProvidesPackage{pxjahyper-enc}[2021/05/05 v0.8]
\def\pxhe@pkgname{pxjahyper-enc}
\providecommand{\bxDebug}[1]{}
diff --git a/language/japanese/pxjahyper/pxjahyper.pdf b/language/japanese/pxjahyper/pxjahyper.pdf
index f452d595f3..2876e23aeb 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 e36fcc12d9..b5d470951c 100644
--- a/language/japanese/pxjahyper/pxjahyper.sty
+++ b/language/japanese/pxjahyper/pxjahyper.sty
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper}[2021/02/26 v0.7b]
+\ProvidesPackage{pxjahyper}[2021/05/05 v0.8]
\def\pxhy@pkgname{pxjahyper}
\providecommand{\bxDebug}[1]{}
@@ -36,6 +36,7 @@
\newif\ifpxhy@zerox
\newif\ifpxhy@bigcode
\let\pxhy@bigcode@given\relax
+\newif\ifpxhy@papersize
\chardef\pxhy@driver@none=0
\chardef\pxhy@driver@dvipdfmx=1
\let\pxhy@driver\@undefined
@@ -74,6 +75,12 @@
\DeclareOption{noout2uni}{%
\pxhy@zeroxfalse
}
+\DeclareOption{papersize}{%
+ \pxhy@papersizetrue
+}
+\DeclareOption{nopapersize}{%
+ \pxhy@papersizefalse
+}
\pxhy@bigcodetrue
\DeclareOption{bigcode}{%
\pxhy@bigcodetrue
@@ -198,6 +205,10 @@
\ifpxhy@zerox
\pxhy@tounicodefalse
\fi
+%% pxhy@papersize switch
+\ifnum\pxhy@driver=\pxhy@driver@none
+ \pxhy@papersizefalse
+\fi
% hyperref 'unicode' is allowed only on upLaTeX.
\ifnum0\ifpxhy@hy@unicode\ifpxhy@uptex\else1\fi\fi>\z@
\PackageError\pxhy@pkgname
@@ -271,6 +282,20 @@ pxhy@driver = \the\pxhy@driver^^J%
\let\pxhy@forcecjktoken\relax
\fi
+%% \pxhy@hook@after@package{<package-name>}{<code>}
+\@onlypreamble\pxhy@hook@after@package
+\def\pxhy@hook@after@package#1#2{%
+ \ifpxhy@new@hook@system
+ \@ifpackageloaded{#1}{#2}{%
+ \AddToHook{package/after/#1}{#2}%
+ }%
+ \else
+ \AtBeginDocument{%
+ \@ifpackageloaded{#1}{#2}{}%
+ }%
+ \fi
+}
+
%--------------------------------------- Helpers (e-TeX)
\ifpxhy@etex
@@ -308,6 +333,7 @@ pxhy@driver = \the\pxhy@driver^^J%
\fi
%--------------------------------------- Papersize special adjustment
+\ifpxhy@papersize %<*papersize>
% When the magnification is in effect (i.e. \mag<>1000), hyperref
% emits a papersize special with wrong value. (dvipdfmx interprets
@@ -338,6 +364,7 @@ pxhy@driver = \the\pxhy@driver^^J%
\fi
\fi
+\fi %</papersize>
%--------------------------------------- Hooks to pdfstringdef
%% constants
@@ -482,11 +509,11 @@ pxhy@driver = \the\pxhy@driver^^J%
%--------------------------------------- Support for 'otfcid'
\ifpxhy@otfcid
-%% variables
+%% \pxhy@otfcid@disabled
+% Holds the message if otfcid/otfmacros is unavailable;
+% otherwise equals to \relax.
\@onlypreamble\pxhy@otfcid@disabled
\let\pxhy@otfcid@disabled\relax
-
-%% preparation
\ifpxhy@etoolbox
% check if bxjatoucs is available
\IfFileExists{bxjatoucs.sty}{%
@@ -508,10 +535,10 @@ pxhy@driver = \the\pxhy@driver^^J%
e-TeX extension is unavailable%
}
\fi\fi
+
%% annihilate the ajmacros's own pdfstring process
\ifpxhy@otfmacros\ifx\pxhy@otfcid@disabled\relax
\let\ajRedefine@ajCommands\relax
- \AtBeginDocument{\let\ajRedefine@ajCommands\relax}
\fi\fi
%% \pxhy@CID{<cid>}
@@ -535,11 +562,25 @@ pxhy@driver = \the\pxhy@driver^^J%
%% \pxhy@dispatch@otfcid
\@onlypreamble\pxhy@dispatch@otfcid
\def\pxhy@dispatch@otfcid{%
- \pdfstringdefDisableCommands{%
- \let\CID\pxhy@CID
- }%
- \ifpxhy@otfmacros
- \ifx\ajSnowman\@undefined\else % ajmacros is loaded
+ \global\let\pxhy@dispatch@otfcid\relax
+ \ifx\pxhy@otfcid@disabled\relax % available!
+ \pdfstringdefDisableCommands{%
+ \let\CID\pxhy@CID
+ }%
+ \else
+ \PackageWarningNoLine\pxhy@pkgname
+ {Option 'otfcid'/'otfmacros' is disabled, because\MessageBreak
+ \pxhy@otfcid@disabled}%
+ \pxhy@otfcidfalse
+ \fi
+}
+
+%% \pxhy@dispatch@otfmacros
+\@onlypreamble\pxhy@dispatch@otfmacros
+\def\pxhy@dispatch@otfmacros{%
+ \global\let\pxhy@dispatch@otfmacros\relax
+ \ifx\pxhy@otfcid@disabled\relax % available!
+ \let\ajRedefine@ajCommands\relax
\chardef\pxhy@tmp@orgcc=\catcode`\@
\makeatletter
\InputIfFileExists{pxjahyper-ajm.def}{%
@@ -550,23 +591,15 @@ pxhy@driver = \the\pxhy@driver^^J%
{File 'pxjahyper-ajm.def' not found\@gobble}%
}%
\catcode`\@=\pxhy@tmp@orgcc
- \fi
+ \else \pxhy@otfmacrosfalse
\fi
}
-%% begin-document hook
-\AtBeginDocument{%
- \@ifpackageloaded{otf}{%
- \ifx\pxhy@otfcid@disabled\relax % available!
- \pxhy@dispatch@otfcid
- \else
- \PackageWarningNoLine\pxhy@pkgname
- {Option 'otfcid'/'otfmacros' is disabled, because\MessageBreak
- \pxhy@otfcid@disabled}%
- \pxhy@otfcidfalse
- \fi
- }{}%
-}
+%% enable hooks
+\pxhy@hook@after@package{otf}{\pxhy@dispatch@otfcid}
+\ifpxhy@otfmacros
+ \pxhy@hook@after@package{ajmacros}{\pxhy@dispatch@otfmacros}
+\fi
\fi
%--------------------------------------- Redefine text commands for PD1
diff --git a/language/japanese/pxjahyper/pxjahyper.tex b/language/japanese/pxjahyper/pxjahyper.tex
index e38ea186d9..cc3d182c66 100644
--- a/language/japanese/pxjahyper/pxjahyper.tex
+++ b/language/japanese/pxjahyper/pxjahyper.tex
@@ -6,8 +6,8 @@
\MakeShortVerb{\|}
\usepackage{bxtexlogo}
\bxtexlogoimport{*}
-\newcommand{\PkgVersion}{0.7b}
-\newcommand{\PkgDate}{2021/02/26}
+\newcommand{\PkgVersion}{0.8}
+\newcommand{\PkgDate}{2021/05/05}
\newcommand{\Pkg}[1]{\textsf{#1}}
\newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$}
\newcommand{\Note}{\par\noindent ※}