Sha256: a3f92f207695e16c3d13c2d5374cb698ec487293b96f88a0ec5ec02995e547f0

Contents?: true

Size: 880 Bytes

Versions: 7

Compression:

Stored size: 880 Bytes

Contents

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

        # output methods
        def to_latex
          "\\owns"
        end

        def to_asciimath
          parsing_wrapper("ni")
        end

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

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

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

        def to_html
          "&#x220b;"
        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/ni.rb
plurimath-0.8.9 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.8 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.7 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.6 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.5 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.4 lib/plurimath/math/symbols/ni.rb