Sha256: 5e5887cacf00fa2cafd5fc02e16dba6edb49672e08db97b4634f9cdd32ed646c

Contents?: true

Size: 1003 Bytes

Versions: 2

Compression:

Stored size: 1003 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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.11 lib/plurimath/math/symbols/barleftharpoon.rb