Sha256: 7fc007b55655309e60da71dc6f8304e1b4347690c0783721f63893aff02f0c74

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\forall"
        end

        def to_asciimath
          parsing_wrapper("forall", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2200;"
        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/forall.rb
plurimath-0.8.13 lib/plurimath/math/symbols/forall.rb