Sha256: 67e64f449e67e54782a3256f628993058c8a13c3854239fb4ed57b521f92e87d

Contents?: true

Size: 971 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

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