diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-30 19:56:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-30 19:56:38 +0000 |
commit | 4bac980322b097c17bfa82ad8d78546db134a194 (patch) | |
tree | 404ea0a693821f36047e4fd77b0b538d43133d4b /Master | |
parent | ab310bc15e3e23b0626e3d4df145284c4f3645ed (diff) |
pxjahyper (30may21)
git-svn-id: svn://tug.org/texlive/trunk@59395 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/platex/pxjahyper/README-ja.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/platex/pxjahyper/README.md | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf | bin | 127012 -> 127370 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex | 11 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def | 104 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty | 7 |
8 files changed, 121 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md b/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md index 14c1a44e1cc..73a6d0f554b 100644 --- a/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md +++ b/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md @@ -70,6 +70,10 @@ pxjahyper-enc パッケージ ー 文字コード設定 更新履歴 -------- + * Version 0.9b 〈2021/05/29〉 + - PDF 文字列中で pxbabel の `\UTFJ` をサポート。 + - モジュール pxjahyper-uni.def を追加。 + * Version 0.9a 〈2021/05/11〉 - バグ修正。 diff --git a/Master/texmf-dist/doc/platex/pxjahyper/README.md b/Master/texmf-dist/doc/platex/pxjahyper/README.md index 439a0629b14..d10519799fb 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.9b 〈2021/05/29〉 * Version 0.9a 〈2021/05/11〉 * Version 0.9 〈2021/05/10〉 * Version 0.8 〈2021/05/05〉 diff --git a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf Binary files differindex 586bdacd1f7..02224f5d8b5 100644 --- a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf +++ b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf diff --git a/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex b/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex index f0f2fa15ca0..aaf7e2cb658 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.9a} -\newcommand{\PkgDate}{2021/05/11} +\newcommand{\PkgVersion}{0.9b} +\newcommand{\PkgDate}{2021/05/29} \newcommand{\Pkg}[1]{\textsf{#1}} \newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$} \newcommand{\Note}{\par\noindent ※} @@ -107,12 +107,9 @@ |bigcode| の否定。 \Note 0.3a版より既定を |bigcode| に変更した。 \item |papersize|(既定)\Means - {\upTeX}でのToUnicode CMapとして既定のUTF8-UCSの代わりに\ - UTF8-UTF16を用いる。 - (当該のファイルが存在する必要がある。) + papersize specialの補正を有効にする。 \item |nopapersize|\Means - |bigcode| の否定。 - \Note 0.3a版より既定を |bigcode| に変更した。 + |papersize| の否定。 \end{itemize} %=========================================================== diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def index 60a00b1058c..976439c0ffa 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/05/11 v0.9a] +\ProvidesFile{pxjahyper-ajm.def}[2021/05/29 v0.9b] %% avoid multiple loading \csname pxjahyperajmLoaded\endcsname diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty index 30fb2845b79..fc33bc6fa36 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/05/11 v0.9a] +\ProvidesPackage{pxjahyper-enc}[2021/05/29 v0.9b] \def\pxhe@pkgname{pxjahyper-enc} \providecommand{\bxDebug}[1]{} diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def new file mode 100644 index 00000000000..54671ca1909 --- /dev/null +++ b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def @@ -0,0 +1,104 @@ +%% +%% This is file 'pxjahyper-uni.def'. +%% +%% Copyright (c) 2012-2021 Takayuki YATO (aka. "ZR") +%% GitHub: https://github.com/zr-tex8r +%% Twitter: @zr_tex8r +%% +%% This package is distributed under the MIT License. +%% + +%% package declaration +\NeedsTeXFormat{pLaTeX2e} +\ProvidesFile{pxjahyper-uni.def}[2021/05/29 v0.9b] +\providecommand{\bxDebug}[1]{} + +%--------------------------------------- environment check + +\@ifpackageloaded{hyperref}{}{%else + \bxDebug{pxjahyper-uni: hyperref not yet loaded}% + \endinput} + +%% if already redefined, then okay +\def\pxhy@tmpa#1{\@backslashchar 000#1} +\ifx\HyPsd@Char\pxhy@tmpa\else + \bxDebug{pxjahyper-uni: already redefined} + \let\jsCheckHyperrefUnicode\@empty +\expandafter\endinput\fi\relax + +%% if this is pTeX and pxjatoucs is not loaded, then quit +\if \ifnum\jis"2121="3000 F% + \else\ifx\bxjaSjisToUcs\@undefined T\else F% + \fi\fi T% + \bxDebug{pxjahyper-uni: bxjatoucs not yet loaded} +\expandafter\endinput\fi\relax + +%--------------------------------------- the patch + +%% The following code is taken from hyperref.sty. +%%%%BEGIN + \def\HyPsd@Char#1{% + \ifnum`#1<128 % + \@backslashchar 000#1% + \else + \ifnum`#1<65536 % + \expandafter\HyPsd@CharTwoByte\number`#1!% + \else + \expandafter\expandafter\expandafter\HyPsd@CharSurrogate + \intcalcSub{`#1}{65536}!% + \fi + \fi + }% + \def\HyPsd@CharTwoByte#1!{% + \expandafter\expandafter\expandafter\HyPsd@CharOctByte + \IntCalcDiv#1!256!!% + \expandafter\expandafter\expandafter\HyPsd@CharOctByte + \IntCalcMod#1!256!!% + }% + \def\HyPsd@CharOctByte#1!{% + \@backslashchar + \IntCalcDiv#1!64!% + \intcalcDiv{\IntCalcMod#1!64!}{8}% + \IntCalcMod#1!8!% + }% + \def\HyPsd@CharSurrogate#1!{% + \@backslashchar 33% + \IntCalcDiv#1!262144!% + \expandafter\expandafter\expandafter\HyPsd@CharOctByte + \intcalcDiv{\IntCalcMod#1!262144!}{1024}!% + \@backslashchar 33% + \expandafter\expandafter\expandafter\IntCalcAdd + \intcalcDiv{\IntCalcMod#1!1024!}{256}!4!% + \expandafter\expandafter\expandafter\HyPsd@CharOctByte + \IntCalcMod#1!256!!% + }% +%%%%END + +\ifnum\jis"2121="3000 \else %<*pTeX> + \def\HyPsd@Char#1{% + \ifnum`#1<128 % + \@backslashchar 000#1% + \else\ifnum`#1<256 % + \expandafter\HyPsd@CharTwoByte\number`#1!% + \else + \expandafter\HyPsd@CharTwoByte\number\pxhy@to@ucs{`#1}!% + \fi\fi + }% + \def\pxhy@to@ucs#1{"FFFD} + \ifnum\jis"2121="8140 % sjis + \let\pxhy@to@ucs\bxjaSjisToUcs + \else\ifnum\jis"2121="A1A1 % euc + \let\pxhy@to@ucs\bxjaEucToUcs + \fi\fi +\fi %</pTeX> + +%% set flag +\let\pxHyperrefUnicodePatched=t +\bxDebug{pxjahyper-uni: patched} + +%% disable the verification of bxjscls +\let\jsCheckHyperrefUnicode\@empty + +%--------------------------------------- done +\endinput +%% EOF diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty index 62705205c70..f23d94a2231 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/05/11 v0.9a] +\ProvidesPackage{pxjahyper}[2021/05/29 v0.9b] \def\pxhy@pkgname{pxjahyper} \providecommand{\bxDebug}[1]{} @@ -666,6 +666,9 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \ifx\pxhy@Ux\@undefined\else \pdfstringdefDisableCommands{% \let\Ux\pxhy@Ux + % bxbase + \let\bxUx\pxhy@Ux + \let\bxUI\pxhy@Ux } \fi @@ -696,6 +699,8 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \let\UTFK\pxhy@UTF \let\UTFC\pxhy@UTF \let\UTFT\pxhy@UTF + % pxbabel + \let\pxUTFJ\pxhy@UTF } } |