Sha256: a9d2be53513b7abdbd6f0ab66504ba0ab4a0d156de51d882982e04c012ff2037

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cupbarcap"
        end

        def to_asciimath
          parsing_wrapper("cupbarcap")
        end

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

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

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

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