Sha256: dd6e967bd534464c3078d46bbac4acebd8f23a03377487b551fdaa91be159895

Contents?: true

Size: 1000 Bytes

Versions: 7

Compression:

Stored size: 1000 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Barleftharpoon < Symbol
        INPUT = {
          unicodemath: [["&#x296b;"], parsing_wrapper(["dashleftharpoondown", "barleftharpoon"])],
          asciimath: [["&#x296b;"], parsing_wrapper(["dashleftharpoondown", "barleftharpoon"])],
          mathml: ["&#x296b;"],
          latex: [["dashleftharpoondown", "barleftharpoon", "&#x296b;"]],
          omml: ["&#x296b;"],
          html: ["&#x296b;"],
        }.freeze

        # output methods
        def to_latex
          "\\dashleftharpoondown"
        end

        def to_asciimath
          parsing_wrapper("barleftharpoon")
        end

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

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

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

        def to_html
          "&#x296b;"
        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/barleftharpoon.rb
plurimath-0.8.9 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.8 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.7 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.6 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.5 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.4 lib/plurimath/math/symbols/barleftharpoon.rb