From 73b0f4f97a684af38d4aa3bfd4829939ad47c7c7 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 6 Jul 2014 22:50:00 +0200 Subject: beta 2014.07.06 22:50 --- tex/context/base/font-enc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tex/context/base/font-enc.lua') diff --git a/tex/context/base/font-enc.lua b/tex/context/base/font-enc.lua index 5305f0736..2e8b722de 100644 --- a/tex/context/base/font-enc.lua +++ b/tex/context/base/font-enc.lua @@ -8,6 +8,7 @@ if not modules then modules = { } end modules ['font-enc'] = { -- this module is obsolete +local next = next local match, gmatch, gsub = string.match, string.gmatch, string.gsub local setmetatableindex = table.setmetatableindex @@ -125,7 +126,12 @@ function encodings.make_unicode_vector() end end for name, code in next, characters.synonyms do - vector[code], hash[name] = name, code + if not vector[code] then + vector[code] = name + end + if not hash[name] then + hash[name] = code + end end return containers.write(encodings.cache, 'unicode', { name='unicode', tag='unicode', vector=vector, hash=hash }) end -- cgit v1.2.3