Sha256: 82af2c9a7f5403ca073503f072a1acb258d187eb664eb6e745c87d444cea992e

Contents?: true

Size: 1023 Bytes

Versions: 12

Compression:

Stored size: 1023 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

12 entries across 12 versions & 1 rubygems

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