Sha256: 3df3eeb2aaec7c98f830afddd0f75f0dd870d8feb16559740c900f5fada050f8

Contents?: true

Size: 913 Bytes

Versions: 7

Compression:

Stored size: 913 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftharpoondown"
        end

        def to_asciimath
          parsing_wrapper("leftharpoondown")
        end

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

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

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

        def to_html
          "&#x21bd;"
        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/leftharpoondown.rb
plurimath-0.8.9 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.8 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.7 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.6 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.5 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.4 lib/plurimath/math/symbols/leftharpoondown.rb