Sha256: aa17812869ad50157a78cead7e64c3c420ec641a9b5e0a0c8c1afce77fb119e2

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

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

        # output methods
        def to_latex
          "\\dashleftharpoondown"
        end

        def to_asciimath
          parsing_wrapper("barleftharpoon", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/barleftharpoon.rb
plurimath-0.8.13 lib/plurimath/math/symbols/barleftharpoon.rb