Sha256: 4d4de39c2284485b11774e33a77566388351b4a55ccd239ea32032469fcc9e15
Contents?: true
Size: 917 Bytes
Versions: 7
Compression:
Stored size: 917 Bytes
Contents
module Plurimath module Math module Symbols class Hbar < Symbol INPUT = { unicodemath: [["hbar", "ℏ"], parsing_wrapper(["hslash"])], asciimath: [["ℏ"], parsing_wrapper(["hbar", "hslash"])], mathml: ["ℏ"], latex: [["hslash", "ℏ"], parsing_wrapper(["hbar"])], omml: ["ℏ"], html: ["ℏ"], }.freeze # output methods def to_latex "\\hslash" end def to_asciimath parsing_wrapper("hbar") 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