Sha256: bb4276a60ced5da74ce84d482e95af8b3116b99c2b6db7e556c6fcb3ba0d91b3

Contents?: true

Size: 904 Bytes

Versions: 7

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ngtr"
        end

        def to_asciimath
          parsing_wrapper("ngt")
        end

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

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

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

        def to_html
          "&#x226f;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.9 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.8 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.7 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.6 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.5 lib/plurimath/math/symbols/ngt.rb
plurimath-0.8.4 lib/plurimath/math/symbols/ngt.rb