Sha256: a94e18947294d0d12416406131437fbb285fca3f1f0f1e2c0ef5532c6101aae9

Contents?: true

Size: 952 Bytes

Versions: 2

Compression:

Stored size: 952 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftharpoondown"
        end

        def to_asciimath
          parsing_wrapper("leftharpoondown", lang: :asciimath)
        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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/leftharpoondown.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftharpoondown.rb