summaryrefslogtreecommitdiff
path: root/language/chinese/ctex/ctxdocstrip.tex
diff options
context:
space:
mode:
Diffstat (limited to 'language/chinese/ctex/ctxdocstrip.tex')
-rw-r--r--language/chinese/ctex/ctxdocstrip.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/language/chinese/ctex/ctxdocstrip.tex b/language/chinese/ctex/ctxdocstrip.tex
index 425496c0e5..e11443cb3b 100644
--- a/language/chinese/ctex/ctxdocstrip.tex
+++ b/language/chinese/ctex/ctxdocstrip.tex
@@ -76,14 +76,14 @@
}
\def\ctxLuaFunc{%
\directlua{
- local zhconv = require("zhconv").conv
- local scan_string = token.scan_string
+ local zhconv = require("ctex-zhconv").conv
+ local scan_arg = token.scan_argument
local t = lua.get_functions_table()
local id = 233
while t[id] do id = id + 1 end
t[id] = function ()
- local enc = scan_string()
- local file = scan_string()
+ local enc = scan_arg()
+ local file = scan_arg()
return zhconv(enc, file, file)
end
token.set_lua("ctxConv", id, "global", "protected")