summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2023-02-07 12:20:53 +0000
committerNorbert Preining <preining@logic.at>2023-02-07 12:20:53 +0000
commitb75ddde3f208a2d08c033c787ab577b22c6529d6 (patch)
tree74de6def6ecfd899fb88ed7c9e632f596783501d /Master/texmf-dist
parent75edb56ff586a4efdea5bf8a410f3ce26421adfb (diff)
[fmtutil] add kanji-internal argument for (e-)upTeX
Change-by: Yukimasa Morimi @h20y6m This change does not affect current formats, but with TL2023 the platex formats will be based on euptex, and need this change. git-svn-id: svn://tug.org/texlive/trunk@65747 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/fmtutil.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index db6a559fa38..ef5a22833a1 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -3,7 +3,7 @@
# fmtutil - utility to maintain format files.
# (Maintained in TeX Live:Master/texmf-dist/scripts/texlive.)
#
-# Copyright 2014-2021 Norbert Preining
+# Copyright 2014-2022 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
@@ -709,6 +709,13 @@ sub rebuild_one_format {
# get rid of leading * in inifiles
$inifile =~ s/^\*//;
+ # Add -kanji-internal option for create (e-)p(La)TeX format
+ # with (e-)upTeX's pTeX compatible mode.
+ if ($eng =~ /^e?uptex$/ && $fmt =~ /^e?p/ && $addargs !~ /-kanji-internal=/) {
+ my $kanji = win32() ? "sjis" : "euc";
+ $addargs = "-kanji-internal=$kanji " . $addargs;
+ }
+
if ($fmt eq "metafun") { $prgswitch .= "mpost"; }
elsif ($fmt eq "mptopdf") { $prgswitch .= "context"; }
elsif ($fmt =~ m/^cont-..$/) { $prgswitch .= "context"; }