Sha256: f23de63570a2c8509135a8df88dc35a774b17a2a94c7b0cd14d509bc3a5a204a

Contents?: true

Size: 883 Bytes

Versions: 2

Compression:

Stored size: 883 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upomega"
        end

        def to_asciimath
          "omega"
        end

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

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

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

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