texlive[59395] Master/texmf-dist: pxjahyper (30may21)

commits+karl at tug.org commits+karl at tug.org
Sun May 30 21:56:38 CEST 2021


Revision: 59395
          http://tug.org/svn/texlive?view=revision&revision=59395
Author:   karl
Date:     2021-05-30 21:56:38 +0200 (Sun, 30 May 2021)
Log Message:
-----------
pxjahyper (30may21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
    trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md
    trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
    trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
    trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
    trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
    trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def

Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/README-ja.md	2021-05-30 19:56:38 UTC (rev 59395)
@@ -70,6 +70,10 @@
 更新履歴
 --------
 
+  * Version 0.9b 〈2021/05/29〉
+      - PDF 文字列中で pxbabel の `\UTFJ` をサポート。
+      - モジュール pxjahyper-uni.def を追加。
+
   * Version 0.9a 〈2021/05/11〉
       - バグ修正。
 

Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/README.md	2021-05-30 19:56:38 UTC (rev 59395)
@@ -52,6 +52,7 @@
 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〉

Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex
===================================================================
--- trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/doc/platex/pxjahyper/pxjahyper.tex	2021-05-30 19:56:38 UTC (rev 59395)
@@ -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}
 
 %===========================================================

Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-ajm.def	2021-05-30 19:56:38 UTC (rev 59395)
@@ -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

Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-enc.sty	2021-05-30 19:56:38 UTC (rev 59395)
@@ -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 at pkgname{pxjahyper-enc}
 \providecommand{\bxDebug}[1]{}
 

Added: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def	2021-05-30 19:56:38 UTC (rev 59395)
@@ -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 at tmpa#1{\@backslashchar 000#1}
+\ifx\HyPsd at Char\pxhy at 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 at Char#1{%
+    \ifnum`#1<128 %
+      \@backslashchar 000#1%
+    \else
+      \ifnum`#1<65536 %
+        \expandafter\HyPsd at CharTwoByte\number`#1!%
+      \else
+        \expandafter\expandafter\expandafter\HyPsd at CharSurrogate
+        \intcalcSub{`#1}{65536}!%
+      \fi
+    \fi
+  }%
+  \def\HyPsd at CharTwoByte#1!{%
+    \expandafter\expandafter\expandafter\HyPsd at CharOctByte
+    \IntCalcDiv#1!256!!%
+    \expandafter\expandafter\expandafter\HyPsd at CharOctByte
+    \IntCalcMod#1!256!!%
+  }%
+  \def\HyPsd at CharOctByte#1!{%
+    \@backslashchar
+    \IntCalcDiv#1!64!%
+    \intcalcDiv{\IntCalcMod#1!64!}{8}%
+    \IntCalcMod#1!8!%
+  }%
+  \def\HyPsd at CharSurrogate#1!{%
+    \@backslashchar 33%
+    \IntCalcDiv#1!262144!%
+    \expandafter\expandafter\expandafter\HyPsd at CharOctByte
+    \intcalcDiv{\IntCalcMod#1!262144!}{1024}!%
+    \@backslashchar 33%
+    \expandafter\expandafter\expandafter\IntCalcAdd
+    \intcalcDiv{\IntCalcMod#1!1024!}{256}!4!%
+    \expandafter\expandafter\expandafter\HyPsd at CharOctByte
+    \IntCalcMod#1!256!!%
+  }%
+%%%%END
+
+\ifnum\jis"2121="3000 \else             %<*pTeX>
+  \def\HyPsd at Char#1{%
+    \ifnum`#1<128 %
+      \@backslashchar 000#1%
+    \else\ifnum`#1<256 %
+      \expandafter\HyPsd at CharTwoByte\number`#1!%
+    \else
+      \expandafter\HyPsd at CharTwoByte\number\pxhy at to@ucs{`#1}!%
+    \fi\fi
+  }%
+  \def\pxhy at to@ucs#1{"FFFD}
+  \ifnum\jis"2121="8140 % sjis
+    \let\pxhy at to@ucs\bxjaSjisToUcs
+  \else\ifnum\jis"2121="A1A1 % euc
+    \let\pxhy at 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


Property changes on: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper-uni.def
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
===================================================================
--- trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty	2021-05-30 19:56:07 UTC (rev 59394)
+++ trunk/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty	2021-05-30 19:56:38 UTC (rev 59395)
@@ -10,7 +10,7 @@
 
 %% package declaration
 \NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper}[2021/05/11 v0.9a]
+\ProvidesPackage{pxjahyper}[2021/05/29 v0.9b]
 \def\pxhy at pkgname{pxjahyper}
 \providecommand{\bxDebug}[1]{}
 
@@ -666,6 +666,9 @@
 \ifx\pxhy at Ux\@undefined\else
   \pdfstringdefDisableCommands{%
     \let\Ux\pxhy at Ux
+    % bxbase
+    \let\bxUx\pxhy at Ux
+    \let\bxUI\pxhy at Ux
   }
 \fi
 
@@ -696,6 +699,8 @@
     \let\UTFK\pxhy at UTF
     \let\UTFC\pxhy at UTF
     \let\UTFT\pxhy at UTF
+    % pxbabel
+    \let\pxUTFJ\pxhy at UTF
   }
 }
 



More information about the tex-live-commits mailing list.