Sha256: 01e5a814c9b4a5d79f2fb9855bcd7f2c438235b653c2618b8bc5c63cd67ac77e

Contents?: true

Size: 938 Bytes

Versions: 7

Compression:

Stored size: 938 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bigcup"
        end

        def to_asciimath
          parsing_wrapper("duni")
        end

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

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

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

        def to_html
          "&#x22c3;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.9 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.8 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.7 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.6 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.5 lib/plurimath/math/symbols/duni.rb
plurimath-0.8.4 lib/plurimath/math/symbols/duni.rb