Sha256: 1468f7ba4ea194e7c2148d486b575eff83bc4c9b154c43b853c1407591dfd35d

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cupvee"
        end

        def to_asciimath
          parsing_wrapper("cupvee")
        end

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

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

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

        def to_html
          "&#x2a45;"
        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/cupvee.rb
plurimath-0.8.11 lib/plurimath/math/symbols/cupvee.rb