summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-15 22:20:58 +0000
committerKarl Berry <karl@freefriends.org>2018-01-15 22:20:58 +0000
commit7e250440b6690a5eabcd76bf194e47493b401e1e (patch)
tree531f5eb16bf1e744c7b856c705671e383f704a99 /Master/texmf-dist/tex/platex
parentc3708ec910865a96322583a3d0498622c367b430 (diff)
pxjahyper (15jan18)
git-svn-id: svn://tug.org/texlive/trunk@46321 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/platex')
-rw-r--r--Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty286
1 files changed, 276 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
index 691f0f3efcc..647f5e23d16 100644
--- a/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
+++ b/Master/texmf-dist/tex/platex/pxjahyper/pxjahyper.sty
@@ -1,7 +1,7 @@
%%
%% This is file 'pxjahyper.sty'.
%%
-%% Copyright (c) 2017 Takayuki YATO (aka. "ZR")
+%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxjahyper}[2017/10/17 v0.3a]
+\ProvidesPackage{pxjahyper}[2018/01/13 v0.3b]
%% error messages
\def\pxhy@pkgname{pxjahyper}
@@ -18,7 +18,9 @@
\def\pxhy@error{\PackageError\pxhy@pkgname}
\@onlypreamble\pxhy@fatal
\def\pxhy@fatal#1#2{%
- \pxhy@error{#1}{#2Package loading is aborted right now.}%
+ \PackageError\pxhy@pkgname
+ {#1}%
+ {#2Package loading is aborted right now.}%
}
\providecommand{\bxDebug}[1]{}
@@ -36,6 +38,7 @@
\chardef\pxhy@driver@dvipdfmx=1
\let\pxhy@driver\@undefined
\newif\ifpxhy@hy@unicode
+\newif\ifpxhy@jacommentline
%--------------------------------------- Package options
@@ -72,8 +75,14 @@
\DeclareOption{nobigcode}{%
\pxhy@bigcodefalse
}
+\DeclareOption{jacommentline}{%
+ \pxhy@jacommentlinetrue
+}
+\DeclareOption{nojacommentline}{%
+ \pxhy@jacommentlinefalse
+}
\ExecuteOptions{%
- auto,tounicode,noout2uni,bigcode%
+ auto,tounicode,noout2uni,bigcode,jacommentline%
}
\ProcessOptions*
@@ -147,10 +156,10 @@
\pxhy@tounicodefalse
\fi
% hyperref 'unicode' is allowed only on upLaTeX.
-\ifpxhy@hy@unicode\ifpxhy@uptex\else
+\ifnum0\ifpxhy@hy@unicode\ifpxhy@uptex\else1\fi\fi>\z@
\pxhy@fatal{hyperref 'unicode' mode is not supported}{}%
\expandafter\endinput
-\fi\fi
+\fi
\iffalse
\typeout{%
@@ -474,9 +483,10 @@ pxhy@driver = \the\pxhy@driver^^J%
\DeclareTextCommand{\textfl}{PD1}{fl}
\DeclareTextCommand{\IJ}{PD1}{IJ}
\DeclareTextCommand{\ij}{PD1}{ij}
-\pxDeclarePdfTextCommand{\textcelsius}{216E}{2103}
+\DeclareTextCommand{\textspace}{PD1}{\040}
+\DeclareTextCommand{\textquotesingle}{PD1}{\047}
-%%%%%%%%
+%%[A] The characters in PdfDocEncoding (except ASCII).
\pxDeclarePdfTextCommand{\textasciibreve}{}{02D8}
\pxDeclarePdfTextCommand{\textasciicaron}{}{02C7}
\pxDeclarePdfTextCommand{\textdotaccent}{}{02D9}
@@ -534,7 +544,7 @@ pxhy@driver = \the\pxhy@driver^^J%
\pxDeclarePdfTextCommand{\texttwosuperior}{}{00B2}
\pxDeclarePdfTextCommand{\textthreesuperior}{}{00B3}
\pxDeclarePdfTextCommand{\textacute}{212D}{00B4}
-\pxDeclarePdfTextCommand{\textmu}{}{00B5}
+%\pxDeclarePdfTextCommand{\textmu}{}{00B5}
\pxDeclarePdfTextCommand{\textparagraph}{2279}{00B6}
\pxDeclarePdfTextCommand{\textperiodcentered}{}{00B7}
\pxDeclarePdfTextCommand{\textcedilla}{}{00B8}
@@ -614,8 +624,232 @@ pxhy@driver = \the\pxhy@driver^^J%
\pxDeclarePdfTextComposite{\'}{y}{}{00FD}
\pxDeclarePdfTextCommand{\th}{}{00FE}
\pxDeclarePdfTextComposite{\"}{y}{}{00FF}
+\pxDeclarePdfTextCommand{\textcelsius}{216E}{2103}
%%%%%%%%
+%%[B] Aliases to [A].
+\pxDeclarePdfTextCommand{\copyright}{}{00A9}
+\pxDeclarePdfTextCommand{\textflqq}{}{00AB}
+\pxDeclarePdfTextCommand{\flqq}{}{00AB}
+\pxDeclarePdfTextCommand{\textneg}{224C}{00AC}
+\pxDeclarePdfTextCommand{\textpm}{215E}{00B1}
+\pxDeclarePdfTextCommand{\textcdot}{}{00B7}
+\pxDeclarePdfTextCommand{\textfrqq}{}{00BB}
+\pxDeclarePdfTextCommand{\frqq}{}{00BB}
+\pxDeclarePdfTextCommand{\texttimes}{215F}{00D7}
+\pxDeclarePdfTextCommand{\textdiv}{2160}{00F7}
+\pxDeclarePdfTextCommand{\textgrq}{2146}{2018}
+\pxDeclarePdfTextCommand{\textglq}{}{201A}
+\pxDeclarePdfTextCommand{\textquotesinglbase}{}{201A}
+\pxDeclarePdfTextCommand{\textgrqq}{2148}{201C}
+\pxDeclarePdfTextCommand{\crqq}{2148}{201C}
+\pxDeclarePdfTextCommand{\textglqq}{}{201E}
+\pxDeclarePdfTextCommand{\clqq}{}{201E}
+\pxDeclarePdfTextCommand{\textquotedblbase}{}{201E}
+\pxDeclarePdfTextCommand{\textflq}{}{2039}
+\pxDeclarePdfTextCommand{\textfrq}{}{203A}
+\pxDeclarePdfTextCommand{\textEuro}{}{20AC}
+%%
+
+%%[C] The characters that are included both in JIS X 0213
+% and some of the TeX encodings.
+% Note: The entries marked with (*) involves non-standard mappings.
+\pxDeclarePdfTextCommand{\textbardbl}{2142}{2016}
+\pxDeclarePdfTextCommand{\textlangle}{2152}{3008}%(*)2329
+\pxDeclarePdfTextCommand{\textrangle}{2153}{3009}%(*)232A
+\pxDeclarePdfTextCommand{\textxleq}{2165}{2266}%(*)2264
+\pxDeclarePdfTextCommand{\textxgeq}{2166}{2267}%(*)2265
+\pxDeclarePdfTextCommand{\textinfty}{2167}{221E}
+\pxDeclarePdfTextCommand{\textborn}{217A}{2605}
+\pxDeclarePdfTextCommand{\textreferencemark}{2228}{203B}
+\pxDeclarePdfTextCommand{\textrightarrow}{222A}{2192}
+\pxDeclarePdfTextCommand{\textleftarrow}{222B}{2190}
+\pxDeclarePdfTextCommand{\textuparrow}{222C}{2191}
+\pxDeclarePdfTextCommand{\textdownarrow}{222D}{2193}
+\pxDeclarePdfTextCommand{\textsurd}{2265}{221A}
+\pxDeclarePdfTextCommand{\textapprox}{}{2245}
+\pxDeclarePdfTextCommand{\textmusicalnote}{2276}{266A}
+\pxDeclarePdfTextCommand{\textbigcircle}{227E}{25EF}
+\pxDeclarePdfTextCommand{\textopenbullet}{}{25E6}
+\pxDeclarePdfTextCommand{\textell}{}{2113}
+\pxDeclarePdfTextCommand{\textmho}{}{2127}
+\pxDeclarePdfTextCommand{\textAlpha}{2621}{0391}
+\pxDeclarePdfTextCommand{\textBeta}{2622}{0392}
+\pxDeclarePdfTextCommand{\textGamma}{2623}{0393}
+\pxDeclarePdfTextCommand{\textDelta}{2624}{0394}
+\pxDeclarePdfTextCommand{\textEpsilon}{2625}{0395}
+\pxDeclarePdfTextCommand{\textZeta}{2626}{0396}
+\pxDeclarePdfTextCommand{\textEta}{2627}{0397}
+\pxDeclarePdfTextCommand{\textTheta}{2628}{0398}
+\pxDeclarePdfTextCommand{\textIota}{2629}{0399}
+\pxDeclarePdfTextCommand{\textKappa}{262A}{039A}
+\pxDeclarePdfTextCommand{\textLambda}{262B}{039B}
+\pxDeclarePdfTextCommand{\textMu}{262C}{039C}
+\pxDeclarePdfTextCommand{\textNu}{262D}{039D}
+\pxDeclarePdfTextCommand{\textXi}{262E}{039E}
+\pxDeclarePdfTextCommand{\textOmicron}{262F}{039F}
+\pxDeclarePdfTextCommand{\textPi}{2630}{03A0}
+\pxDeclarePdfTextCommand{\textRho}{2631}{03A1}
+\pxDeclarePdfTextCommand{\textSigma}{2632}{03A3}
+\pxDeclarePdfTextCommand{\textTau}{2633}{03A4}
+\pxDeclarePdfTextCommand{\textUpsilon}{2634}{03A5}
+\pxDeclarePdfTextCommand{\textPhi}{2635}{03A6}
+\pxDeclarePdfTextCommand{\textChi}{2636}{03A7}
+\pxDeclarePdfTextCommand{\textPsi}{2637}{03A8}
+\pxDeclarePdfTextCommand{\textOmega}{2638}{03A9}
+\pxDeclarePdfTextCommand{\textohm}{2638}{03A9}%(*)2126
+\pxDeclarePdfTextCommand{\textalpha}{2641}{03B1}
+\pxDeclarePdfTextCommand{\textbeta}{2642}{03B2}
+\pxDeclarePdfTextCommand{\textgamma}{2643}{03B3}
+\pxDeclarePdfTextCommand{\textdelta}{2644}{03B4}
+\pxDeclarePdfTextCommand{\textepsilon}{2645}{03B5}
+\pxDeclarePdfTextCommand{\textzeta}{2646}{03B6}
+\pxDeclarePdfTextCommand{\texteta}{2647}{03B7}
+\pxDeclarePdfTextCommand{\texttheta}{2648}{03B8}
+\pxDeclarePdfTextCommand{\textiota}{2649}{03B9}
+\pxDeclarePdfTextCommand{\textkappa}{264A}{03BA}
+\pxDeclarePdfTextCommand{\textlambda}{264B}{03BB}
+\pxDeclarePdfTextCommand{\textmu}{264C}{03BC}
+\pxDeclarePdfTextCommand{\textnu}{264D}{03BD}
+\pxDeclarePdfTextCommand{\textxi}{264E}{03BE}
+\pxDeclarePdfTextCommand{\textomicron}{264F}{03BF}
+\pxDeclarePdfTextCommand{\textpi}{2650}{03C0}
+\pxDeclarePdfTextCommand{\textrho}{2651}{03C1}
+\pxDeclarePdfTextCommand{\textsigma}{2652}{03C3}
+\pxDeclarePdfTextCommand{\texttau}{2653}{03C4}
+\pxDeclarePdfTextCommand{\textupsilon}{2654}{03C5}
+\pxDeclarePdfTextCommand{\textphi}{2655}{03C6}
+\pxDeclarePdfTextCommand{\textchi}{2656}{03C7}
+\pxDeclarePdfTextCommand{\textpsi}{2657}{03C8}
+\pxDeclarePdfTextCommand{\textomega}{2658}{03C9}
+\pxDeclarePdfTextCommand{\textvarsigma}{}{03C2}
+\pxDeclarePdfTextCommand{\textfinalsigma}{}{03C2}
+\pxDeclarePdfTextCommand{\CYRA}{2721}{0410}
+\pxDeclarePdfTextCommand{\CYRB}{2722}{0411}
+\pxDeclarePdfTextCommand{\CYRV}{2723}{0412}
+\pxDeclarePdfTextCommand{\CYRG}{2724}{0413}
+\pxDeclarePdfTextCommand{\CYRD}{2725}{0414}
+\pxDeclarePdfTextCommand{\CYRE}{2726}{0415}
+\pxDeclarePdfTextCommand{\CYRYO}{2727}{0401}
+\pxDeclarePdfTextCommand{\CYRZH}{2728}{0416}
+\pxDeclarePdfTextCommand{\CYRZ}{2729}{0417}
+\pxDeclarePdfTextCommand{\CYRI}{272A}{0418}
+\pxDeclarePdfTextCommand{\CYRISHRT}{272B}{0419}
+\pxDeclarePdfTextCommand{\CYRK}{272C}{041A}
+\pxDeclarePdfTextCommand{\CYRL}{272D}{041B}
+\pxDeclarePdfTextCommand{\CYRM}{272E}{041C}
+\pxDeclarePdfTextCommand{\CYRN}{272F}{041D}
+\pxDeclarePdfTextCommand{\CYRO}{2730}{041E}
+\pxDeclarePdfTextCommand{\CYRP}{2731}{041F}
+\pxDeclarePdfTextCommand{\CYRR}{2732}{0420}
+\pxDeclarePdfTextCommand{\CYRS}{2733}{0421}
+\pxDeclarePdfTextCommand{\CYRT}{2734}{0422}
+\pxDeclarePdfTextCommand{\CYRU}{2735}{0423}
+\pxDeclarePdfTextCommand{\CYRF}{2736}{0424}
+\pxDeclarePdfTextCommand{\CYRH}{2737}{0425}
+\pxDeclarePdfTextCommand{\CYRC}{2738}{0426}
+\pxDeclarePdfTextCommand{\CYRCH}{2739}{0427}
+\pxDeclarePdfTextCommand{\CYRSH}{273A}{0428}
+\pxDeclarePdfTextCommand{\CYRSHCH}{273B}{0429}
+\pxDeclarePdfTextCommand{\CYRHRDSN}{273C}{042A}
+\pxDeclarePdfTextCommand{\CYRERY}{273D}{042B}
+\pxDeclarePdfTextCommand{\CYRSFTSN}{273E}{042C}
+\pxDeclarePdfTextCommand{\CYREREV}{273F}{042D}
+\pxDeclarePdfTextCommand{\CYRYU}{2740}{042E}
+\pxDeclarePdfTextCommand{\CYRYA}{2741}{042F}
+\pxDeclarePdfTextCommand{\cyra}{2751}{0430}
+\pxDeclarePdfTextCommand{\cyrb}{2752}{0431}
+\pxDeclarePdfTextCommand{\cyrv}{2753}{0432}
+\pxDeclarePdfTextCommand{\cyrg}{2754}{0433}
+\pxDeclarePdfTextCommand{\cyrd}{2755}{0434}
+\pxDeclarePdfTextCommand{\cyre}{2756}{0435}
+\pxDeclarePdfTextCommand{\cyryo}{2757}{0451}
+\pxDeclarePdfTextCommand{\cyrzh}{2758}{0436}
+\pxDeclarePdfTextCommand{\cyrz}{2759}{0437}
+\pxDeclarePdfTextCommand{\cyri}{275A}{0438}
+\pxDeclarePdfTextCommand{\cyrishrt}{275B}{0439}
+\pxDeclarePdfTextCommand{\cyrk}{275C}{043A}
+\pxDeclarePdfTextCommand{\cyrl}{275D}{043B}
+\pxDeclarePdfTextCommand{\cyrm}{275E}{043C}
+\pxDeclarePdfTextCommand{\cyrn}{275F}{043D}
+\pxDeclarePdfTextCommand{\cyro}{2760}{043E}
+\pxDeclarePdfTextCommand{\cyrp}{2761}{043F}
+\pxDeclarePdfTextCommand{\cyrr}{2762}{0440}
+\pxDeclarePdfTextCommand{\cyrs}{2763}{0441}
+\pxDeclarePdfTextCommand{\cyrt}{2764}{0442}
+\pxDeclarePdfTextCommand{\cyru}{2765}{0443}
+\pxDeclarePdfTextCommand{\cyrf}{2766}{0444}
+\pxDeclarePdfTextCommand{\cyrh}{2767}{0445}
+\pxDeclarePdfTextCommand{\cyrc}{2768}{0446}
+\pxDeclarePdfTextCommand{\cyrch}{2769}{0447}
+\pxDeclarePdfTextCommand{\cyrsh}{276A}{0448}
+\pxDeclarePdfTextCommand{\cyrshch}{276B}{0449}
+\pxDeclarePdfTextCommand{\cyrhrdsn}{276C}{044A}
+\pxDeclarePdfTextCommand{\cyrery}{276D}{044B}
+\pxDeclarePdfTextCommand{\cyrsftsn}{276E}{044C}
+\pxDeclarePdfTextCommand{\cyrerev}{276F}{044D}
+\pxDeclarePdfTextCommand{\cyryu}{2770}{044E}
+\pxDeclarePdfTextCommand{\cyrya}{2771}{044F}
+\pxDeclarePdfTextCommand{\textvisiblespace}{}{2423}
+\pxDeclarePdfTextComposite{\=}{A}{}{0100}
+\pxDeclarePdfTextComposite{\=}{I}{}{012A}
+\pxDeclarePdfTextComposite{\=}{U}{}{016A}
+\pxDeclarePdfTextComposite{\=}{E}{}{0112}
+\pxDeclarePdfTextComposite{\=}{O}{}{014C}
+\pxDeclarePdfTextComposite{\=}{a}{}{0101}
+\pxDeclarePdfTextComposite{\=}{i}{}{012B}
+\pxDeclarePdfTextComposite{\=}{u}{}{016B}
+\pxDeclarePdfTextComposite{\=}{e}{}{0113}
+\pxDeclarePdfTextComposite{\=}{o}{}{014D}
+\pxDeclarePdfTextComposite{\k}{A}{}{0104}
+\pxDeclarePdfTextComposite{\v}{L}{}{013D}
+\pxDeclarePdfTextComposite{\'}{S}{}{015A}
+\pxDeclarePdfTextComposite{\c}{S}{}{015E}
+\pxDeclarePdfTextComposite{\v}{T}{}{0164}
+\pxDeclarePdfTextComposite{\'}{Z}{}{0179}
+\pxDeclarePdfTextComposite{\.}{Z}{}{017B}
+\pxDeclarePdfTextComposite{\k}{a}{}{0105}
+\pxDeclarePdfTextComposite{\v}{l}{}{013E}
+\pxDeclarePdfTextComposite{\'}{s}{}{015B}
+\pxDeclarePdfTextComposite{\c}{s}{}{015F}
+\pxDeclarePdfTextComposite{\v}{t}{}{0165}
+\pxDeclarePdfTextComposite{\'}{z}{}{017A}
+\pxDeclarePdfTextComposite{\.}{z}{}{017C}
+\pxDeclarePdfTextComposite{\'}{R}{}{0154}
+\pxDeclarePdfTextComposite{\u}{A}{}{0102}
+\pxDeclarePdfTextComposite{\'}{L}{}{0139}
+\pxDeclarePdfTextComposite{\'}{C}{}{0106}
+\pxDeclarePdfTextComposite{\v}{C}{}{010C}
+\pxDeclarePdfTextComposite{\k}{E}{}{0118}
+\pxDeclarePdfTextComposite{\v}{E}{}{011A}
+\pxDeclarePdfTextComposite{\v}{D}{}{010E}
+\pxDeclarePdfTextComposite{\'}{N}{}{0143}
+\pxDeclarePdfTextComposite{\v}{N}{}{0147}
+\pxDeclarePdfTextComposite{\H}{O}{}{0150}
+\pxDeclarePdfTextComposite{\v}{R}{}{0158}
+\pxDeclarePdfTextComposite{\r}{U}{}{016E}
+\pxDeclarePdfTextComposite{\H}{U}{}{0170}
+\pxDeclarePdfTextComposite{\c}{T}{}{0162}
+\pxDeclarePdfTextComposite{\'}{r}{}{0155}
+\pxDeclarePdfTextComposite{\u}{a}{}{0103}
+\pxDeclarePdfTextComposite{\'}{l}{}{013A}
+\pxDeclarePdfTextComposite{\'}{c}{}{0107}
+\pxDeclarePdfTextComposite{\v}{c}{}{010D}
+\pxDeclarePdfTextComposite{\k}{e}{}{0119}
+\pxDeclarePdfTextComposite{\v}{e}{}{011B}
+\pxDeclarePdfTextComposite{\v}{d}{}{010F}
+\pxDeclarePdfTextCommand{\dj}{}{0111}
+\pxDeclarePdfTextComposite{\'}{n}{}{0144}
+\pxDeclarePdfTextComposite{\v}{n}{}{0148}
+\pxDeclarePdfTextComposite{\H}{o}{}{0151}
+\pxDeclarePdfTextComposite{\v}{r}{}{0159}
+\pxDeclarePdfTextComposite{\r}{u}{}{016F}
+\pxDeclarePdfTextComposite{\H}{u}{}{0171}
+\pxDeclarePdfTextComposite{\c}{t}{}{0163}
+\pxDeclarePdfTextCommand{\ng}{}{014B}
+\pxDeclarePdfTextCommand{\textnumero}{}{2116}
+%%
+
% Give a substitute definition to characters that appear as
% ligatures, since otherwise hyperref leaves some garbage in
% output pdf-strings when such ligatures appear.
@@ -630,7 +864,9 @@ pxhy@driver = \the\pxhy@driver^^J%
%--------------------------------------- Enable hyperref unicode
\ifpxhy@hy@unicode
-\bxDebug{Setup for hyperref 'unicode'}
+\PackageInfo\pxhy@pkgname
+ {The setup for hyperref 'unicode' is applied.\MessageBreak
+ (Note that this feature is experimental.)\@gobbletwo}
%% The following code is taken from hyperref.sty.
%%%%BEGIN
@@ -675,6 +911,36 @@ pxhy@driver = \the\pxhy@driver^^J%
\let\jsCheckHyperrefUnicode\@empty
\fi
+%--------------------------------------- 'jacommentline'
+\ifpxhy@jacommentline
+
+% The 'jacomemntline' feature outputs at the top of the
+% hyperref outline file (*.out) a comment line including
+% some Japanese characters.
+
+%% \pxhy@jacomment
+\let\pxhy@jacomment\@empty
+\begingroup
+ \@for\pxhy@x:={%
+ 2433,244E,2555,2521,2524,256B,244F,467C,4B5C,386C,%
+ 4A38,3B7A,2472,345E,245F,245E,2439%
+ }\do{%
+ \kansujichar1=\jis"\pxhy@x\relax
+ \xdef\pxhy@jacomment{\pxhy@jacomment\kansuji1}%
+ }
+\endgroup
+
+%% attach a hook
+\g@addto@macro\ReadBookmarks{%
+ \if@filesw
+ \ifx\@outlinefile\@undefined\else
+ \immediate\write\@outlinefile{%
+ \@percentchar\pxhy@jacomment.}%
+ \fi
+ \fi
+}
+
+\fi
%--------------------------------------- All done
\endinput
%% EOF