summaryrefslogtreecommitdiff
path: root/language/japanese/BX/bxghost/bxghost-lib.sty
diff options
context:
space:
mode:
Diffstat (limited to 'language/japanese/BX/bxghost/bxghost-lib.sty')
-rw-r--r--language/japanese/BX/bxghost/bxghost-lib.sty16
1 files changed, 10 insertions, 6 deletions
diff --git a/language/japanese/BX/bxghost/bxghost-lib.sty b/language/japanese/BX/bxghost/bxghost-lib.sty
index 00a148deed..6b4fb2bfd4 100644
--- a/language/japanese/BX/bxghost/bxghost-lib.sty
+++ b/language/japanese/BX/bxghost/bxghost-lib.sty
@@ -1,7 +1,7 @@
%%
%% This is file 'bxghost-lib.sty'.
%%
-%% Copyright 2019-2022 Takuto ASAKURA (wtsnjp)
+%% Copyright 2019-2023 Takuto Asakura (wtsnjp)
%% GitHub: https://github.com/wtsnjp
%% Twitter: @wtsnjp
%%
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxghost-lib}[2022/05/20 v0.5.0]
+\ProvidesPackage{bxghost-lib}[2023/02/26 v0.5.1]
%% preparations
\def\bxqgg@pkgname{bxghost}
@@ -23,10 +23,14 @@
\edef\bxqgg@tmpa{\string#1}\edef\bxqgg@tmpb{\meaning#1}%
\ifx\bxqgg@tmpa\bxqgg@tmpb #2\fi}
\chardef\bxqgg@engine=0 % other TeX
-\bxqgg@next\kanjiskip {\chardef\bxqgg@engine=1 }% pTeX
-\bxqgg@next\enablecjktoken{\chardef\bxqgg@engine=2 }% upTeX
-\bxqgg@next\luatexversion {\chardef\bxqgg@engine=3 }% LuaTeX
-\bxqgg@next\XeTeXversion {\chardef\bxqgg@engine=4 }% XeTeX
+\bxqgg@next\kanjiskip{%
+ \ifnum\jis"2121="3000
+ \chardef\bxqgg@engine=2 % upTeX
+ \else
+ \chardef\bxqgg@engine=1 % pTeX
+ \fi}
+\bxqgg@next\luatexversion{\chardef\bxqgg@engine=3 }% LuaTeX
+\bxqgg@next\XeTeXversion {\chardef\bxqgg@engine=4 }% XeTeX
%--------------------------------------- not supported engine