lib/plurimath/math/symbols/ee.rb in plurimath-0.8.12 vs lib/plurimath/math/symbols/ee.rb in plurimath-0.8.13

- old
+ new

@@ -1,47 +1,40 @@ module Plurimath module Math module Symbols class Ee < Symbol INPUT = { - unicodemath: [["ee", "&#x2147;"], parsing_wrapper(["EE", "exi"])], - asciimath: [["mathbb(e)", "&#x2147;"], parsing_wrapper(["ee"])], - mathml: ["&#x2147;"], - latex: [["\\mathbb{e}", "&#x2147;"], parsing_wrapper(["ee"])], - omml: ["&#x2147;"], - html: ["&#x2147;"], + unicodemath: [["exists", "&#x2203;"], parsing_wrapper(["EE", "exi"], lang: :unicode)], + asciimath: [["exists", "EE", "&#x2203;"], parsing_wrapper(["exi"], lang: :asciimath)], + mathml: ["&#x2203;"], + latex: [["exists", "exi", "&#x2203;"], parsing_wrapper(["EE"], lang: :latex)], + omml: ["&#x2203;"], + html: ["&#x2203;"], }.freeze # output methods def to_latex - "\\mathbb{e}" + "\\exists" end def to_asciimath - "mathbb(e)" + "exists" end def to_unicodemath - Utility.html_entity_to_unicode("&#x2147;") + Utility.html_entity_to_unicode("&#x2203;") end - def to_mathml_without_math_tag(intent) - attributes = { intent: encoded } if intent - ox_element("mi", attributes: attributes) << "&#x2147;" + def to_mathml_without_math_tag(_) + ox_element("mi") << "&#x2203;" end def to_omml_without_math_tag(_) - "&#x2147;" + "&#x2203;" end def to_html - "&#x2147;" - end - - private - - def encoded - Utility.html_entity_to_unicode("&#x2147;") + "&#x2203;" end end end end end