Sha256: b5acbd3ff0851ac6f1bcaa286323b415516ea6c4c90ba4044441ffa4dd80c567
Contents?: true
Size: 882 Bytes
Versions: 7
Compression:
Stored size: 882 Bytes
Contents
module Plurimath module Math module Symbols class Mapsto < Symbol INPUT = { unicodemath: [["mapsto", "↦"], parsing_wrapper(["|->"])], asciimath: [["mapsto", "|->", "↦"]], mathml: ["↦"], latex: [["mapsto", "↦"], parsing_wrapper(["|->"])], omml: ["↦"], html: ["↦"], }.freeze # output methods def to_latex "\\mapsto" end def to_asciimath "mapsto" 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
Version data entries
7 entries across 7 versions & 1 rubygems