Sha256: 2359cb5349c67f4ba3fc71918f74415d65bbac0bc813113bdc582e6b193da34d

Contents?: true

Size: 1022 Bytes

Versions: 7

Compression:

Stored size: 1022 Bytes

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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.9 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.8 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.7 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.6 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.5 lib/plurimath/math/symbols/leftrightharpoon.rb
plurimath-0.8.4 lib/plurimath/math/symbols/leftrightharpoon.rb