Sha256: 536e63add20633bb3d41071ce56965a5c7246cadc5bf3ca037b2fc352577a6c1

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Gamma"
        end

        def to_asciimath
          "Gamma"
        end

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

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

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

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