Sha256: 14819199e17b256036b3571b5a5b613e9d24194fec99291f579902b6682b25ab

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Sqcup"
        end

        def to_asciimath
          parsing_wrapper("Sqcup")
        end

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

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

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

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