Sha256: ae8fb7e0468be1494da8e6ab3e79cd2a8ab04c49d96c8c34aa2653cffc07deb3

Contents?: true

Size: 916 Bytes

Versions: 7

Compression:

Stored size: 916 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Exists < Symbol
        INPUT = {
          unicodemath: [["bot", "perp", "&#x22a5;"], parsing_wrapper(["_|_"])],
          asciimath: [["_|_", "bot", "&#x22a5;"], parsing_wrapper(["perp"])],
          mathml: ["&#x22a5;"],
          latex: [["bot", "&#x22a5;"], parsing_wrapper(["perp", "_|_"])],
          omml: ["&#x22a5;"],
          html: ["&#x22a5;"],
        }.freeze

        # output methods
        def to_latex
          "\\exists"
        end

        def to_asciimath
          "exists"
        end

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

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

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

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