Sha256: 9273f09af8d1f6b3f83462f966395601bd656eb38cf54dc4769295901a4e3632

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\alpha"
        end

        def to_asciimath
          "alpha"
        end

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

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

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

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