Sha256: 80993c52c9a593d5716d5f43eb3edf709fec03f9b15209572e0a04d1c525e062

Contents?: true

Size: 777 Bytes

Versions: 4

Compression:

Stored size: 777 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Hat < Symbol
        INPUT = {
          unicodemath: [["&#x302;", "^"]],
          asciimath: [["&#x302;", "^"]],
          mathml: ["&#x302;", "^"],
          latex: [["&#x302;", "^"]],
          omml: ["&#x302;", "^"],
          html: ["&#x302;", "^"],
        }.freeze

        # output methods
        def to_latex
          "^"
        end

        def to_asciimath
          "^"
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("^")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "^"
        end

        def to_omml_without_math_tag(_)
          "^"
        end

        def to_html
          "^"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/hat.rb
plurimath-0.8.13 lib/plurimath/math/symbols/hat.rb
plurimath-0.8.12 lib/plurimath/math/symbols/hat.rb
plurimath-0.8.11 lib/plurimath/math/symbols/hat.rb