Sha256: f72e385f9a8401bc91eca57324c84b04b374cce16169e5439090f89d33ab2aed

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Planckconst < Symbol
        INPUT = {
          unicodemath: [["&#x210e;"], parsing_wrapper(["Planckconst"])],
          asciimath: [["&#x210e;"], parsing_wrapper(["Planckconst"])],
          mathml: ["&#x210e;"],
          latex: [["Planckconst", "&#x210e;"]],
          omml: ["&#x210e;"],
          html: ["&#x210e;"],
        }.freeze

        # output methods
        def to_latex
          "\\Planckconst"
        end

        def to_asciimath
          parsing_wrapper("Planckconst")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x210e;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x210e;"
        end

        def to_omml_without_math_tag(_)
          "&#x210e;"
        end

        def to_html
          "&#x210e;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/planckconst.rb
plurimath-0.8.11 lib/plurimath/math/symbols/planckconst.rb