Sha256: 79b0de17eac0fbf5aacbc60d0516ac2be3a72b0b7777f439a62ceff9c248c91c

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

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

        # output methods
        def to_latex
          "\\upharpoonleftdown"
        end

        def to_asciimath
          parsing_wrapper("downharpoonleft", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x21c3;"
        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/downharpoonleft.rb
plurimath-0.8.13 lib/plurimath/math/symbols/downharpoonleft.rb