summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-09 21:57:10 +0000
committerKarl Berry <karl@freefriends.org>2019-10-09 21:57:10 +0000
commit9e2d25cd79dd76e6ee1be60eac9e0098bee8eed1 (patch)
tree2abe700184ad1126a948a6c19d87e26eb7fdc853 /Master
parent68870d6c60b48ad4fb4d0395942495c8409ef0c3 (diff)
pxchfon (9oct19)
git-svn-id: svn://tug.org/texlive/trunk@52325 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/platex/pxchfon/README-ja.md2
-rw-r--r--Master/texmf-dist/doc/platex/pxchfon/README.md2
-rw-r--r--Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty84
3 files changed, 74 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/platex/pxchfon/README-ja.md b/Master/texmf-dist/doc/platex/pxchfon/README-ja.md
index 7fec784750c..338970f5b49 100644
--- a/Master/texmf-dist/doc/platex/pxchfon/README-ja.md
+++ b/Master/texmf-dist/doc/platex/pxchfon/README-ja.md
@@ -54,6 +54,8 @@ MITライセンスの下で配布される。
更新履歴
--------
+ * Version 1.6 ‹2019/10/07›
+ - プリセット `haranoaji` を追加。
* Version 1.5a ‹2019/07/10›
- バグ修正。
* Version 1.5 ‹2019/05/15›
diff --git a/Master/texmf-dist/doc/platex/pxchfon/README.md b/Master/texmf-dist/doc/platex/pxchfon/README.md
index 72450c9bd74..1327701937c 100644
--- a/Master/texmf-dist/doc/platex/pxchfon/README.md
+++ b/Master/texmf-dist/doc/platex/pxchfon/README.md
@@ -39,6 +39,8 @@ This package is distributed under the MIT License.
Revision History
----------------
+ * Version 1.6 ‹2019/10/07›
+ - Preset `haranoaji`.
* Version 1.5a ‹2019/07/10›
- Bug fix.
* Version 1.5 ‹2019/05/15›
diff --git a/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty b/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
index c667ab8b883..0ac4b38ebbd 100644
--- a/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
+++ b/Master/texmf-dist/tex/platex/pxchfon/pxchfon.sty
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
-\ProvidesPackage{pxchfon}[2019/07/10 v1.5a]
+\ProvidesPackage{pxchfon}[2019/10/07 v1.6]
\def\pxcz@pkgname{pxchfon}
%--------------------------------------- general
@@ -113,6 +113,50 @@
\chardef\pxcz@pxufont@loaded=0
}
+%--------------------------------------- custom presets
+
+%% \pxcz@custom@presets
+\pxcz@onlypreamble@let\pxcz@custom@presets\@empty
+%% \pxcz@custom@apply@opt@unicode
+\pxcz@onlypreamble@let\pxcz@custom@apply@opt@unicode\@empty
+%% freeze
+\pxcz@onlypreamble@let\pxcz@custom\relax
+\let\pxcz@uniweight\relax
+\let\pxcz@multiweight\relax
+
+%% \pxcz@declare@oneweight@preset{<name>}{<m>}{<g>}
+\pxcz@onlypreamble@def\pxcz@declare@oneweight@preset#1#2#3{%
+ \xdef\pxcz@custom@presets{\pxcz@custom@presets
+ \pxcz@custom{#1}{\pxcz@uniweight{#2}{#3}}}}
+%% \pxcz@declare@multiweight@preset{<name>}{<1>}...{<8>}
+\pxcz@onlypreamble@def\pxcz@declare@multiweight@preset#1#2#3#4#5#6#7#8#9{%
+ \xdef\pxcz@custom@presets{\pxcz@custom@presets
+ \pxcz@custom{#1}{\pxcz@multiweight{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}}}}
+%%<+> \pxchfonDeclareOneWeightPreset{<name>}{<m>}{<g>}
+\@onlypreamble\pxchfonDeclareOneWeightPreset
+\newcommand*\pxchfonDeclareOneWeightPreset[1]{%
+ \pxcz@declare@oneweight@preset{user:#1}}
+%%<+> \pxchfonDeclareMultiWeightPreset{<name>}{<1>}...{<8>}
+\@onlypreamble\pxchfonDeclareMultiWeightPreset
+\newcommand*\pxchfonDeclareMultiWeightPreset[1]{%
+ \pxcz@declare@multiweight@preset{user:#1}}
+
+%% Load custom preset definitions
+\IfFileExists{pxchfon-extras.def}{%
+ \PackageInfo\pxcz@pkgname
+ {Extra preset settings are loaded\@gobble}%
+ \input{pxchfon-extras.def}%
+}{}
+\IfFileExists{pxchfon.cfg}{%
+ \PackageInfo\pxcz@pkgname
+ {Custom preset settings are loaded\@gobble}%
+ \begingroup
+ \makeatother\input{pxchfon.cfg}%
+ \endgroup
+}{}
+\let\pxcz@declare@oneweight@preset\@undefined
+\let\pxcz@declare@multiweight@preset\@undefined
+
%--------------------------------------- handle options
%% variables
@@ -218,6 +262,7 @@
hiragino-elcapitan-pro,hiragino-elcapitan-pron,%
morisawa-pro,morisawa-pr6n,yu-win,yu-win10,yu-win10+,yu-osx,%
sourcehan-otc,sourcehan,sourcehan-jp,noto-otc,noto,noto-jp,%
+ haranoaji,%
sourcehan-otc+,sourcehan+,noto-otc+,noto+,%
%(alias)
hiragino,noto-otf,%
@@ -231,6 +276,8 @@
\expandafter\pxcz@do\expandafter{\pxcz@x}}
\@for\pxcz@x:=\pxcz@all@abolished@preset\do{%
\expandafter\pxcz@do\expandafter{\pxcz@x}}
+\def\pxcz@custom#1#2{\pxcz@do{#1}}
+\pxcz@custom@presets
% others
% The 'unicode' option means a Unicode-oriented mapping, and requires
% dvipdfmx of version 20170627 or later. The 'unicode-fwid' is a variant.
@@ -252,20 +299,17 @@
\pxcz@parse@opt\CurrentOption
\ifpxcz@ok\else \@unknownoptionerror \fi}}
\pxcz@onlypreamble@def\pxcz@parse@opt#1{%
- \expandafter\pxcz@parse@opt@a#1\@nnil}
-\pxcz@onlypreamble@def\pxcz@parse@opt@a{%
- \futurelet\pxcz@tok\pxcz@parse@opt@b}
-\pxcz@onlypreamble@def\pxcz@parse@opt@b{%
\pxcz@okfalse
- \let\pxcz@tmpa\remove@to@nnil
- \ifx+\pxcz@tok
- \pxcz@file@preset@tltrue \let\pxcz@tmpa\pxcz@parse@opt@c
- \else\ifx*\pxcz@tok
- \pxcz@file@preset@tlfalse \let\pxcz@tmpa\pxcz@parse@opt@c
- \fi\fi \pxcz@tmpa}
-\pxcz@onlypreamble@def\pxcz@parse@opt@c#1#2\@nnil{%
- \pxcz@oktrue
- \edef\pxcz@file@preset{#2}}
+ \pxcz@parse@opt@a{+}{#1}{\pxcz@file@preset@tltrue}%
+ \pxcz@parse@opt@a{*}{#1}{\pxcz@file@preset@tlfalse}%
+ \pxcz@parse@opt@a{tl:}{#1}{\pxcz@file@preset@tltrue}%
+ \pxcz@parse@opt@a{file:}{#1}{\pxcz@file@preset@tlfalse}}
+\pxcz@onlypreamble@def\pxcz@parse@opt@a#1#2#3{%
+ \ifpxcz@ok\else
+ \pxcz@split{#1}{#2}\ifx\pxcz@pre\@empty
+ #3\let\pxcz@file@preset\pxcz@post \pxcz@oktrue
+ \fi
+ \fi}
% dispatch
\ProcessOptions*
@@ -418,6 +462,7 @@
\pxcz@do{noto+}{\pxcz@apply@opt@unicodeP}
\pxcz@do{noto-otc+}{\pxcz@apply@opt@unicodeP}
\pxcz@do{yu-win10+}{\pxcz@apply@opt@unicodeP}
+\pxcz@custom@apply@opt@unicode
% No-embed is not supported under the 'unicode' setup
\ifnum\pxcz@directunicode=\pxcz@directunicode@full
\pxcz@warn@unless@all@embeddedtrue
@@ -1841,6 +1886,10 @@
\pxcz@onlypreamble@def\pxcz@use@preset#1{%
\csname pxcz@the@preset@#1\endcsname}
+%% Redefine \pxcz@custom
+\let\pxcz@custom\pxcz@declare@preset
+\pxcz@custom@presets
+
%% definitions of main preset mappings
\pxcz@declare@preset{noembed}{%
\pxcz@uniweight{*}{*}}
@@ -1975,6 +2024,13 @@
{NotoSansJP-Regular.otf}{NotoSansJP-Bold.otf}%
{NotoSansJP-Black.otf}{NotoSansJP-Medium.otf}%
{NotoSansJP-Medium.otf}}
+\pxcz@declare@preset{haranoaji}{%
+ \usecmapforalphabet
+ \pxcz@multiweight{HaranoAjiMincho-Light.otf}%
+ {HaranoAjiMincho-Regular.otf}{HaranoAjiMincho-Bold.otf}%
+ {HaranoAjiGothic-Regular.otf}{HaranoAjiGothic-Bold.otf}%
+ {HaranoAjiGothic-Heavy.otf}{HaranoAjiGothic-Medium.otf}%
+ {HaranoAjiGothic-Medium.otf}}
%(alias)
\pxcz@declare@preset@alias{hiragino}{hiragino-pro}
\pxcz@declare@preset@alias{noEmbed}{noembed}