From 4bac980322b097c17bfa82ad8d78546db134a194 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 30 May 2021 19:56:38 +0000 Subject: pxjahyper (30may21) git-svn-id: svn://tug.org/texlive/trunk@59395 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/platex/pxjahyper/pxjahyper-ajm.def | 2 +- .../tex/platex/pxjahyper/pxjahyper-enc.sty | 2 +- .../tex/platex/pxjahyper/pxjahyper-uni.def | 104 +++++++++++++++++++++ .../texmf-dist/tex/platex/pxjahyper/pxjahyper.sty | 7 +- 4 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def (limited to 'Master/texmf-dist/tex/platex') 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 % + +%% 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 } } -- cgit v1.2.3