Sha256: a5e836c087dabd286f0329302484fe77d4806517a8b67cb94d8fa7469df10cd2

Contents?: true

Size: 997 Bytes

Versions: 7

Compression:

Stored size: 997 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upharpoonleftdown"
        end

        def to_asciimath
          parsing_wrapper("downharpoonleft")
        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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.9 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.8 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.7 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.6 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.5 lib/plurimath/math/symbols/downharpoonleft.rb
plurimath-0.8.4 lib/plurimath/math/symbols/downharpoonleft.rb