Sha256: 2349d16d1c47d3bf220c05347b7b5767d7f2e8f9d1bae6953d1d7322b6634483

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\owns"
        end

        def to_asciimath
          parsing_wrapper("ni", lang: :asciimath)
        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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/ni.rb
plurimath-0.8.13 lib/plurimath/math/symbols/ni.rb