OSDN Git Service
(root)
/
luatex-ja
/
luatexja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first step of using newtokenlib if possible
[luatex-ja/luatexja.git]
/
src
/
luatexja.lua
diff --git
a/src/luatexja.lua
b/src/luatexja.lua
index
6bd56fe
..
2125969
100644
(file)
--- a/
src/luatexja.lua
+++ b/
src/luatexja.lua
@@
-19,6
+19,16
@@
function luatexja.load_lua(fn)
end
end
end
end
+-- check token library
+if newtoken then
+ luatexja.token = newtoken
+else
+ local luatex_version = status.list().luatex_version
+ if luatex_version >80 then
+ luatexja.token = token
+ end
+end
+
--- 以下は全ファイルで共有される定数
local icflag_table = {}
luatexja.icflag_table = icflag_table
--- 以下は全ファイルで共有される定数
local icflag_table = {}
luatexja.icflag_table = icflag_table