Sha256: cb0f58a6af7d63a45262e0b41c71b664f6381c47b26b7980d38cc44a4235b1a5

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.22 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.21 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.20 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.19 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.18 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.17 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.16 lib/plurimath/math/symbols/leftrightharpoonsdown.rb
plurimath-0.8.15 lib/plurimath/math/symbols/leftrightharpoonsdown.rb