Sha256: 15839febfc6b359f517d33b2a65205bfd8b5d3f31baa10a79760a72b2a14e684

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

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

        # output methods
        def to_latex
          "\\leftrightharpoonupdown"
        end

        def to_asciimath
          parsing_wrapper("leftrightharpoon")
        end

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

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

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

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