summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/libs-imp-zint.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-07-16 22:58:17 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-07-16 22:58:17 +0200
commita06e8a0d7325ee248138a327e1117139b71aeaba (patch)
treec0ffdfcb82aac51b5e35fb3e5aa2ae0314d62220 /tex/context/base/mkxl/libs-imp-zint.lmt
parenteebab79d84255890c1a6d320fba146b1c422c3a6 (diff)
downloadcontext-a06e8a0d7325ee248138a327e1117139b71aeaba.tar.gz
2021-07-16 22:01:00
Diffstat (limited to 'tex/context/base/mkxl/libs-imp-zint.lmt')
-rw-r--r--tex/context/base/mkxl/libs-imp-zint.lmt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/libs-imp-zint.lmt b/tex/context/base/mkxl/libs-imp-zint.lmt
index a3ac97584..a7646c436 100644
--- a/tex/context/base/mkxl/libs-imp-zint.lmt
+++ b/tex/context/base/mkxl/libs-imp-zint.lmt
@@ -104,6 +104,11 @@ local function execute(specification)
if okay() then
local code = specification.code
local text = specification.text
+ --
+ if lower(code) == "isbn" then
+ specification.text = text and gsub(text,"[^%d]","") or ""
+ end
+ --
if code then
local id = mapping[code]
if id then