Sync with Latest itex2MML and MathML::Entities

Support the latest changes in
http://www.w3.org/TR/2009/WD-xml-entity-names-20091117/
This commit is contained in:
Jacques Distler 2009-11-18 12:04:07 -06:00
parent e678b7e3a2
commit 371aab6f96
3 changed files with 18 additions and 2256 deletions

File diff suppressed because it is too large Load diff

View file

@ -530,7 +530,7 @@ class String
'bowtie' => '⋈', 'bowtie' => '⋈',
'bsim' => '∽', 'bsim' => '∽',
'bsime' => '⋍', 'bsime' => '⋍',
'bsolhsub' => '\⊂', 'bsolhsub' => '⟈',
'bump' => '≎', 'bump' => '≎',
'bumpE' => '⪮', 'bumpE' => '⪮',
'bumpe' => '≏', 'bumpe' => '≏',
@ -675,7 +675,7 @@ class String
'supdsub' => '⫘', 'supdsub' => '⫘',
'supE' => '⫆', 'supE' => '⫆',
'supedot' => '⫄', 'supedot' => '⫄',
'suphsol' => '⊃/', 'suphsol' => '⟉',
'suphsub' => '⫗', 'suphsub' => '⫗',
'suplarr' => '⥻', 'suplarr' => '⥻',
'supmult' => '⫂', 'supmult' => '⫂',
@ -706,7 +706,7 @@ class String
'Delta' => 'Δ', 'Delta' => 'Δ',
'delta' => 'δ', 'delta' => 'δ',
'epsi' => 'ϵ', 'epsi' => 'ϵ',
'epsiv' => 'ε', 'epsiv' => 'ϵ',
'eta' => 'η', 'eta' => 'η',
'Gamma' => 'Γ', 'Gamma' => 'Γ',
'gamma' => 'γ', 'gamma' => 'γ',
@ -725,7 +725,7 @@ class String
'Phi' => 'Φ', 'Phi' => 'Φ',
'phi' => 'φ', 'phi' => 'φ',
'phis' => 'ϕ', 'phis' => 'ϕ',
'phiv' => 'φ', 'phiv' => 'ϕ',
'Pi' => 'Π', 'Pi' => 'Π',
'pi' => 'π', 'pi' => 'π',
'piv' => 'ϖ', 'piv' => 'ϖ',
@ -1593,7 +1593,7 @@ class String
'NotSquareSuperset' => '⊐̸', 'NotSquareSuperset' => '⊐̸',
'NotSucceedsTilde' => '≿̸', 'NotSucceedsTilde' => '≿̸',
'oopf' => '𝕠', 'oopf' => '𝕠',
'OverBar' => '¯', 'OverBar' => '‾',
'OverBrace' => '⏞', 'OverBrace' => '⏞',
'OverBracket' => '⎴', 'OverBracket' => '⎴',
'OverParenthesis' => '⏜', 'OverParenthesis' => '⏜',
@ -1615,9 +1615,9 @@ class String
'RuleDelayed' => '⧴', 'RuleDelayed' => '⧴',
'sopf' => '𝕤', 'sopf' => '𝕤',
'Tab' => '	', 'Tab' => '	',
'ThickSpace' => '   ', 'ThickSpace' => '  ',
'topf' => '𝕥', 'topf' => '𝕥',
'UnderBar' => '̲', 'UnderBar' => '_',
'UnderBrace' => '⏟', 'UnderBrace' => '⏟',
'UnderBracket' => '⎵', 'UnderBracket' => '⎵',
'UnderParenthesis' => '⏝', 'UnderParenthesis' => '⏝',
@ -2153,10 +2153,10 @@ class String
'UpTeeArrow' => '↥', 'UpTeeArrow' => '↥',
'upuparrows' => '⇈', 'upuparrows' => '⇈',
'urcorner' => '⌝', 'urcorner' => '⌝',
'varepsilon' => 'ε', 'varepsilon' => 'ϵ',
'varkappa' => 'ϰ', 'varkappa' => 'ϰ',
'varnothing' => '∅', 'varnothing' => '∅',
'varphi' => 'φ', 'varphi' => 'ϕ',
'varpi' => 'ϖ', 'varpi' => 'ϖ',
'varpropto' => '∝', 'varpropto' => '∝',
'varrho' => 'ϱ', 'varrho' => 'ϱ',

View file

@ -212,6 +212,13 @@ END_THM
def test_have_latest_itex2mml def test_have_latest_itex2mml
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} +
%{MathML'><mi>\316\265</mi><mo>\342\211\240</mo>} +
%{<mi>\317\265</mi></math></p>},
"equation $\\varepsilon\\neq\\epsilon$")
assert_markup_parsed_as( assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} + %{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} + %{y='inline' xmlns='http://www.w3.org/1998/Math/} +
@ -244,7 +251,7 @@ END_THM
assert_markup_parsed_as( assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} + %{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} + %{y='inline' xmlns='http://www.w3.org/1998/Math/} +
%{MathML'><munder><mi>A</mi><mo>\314\262</mo></m} + %{MathML'><munder><mi>A</mi><mo>_</mo></m} +
%{under></math></p>}, %{under></math></p>},
"equation $\\underline{A}$") "equation $\\underline{A}$")