Sha256: 59ece58760a0faa24662b8bea65c8126b5c21568ba7abc3a2d4ef109cf5bf8ee

Contents?: true

Size: 1023 Bytes

Versions: 2

Compression:

Stored size: 1023 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightharpoonsdown"
        end

        def to_asciimath
          parsing_wrapper("leftrightharpoonsdown", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftrightharpoonsdown.rb