Sha256: 9ce3c9d41959f5b7d9760143f1f0b325d94d802a92a3613188848ca1bd38fc67

Contents?: true

Size: 982 Bytes

Versions: 2

Compression:

Stored size: 982 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Upharpoonleft < Symbol
        INPUT = {
          unicodemath: [["upharpoonleft", "&#x21bf;"], parsing_wrapper(["upharpoonleftup"])],
          asciimath: [["&#x21bf;"], parsing_wrapper(["upharpoonleft", "upharpoonleftup"])],
          mathml: ["&#x21bf;"],
          latex: [["upharpoonleftup", "upharpoonleft", "&#x21bf;"]],
          omml: ["&#x21bf;"],
          html: ["&#x21bf;"],
        }.freeze

        # output methods
        def to_latex
          "\\upharpoonleftup"
        end

        def to_asciimath
          parsing_wrapper("upharpoonleft")
        end

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

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

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

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