Sha256: c7a781f2b1317a806fdcb2d57c67f4130c4c9a9f128943bc093209c5b3b234ce
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.8.14 | lib/plurimath/math/symbols/box.rb |
plurimath-0.8.13 | lib/plurimath/math/symbols/box.rb |