Sha256: c649a8b70b645f5f03d3e261bdcd396012fe0266496d12c11a6ec0a401161ef4
Contents?: true
Size: 1 KB
Versions: 10
Compression:
Stored size: 1 KB
Contents
module Plurimath module Math module Symbols class Colon < Symbol INPUT = { unicodemath: [["colon", "∶"], parsing_wrapper(["mathratio"], lang: :unicode)], asciimath: [["∶"], parsing_wrapper(["colon", "mathratio"], lang: :asciimath)], mathml: ["∶"], latex: [["mathratio", "∶"], parsing_wrapper(["colon"], lang: :latex)], omml: ["∶"], html: ["∶"], }.freeze # output methods def to_latex(**) "\\mathratio" end def to_asciimath(**) parsing_wrapper("colon", 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