Sha256: 0bf213a0af9780a2156523fcee027a45175cbb626bd5d33a0301c6d13d6aeab9

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.23 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.22 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.21 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.20 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.19 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.18 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.17 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.16 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.15 lib/plurimath/math/symbols/downharpoonleft.rb