diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-02-07 00:57:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-02-07 00:57:00 +0100 |
commit | b1d9ab946dc387c58a5575a360754fa04ebcad42 (patch) | |
tree | c24d14ddd03c9d3a07ff07ab0aa892a4a383de16 /tex/context/base/x-mathml.lua | |
parent | 75187f49bdc208a3cdc86bbaf701d7cf409869a7 (diff) | |
download | context-b1d9ab946dc387c58a5575a360754fa04ebcad42.tar.gz |
beta 2014.02.07 00:57
Diffstat (limited to 'tex/context/base/x-mathml.lua')
-rw-r--r-- | tex/context/base/x-mathml.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/x-mathml.lua b/tex/context/base/x-mathml.lua index ee18d4776..e2bb62d12 100644 --- a/tex/context/base/x-mathml.lua +++ b/tex/context/base/x-mathml.lua @@ -83,7 +83,7 @@ local o_replacements = { -- in main table -- [utfchar(0xF103C)] = "\\mmlleftdelimiter<", [utfchar(0xF1026)] = "\\mmlchar{38}", -- [utfchar(0xF103E)] = "\\mmlleftdelimiter>", - +-- [utfchar(0xAF)] = '\\mmlchar{"203E}', -- 0x203E } local simpleoperatorremapper = utf.remapper(o_replacements) @@ -479,7 +479,7 @@ end function mathml.mo(id) local str = xmlcontent(getid(id)) or "" local rep = gsub(str,"&.-;","") -- todo - context(simpleoperatorremapper(rep)) + context(simpleoperatorremapper(rep) or rep) end function mathml.mi(id) @@ -833,3 +833,13 @@ function mathml.cpolar_a(root) end context.right(false,")") end + +-- crap .. maybe in char-def a mathml overload + +local mathmleq = { + [utfchar(0x00AF)] = utfchar(0x203E), +} + +function mathml.extensible(chr) + context(mathmleq[chr] or chr) +end |