Sha256: d330d62cc8d607777f14429f694b5c17c5e5410df9ccfd2a63dc04ca18deb4b8
Contents?: true
Size: 1.04 KB
Versions: 14
Compression:
Stored size: 1.04 KB
Contents
module Plurimath module Math module Symbols class Box < Symbol INPUT = { unicodemath: [["box", "□"], parsing_wrapper(["square", "mdlgwhtsquare"], lang: :unicode)], asciimath: [["square", "□"], parsing_wrapper(["box", "mdlgwhtsquare"], lang: :asciimath)], mathml: ["□"], latex: [["mdlgwhtsquare", "□"], parsing_wrapper(["box", "square"], lang: :latex)], omml: ["□"], html: ["□"], }.freeze # output methods def to_latex(**) "\\mdlgwhtsquare" end def to_asciimath(**) parsing_wrapper("box", lang: :asciimath) end def to_unicodemath(**) Utility.html_entity_to_unicode("□") end def to_mathml_without_math_tag(_, **) ox_element("mo") << "□" end def to_omml_without_math_tag(_, **) "□" end def to_html(**) "□" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems