Sha256: d201a3b923f0d4a6f535b8cb0c66a4101ef1413a331229a9ef0467dfb7691694

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Gamma < Symbol
        INPUT = {
          unicodemath: [["gamma", "&#x3b3;"], parsing_wrapper(["upgamma"], lang: :unicode)],
          asciimath: [["gamma", "&#x3b3;"], parsing_wrapper(["upgamma"], lang: :asciimath)],
          mathml: ["&#x3b3;"],
          latex: [["upgamma", "gamma", "&#x3b3;"]],
          omml: ["&#x3b3;"],
          html: ["&#x3b3;"],
        }.freeze

        # output methods
        def to_latex
          "\\gamma"
        end

        def to_asciimath
          "gamma"
        end

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

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

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

        def to_html
          "&#x3b3;"
        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/gamma.rb
plurimath-0.8.13 lib/plurimath/math/symbols/gamma.rb