Sha256: 7499bb1947cb38c57f3462d5efd7cf1d81cc3ab0418d331fdb4fb7404f70da39

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cup"
        end

        def to_asciimath
          "uu"
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x222a;"
        end

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

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