summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-07 20:14:04 +0000
committerKarl Berry <karl@freefriends.org>2021-05-07 20:14:04 +0000
commit66984d3cd77715bfd26af835ca83decb560110f5 (patch)
treef0cfb020d346b6fa50e2e10f04768a867f03fad6 /Master
parent59eb633920c141ac119caea66e92d37f67631fba (diff)
pxjahyper (7may21)
git-svn-id: svn://tug.org/texlive/trunk@59116 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/platex/pxjahyper/README-ja.md5
-rw-r--r--Master/texmf-dist/doc/platex/pxjahyper/README.md1
-rw-r--r--Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdfbin116486 -> 116446 bytes
-rw-r--r--Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex4
-rw-r--r--Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def4
-rw-r--r--Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty2
-rw-r--r--Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty81
7 files changed, 68 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md b/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
index be61cf1b214..2cdec2a99d4 100644
--- a/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
+++ b/Master/texmf-dist/doc/platex/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/Master/texmf-dist/doc/platex/pxjahyper/README.md b/Master/texmf-dist/doc/platex/pxjahyper/README.md
index 8f7b7572103..280544dfc64 100644
--- a/Master/texmf-dist/doc/platex/pxjahyper/README.md
+++ b/Master/texmf-dist/doc/platex/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/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
index f452d595f32..2876e23aeb6 100644
--- a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
+++ b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
index e38ea186d9e..cc3d182c66b 100644
--- a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
+++ b/Master/texmf-dist/doc/platex/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 ※}
diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
index 86be5bc940f..2ad165c9c31 100644
--- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
+++ b/Master/texmf-dist/tex/platex/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/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
index 967e3766249..7c392984b0f 100644
--- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
+++ b/Master/texmf-dist/tex/platex/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/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
index e36fcc12d95..b5d470951c4 100644
--- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
+++ b/Master/texmf-dist/tex/platex/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