Sha256: 42ab24dc6b3717c8df6177abda67ed97c784a3aba3e7bf3d96fa2227aa4d641d

Contents?: true

Size: 945 Bytes

Versions: 12

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\bNot"
        end

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

12 entries across 12 versions & 1 rubygems

Version Path
plurimath-0.8.26 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.25 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.24 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.23 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.22 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.21 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.20 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.19 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.18 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.17 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.16 lib/plurimath/math/symbols/bnot.rb
plurimath-0.8.15 lib/plurimath/math/symbols/bnot.rb