Sha256: 7f85ca587eb82ef517d0b26ebb82a20063590833ed367f001d82e58b4cf576be

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nless"
        end

        def to_asciimath
          parsing_wrapper("nless")
        end

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

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

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

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