Sha256: df30e36e668e89291b8b5e86f8875cdb2662cb2ee500c20240bbbb0df9c33f5a

Contents?: true

Size: 976 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

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