Sha256: 48afe2a59e429c9f6b4b742a22ff672681c17cb321ae8ff08cf751b1884f9a1a

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightleftharpoonsdown"
        end

        def to_asciimath
          parsing_wrapper("rightleftharpoonsdown")
        end

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

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

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

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