Sha256: 118c536aff28d82bbcf87689dfde2b636a95a8dc51f1e6d975bf8aa78f3ef27c

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightharpoonsdown"
        end

        def to_asciimath
          parsing_wrapper("leftrightharpoonsdown")
        end

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

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

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

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