Sha256: 34d3d04d0714d1ef361f2767956d13cae891020ade4f74dabeea458ad93394f7

Contents?: true

Size: 908 Bytes

Versions: 7

Compression:

Stored size: 908 Bytes

Contents

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

        # output methods
        def to_latex
          "\\invneg"
        end

        def to_asciimath
          parsing_wrapper("invnot")
        end

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

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

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

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