Sha256: ac95720a378c7f7c13f01805b5f3a8ed0b3dc2d5ba62deee09983e6966c8b8aa

Contents?: true

Size: 847 Bytes

Versions: 7

Compression:

Stored size: 847 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nmid"
        end

        def to_asciimath
          parsing_wrapper("nmid")
        end

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

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

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

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