Sha256: 12b0d64a17698fce53ef6cfa284659d0f57eb2433fcd656d5628558f24281729

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex
          "\\exists"
        end

        def to_asciimath
          parsing_wrapper("exi", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/exi.rb
plurimath-0.8.13 lib/plurimath/math/symbols/exi.rb