From 3a1b869f6c513cf27cde718ec9897594936d095e Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Wed, 30 Sep 2020 05:50:35 +0900 Subject: [PATCH] DVI output is not supported (at least for while) --- doc/luatexja.dtx | 2 ++ src/luatexja.lua | 5 +++++ src/luatexja.sty | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx index 0d5ed00..1328b1b 100644 --- a/doc/luatexja.dtx +++ b/doc/luatexja.dtx @@ -648,6 +648,8 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}. %\LuaTeX-jaパッケージの動作には次のパッケージ類が必要である. \begin{itemize} \item \href{http://www.luatex.org/}{\LuaTeX}\ 1.10.0 (or later) +% (DVI output (\cs{outputmode=0} is not supported.) +% (DVI出力(\cs{outputmode=0})は対応していない.) \item recent \href{https://github.com/latex3/luaotfload}{\Pkg{luaotfload}} (v3.1 or later recommended) \item \Pkg{adobemapping} (Adobe cmap and pdfmapping files) \item \LaTeX\ 2020-02-02 patch level 5 or later diff --git a/src/luatexja.lua b/src/luatexja.lua index be2b285..1c039a7 100644 --- a/src/luatexja.lua +++ b/src/luatexja.lua @@ -83,6 +83,11 @@ dir_table.dir_utod = dir_table.dir_tate + dir_table.dir_math_mod local load_module = luatexja.load_module load_module 'base'; local ltjb = luatexja.base +if tex.outputmode==0 then + ltjb.package_error('luatexja', + 'DVI output is not supported in LuaTeX-ja', + 'Use lua*tex instead dvilua*tex.') +end load_module 'rmlgbm'; local ltjr = luatexja.rmlgbm -- must be 1st if luatexja_debug then load_module('debug') end load_module 'lotf_aux'; local ltju = luatexja.lotf_aux diff --git a/src/luatexja.sty b/src/luatexja.sty index 2bb9f0d..cfee092 100644 --- a/src/luatexja.sty +++ b/src/luatexja.sty @@ -41,7 +41,7 @@ \ProcessOptions\relax \fi % %%%% VERSION -\def\LuaTeXjaversion{20200919.0} +\def\LuaTeXjaversion{20201001.0} \directlua{require('ltj-unicode-ccfix.lua')}% catcode of ideographs -- 2.11.0