Sha256: 5696b2241e3dc14dacdf0dc51b1bc4ad5ab6150ebf654349f25037122cbfbb11
Contents?: true
Size: 1.02 KB
Versions: 10
Compression:
Stored size: 1.02 KB
Contents
module Plurimath module Math module Symbols class Hearsuit < Symbol INPUT = { unicodemath: [["hearsuit", "♡"], parsing_wrapper(["heartsuit"], lang: :unicode)], asciimath: [["♡"], parsing_wrapper(["hearsuit", "heartsuit"], lang: :asciimath)], mathml: ["♡"], latex: [["heartsuit", "♡"], parsing_wrapper(["hearsuit"], lang: :latex)], omml: ["♡"], html: ["♡"], }.freeze # output methods def to_latex(**) "\\heartsuit" end def to_asciimath(**) parsing_wrapper("hearsuit", lang: :asciimath) 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
10 entries across 10 versions & 1 rubygems