Sha256: a751d498fc03016ae78181825dd05543afc31912e471e833aaef5290f2d071e3

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

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

        # output methods
        def to_latex
          "\\downharpoonsleftright"
        end

        def to_asciimath
          parsing_wrapper("downdownharpoons", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2965;"
        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/downdownharpoons.rb
plurimath-0.8.13 lib/plurimath/math/symbols/downdownharpoons.rb