Sha256: a22916887ac83ea7b691d23bbc92b68b494183857dfbc3643bcfa99c12d3c3c0

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gtreqless"
        end

        def to_asciimath
          parsing_wrapper("gtreqless")
        end

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

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

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

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