Sha256: bbfb7693edde17916c6fb480a4a87c55614e776d2d0f1db7a7912f4fe6c58721

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\forall"
        end

        def to_asciimath
          parsing_wrapper("forall")
        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.12 lib/plurimath/math/symbols/forall.rb
plurimath-0.8.11 lib/plurimath/math/symbols/forall.rb