Sha256: 9c66491716db95f73f4c61dbf5c464e8a0c36785e43295fe28d1f789e29fab29

Contents?: true

Size: 866 Bytes

Versions: 7

Compression:

Stored size: 866 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bNot"
        end

        def to_asciimath
          parsing_wrapper("bNot")
        end

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

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

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

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