Sha256: 7c2e8358d7b8a0d522be07a028c182d0d9078b255472632c2e7a7703c891c2de

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cupleftarrow"
        end

        def to_asciimath
          parsing_wrapper("cupleftarrow")
        end

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

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

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

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