Sha256: 0830e614719e528524b232f5184e594709843b9d79139d17fadfeaeef56edbed

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 Bytes

Contents

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

        # output methods
        def to_latex
          "\\beta"
        end

        def to_asciimath
          "beta"
        end

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

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

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

        def to_html
          "&#x3b2;"
        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/upbeta.rb
plurimath-0.8.11 lib/plurimath/math/symbols/upbeta.rb