Sha256: 7b9ad7ff154563c615c73a728340ec7e04fd7e5e04dcbff5d1fa3c5feacb3e8e

Contents?: true

Size: 970 Bytes

Versions: 9

Compression:

Stored size: 970 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Ne < Symbol
        INPUT = {
          unicodemath: [["neq", "ne", "&#x2260;"], parsing_wrapper(["!="], lang: :unicode)],
          asciimath: [["!=", "ne", "&#x2260;"], parsing_wrapper(["neq"], lang: :asciimath)],
          mathml: ["&#x2260;"],
          latex: [["neq", "ne", "&#x2260;"], parsing_wrapper(["!="], lang: :latex)],
          omml: ["&#x2260;"],
          html: ["&#x2260;"],
        }.freeze

        # output methods
        def to_latex(**)
          "\\ne"
        end

        def to_asciimath(**)
          "ne"
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mo") << "&#x2260;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2260;"
        end

        def to_html(**)
          "&#x2260;"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.22 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.21 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.20 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.19 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.18 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.17 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.16 lib/plurimath/math/symbols/ne.rb
plurimath-0.8.15 lib/plurimath/math/symbols/ne.rb