Sha256: 37f1a9507d540624a4e06cb0ceb39ba8252fdb12e2240df66491552fe8fd2b22

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Omega"
        end

        def to_asciimath
          "Omega"
        end

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

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

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

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