summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luatexja/src/luatexja-core.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-10-11 03:02:59 +0000
committerNorbert Preining <norbert@preining.info>2023-10-11 03:02:59 +0000
commit366cf31a771ded1f10860be3212058d48020398d (patch)
tree99ee483a9fd05dfd4ec908582abb44028bdffbd1 /macros/luatex/generic/luatexja/src/luatexja-core.sty
parent48eedda2cb4d2644886b862409b24a1d8e9a136f (diff)
CTAN sync 202310110302
Diffstat (limited to 'macros/luatex/generic/luatexja/src/luatexja-core.sty')
-rw-r--r--macros/luatex/generic/luatexja/src/luatexja-core.sty18
1 files changed, 12 insertions, 6 deletions
diff --git a/macros/luatex/generic/luatexja/src/luatexja-core.sty b/macros/luatex/generic/luatexja/src/luatexja-core.sty
index b0c5c805c0..12a7a09eae 100644
--- a/macros/luatex/generic/luatexja/src/luatexja-core.sty
+++ b/macros/luatex/generic/luatexja/src/luatexja-core.sty
@@ -61,13 +61,24 @@
\expandafter\ifx\csname RequirePackage\endcsname\relax %<*!LaTeX>
\expandafter\let\csname ifltj@in@latex\expandafter\endcsname
\csname iffalse\endcsname
+ \endlinechar=13 %
+ \input infwarerr.sty
+ \endlinechar=-1 %
\else %<*LaTeX>
\expandafter\let\csname ifltj@in@latex\expandafter\endcsname
\csname iftrue\endcsname
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luatexja-core}[2023-04-06 Core of LuaTeX-ja]
+ \endlinechar=13 %
+ \RequirePackage{infwarerr}
+ \endlinechar=-1 %
\fi %</LaTeX>
+%% Check if LuaTeX is used
+\expandafter\ifx\csname directlua\endcsname\relax
+ \@PackageError{luatexja-core}{This package requires Lua(HB)(La)TeX}{}
+\expandafter\endinput\fi\relax
+
%% Load prerequisite packages.
\endlinechar=13 %
\newif\ifltj@everyhook@avail\ltj@everyhook@availfalse
@@ -89,12 +100,7 @@
\fi %</LaTeX>
\endlinechar=-1 %
-%% Check if LuaTeX is used
-\ltx@LocalExpandAfter\ifx\csname directlua\endcsname\relax
- % Loading is silently aborted, since the notice of the wrong
- % engine is already shown in luaotfload.
- \ltj@core@AtEnd
-\expandafter\endinput\fi\relax
+\directlua{require('ltj-unicode-ccfix.lua')}% catcode of ideographs
%% Check LuaTeX version.
\ifnum\luatexversion<110