summaryrefslogtreecommitdiff
path: root/tex/context/base/char-tex.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-07-09 10:26:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-07-09 10:26:00 +0200
commit305f6529b5970f953803716fb0e475c7f52ff3b5 (patch)
treecb12e68f1c1aa8e22a7a3f06bd7bc91f63add0b8 /tex/context/base/char-tex.lua
parent19e6c5feec9f26dd796a135d3f2924b9b15a998a (diff)
downloadcontext-305f6529b5970f953803716fb0e475c7f52ff3b5.tar.gz
beta 2014.07.09 10:26
Diffstat (limited to 'tex/context/base/char-tex.lua')
-rw-r--r--tex/context/base/char-tex.lua20
1 files changed, 5 insertions, 15 deletions
diff --git a/tex/context/base/char-tex.lua b/tex/context/base/char-tex.lua
index a9a760c7a..3aba53986 100644
--- a/tex/context/base/char-tex.lua
+++ b/tex/context/base/char-tex.lua
@@ -18,8 +18,6 @@ local P, C, R, S, V, Cs, Cc = lpeg.P, lpeg.C, lpeg.R, lpeg.S, lpeg.V, lpeg.Cs, l
local lpegpatterns = lpeg.patterns
local lpegmatch = lpeg.match
-local utf8byte = lpegpatterns.utf8byte
-local utf8char = lpegpatterns.utf8char
local utfchartabletopattern = lpeg.utfchartabletopattern
local allocate = utilities.storage.allocate
@@ -44,19 +42,6 @@ local trace_defining = false trackers.register("characters.defining", fu
local report_defining = logs.reporter("characters")
-
-
-
-
-
-
-
-
-
-
-
-
-
--[[ldx--
<p>In order to deal with 8-bit output, we need to find a way to go from <l n='utf'/> to
8-bit. This is handled in the <l n='luatex'/> engine itself.</p>
@@ -426,6 +411,11 @@ function texcharacters.defineaccents()
end
end
+if not context or not commands then
+ -- used in e.g. mtx-bibtex
+ return
+end
+
-- all kind of initializations
local tex = tex