Sha256: c197ff8c28ddd6a3594df2b609ce35b7d63b24a92cd922722805877f39ce8416

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Exi < Symbol
        INPUT = {
          unicodemath: [["exists", "&#x2203;"], parsing_wrapper(["EE", "exi"])],
          asciimath: [["exists", "EE", "&#x2203;"], parsing_wrapper(["exi"])],
          mathml: ["&#x2203;"],
          latex: [["exists", "exi", "&#x2203;"], parsing_wrapper(["EE"])],
          omml: ["&#x2203;"],
          html: ["&#x2203;"],
        }.freeze

        # output methods
        def to_latex
          "\\exists"
        end

        def to_asciimath
          parsing_wrapper("exi")
        end

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

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

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

        def to_html
          "&#x2203;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/exi.rb
plurimath-0.8.11 lib/plurimath/math/symbols/exi.rb