diff options
author | Marius <mariausol@gmail.com> | 2014-02-07 02:00:28 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2014-02-07 02:00:28 +0200 |
commit | 8c7fab57c5fd2db6b9ade5f7608add9f650c8460 (patch) | |
tree | 5c9c76a9c7c0c09508b26b77d26721b030bfff84 /tex/context/base/x-mathml.lua | |
parent | 4d2068d1244e2b0949367d9cd18bfabe9d559de3 (diff) | |
download | context-8c7fab57c5fd2db6b9ade5f7608add9f650c8460.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 |