summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex/base/plcore.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/platex/base/plcore.ltx')
-rw-r--r--Master/texmf-dist/tex/platex/base/plcore.ltx70
1 files changed, 56 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/platex/base/plcore.ltx b/Master/texmf-dist/tex/platex/base/plcore.ltx
index 8d723a272a8..b81e7669f1f 100644
--- a/Master/texmf-dist/tex/platex/base/plcore.ltx
+++ b/Master/texmf-dist/tex/platex/base/plcore.ltx
@@ -16,10 +16,25 @@
%% -------------------------------------------------------------
%%
%% File: plvers.dtx
+\ifx\fmtversion\@undefined
+ \errhelp{Please reinstall LaTeX.}%
+ \errmessage{This cannot happen!^^JYour file `latex.ltx'
+ might be broken}\@@end
+\else
+ \ifnum\expandafter\@parse@version\fmtversion//00\@nil<20170415
+ \errhelp{Please update your TeX installation; if not available,
+ obtain it^^Jmanually from CTAN
+ (https://ctan.org/pkg/latex-base) or from^^JGitHub
+ (https://github.com/latex3/latex2e).}%
+ \errmessage{This version of pLaTeX2e requires LaTeX2e 2017-04-15
+ or newer!^^JObtain a newer version of `latex',
+ otherwise pLaTeX2e setup will^^Jnever succeed}\@@end
+ \fi
+\fi
\def\pfmtname{pLaTeX2e}
\def\pfmtversion
- {2018/03/09}
-\def\ppatch@level{1}
+ {2018-04-01}
+\def\ppatch@level{0}
\edef\platexBANNER{\the\everyjob\noexpand\typeout{}\relax}% save LaTeX banner
\newif\if@plincludeinrelease
\@plincludeinreleasefalse
@@ -143,6 +158,34 @@
\global\@namedef{M@#1}{\default@M#3}%
\xdef\LastDeclaredEncoding{#1}%
}
+\let\DeclareFontEncoding@saved\DeclareFontEncoding@
+\ifx\IeC\@undefined\else
+\def\DeclareFontEncoding@#1#2#3{%
+ \expandafter
+ \ifx\csname T@#1\endcsname\relax
+ \def\cdp@elt{\noexpand\cdp@elt}%
+ \xdef\cdp@list{\cdp@list\cdp@elt{#1}%
+ {\default@family}{\default@series}%
+ {\default@shape}}%
+ \expandafter\let\csname#1-cmd\endcsname\@changed@cmd
+ \begingroup
+ \wlog{Now handling font encoding #1 ...}%
+ \lowercase{%
+ \InputIfFileExists{#1enc.dfu}}%
+ {\wlog{... processing UTF-8 mapping file for font %
+ encoding #1}}%
+ {\wlog{... no UTF-8 mapping file for font encoding #1}}%
+ \endgroup
+ \def\enc@elt{\noexpand\enc@elt}%
+ \xdef\fenc@list{\fenc@list\enc@elt<#1>}%
+ \else
+ \@font@info{Redeclaring font encoding #1}%
+ \fi
+ \global\@namedef{T@#1}{#2}%
+ \global\@namedef{M@#1}{\default@M#3}%
+ \xdef\LastDeclaredEncoding{#1}%
+ }
+\fi
\def\DeclareKanjiEncoding#1{%
\@latex@warning{%
The \string\DeclareKanjiEncoding\space is obsoleted command. Please use
@@ -715,8 +758,17 @@
\ifx\lastnodesubtype\@undefined
\let\removejfmglue\@undefined
\else
- \def\pltx@gluetype{11}
- \def\pltx@jfmgluesubtype{21}
+ \setbox0\hbox{%
+ \ifdefined\ucs %% upTeX check
+ \jfont\tenmin=upjisr-h at 9.62216pt
+ \else
+ \jfont\tenmin=min10
+ \fi\tenmin
+ \char\jis"214B\null\setbox0\lastbox
+ \global\chardef\pltx@gluetype\lastnodetype
+ \global\chardef\pltx@jfmgluesubtype\lastnodesubtype
+ }
+ \setbox0=\box\voidb@x
\protected\def\removejfmglue{%
\ifnum\lastnodetype=\pltx@gluetype\relax
\ifnum\lastnodesubtype=\pltx@jfmgluesubtype\relax
@@ -1157,10 +1209,6 @@
\mathchardef\e@mathgroup@top=256 % for e-pTeX FAM256 patched
\fi
%% File: plvers.dtx
-\ifx\patch@level\@undefined % fallback if undefined in LaTeX
- \def\patch@level{0}\fi
-\ifx\ppatch@level\@undefined % fallback if undefined in pLaTeX
- \def\ppatch@level{0}\fi
\begingroup
\def\parse@@BANNER\typeout#1\typeout#2#3\relax{#1}
\toks0=\expandafter\expandafter\expandafter{%
@@ -1184,12 +1232,6 @@
\global\everyjob\expandafter{\platexBANNER}%
\endgroup
\let\platexBANNER=\@undefined
-\ifx\l@nohyphenation \@undefined
- \newlanguage\l@nohyphenation
-\fi
-\ifx\document@default@language \@undefined
- \let\document@default@language\m@ne
-\fi
\AtBeginDocument{%
\@ifpackageloaded{latexrelease}{%
\@ifpackageloaded{platexrelease}{}{%