module Plurimath module Math module Symbols class Epsilon < Symbol INPUT = { unicodemath: [["varepsilon", "ε"], parsing_wrapper(["epsilon", "upepsilon"], lang: :unicode)], asciimath: [["epsilon", "ε"], parsing_wrapper(["varepsilon", "upepsilon"], lang: :asciimath)], mathml: ["ε"], latex: [["upepsilon", "epsilon", "ε"], parsing_wrapper(["varepsilon"], lang: :latex)], omml: ["ε"], html: ["ε"], }.freeze # output methods def to_latex(**) "\\varepsilon" end def to_asciimath(**) "epsilon" end def to_unicodemath(**) Utility.html_entity_to_unicode("ε") end def to_mathml_without_math_tag(_, **) ox_element("mi") << "ε" end def to_omml_without_math_tag(_, **) "ε" end def to_html(**) "ε" end end end end end