Sha256: c5484e603fe329e5e1b6276be5e4bb76ba859c0ebb1721a8b378daa0f337e43c

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\NotGreaterLess"
        end

        def to_asciimath
          parsing_wrapper("ngtrless")
        end

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

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

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

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