Sha256: 01ff833646f7fceee647f13a4e18e78ed2d7070bc0fccf0df24ede6f9f5e60a8

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Downharpoonright < Symbol
        INPUT = {
          unicodemath: [["downharpoonright", "&#x21c2;"], parsing_wrapper(["upharpoonrightdown"], lang: :unicode)],
          asciimath: [["&#x21c2;"], parsing_wrapper(["downharpoonright", "upharpoonrightdown"], lang: :asciimath)],
          mathml: ["&#x21c2;"],
          latex: [["upharpoonrightdown", "downharpoonright", "&#x21c2;"]],
          omml: ["&#x21c2;"],
          html: ["&#x21c2;"],
        }.freeze

        # output methods
        def to_latex(**)
          "\\upharpoonrightdown"
        end

        def to_asciimath(**)
          parsing_wrapper("downharpoonright", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x21c2;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x21c2;"
        end

        def to_html(**)
          "&#x21c2;"
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
plurimath-0.9.0 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.27 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.26 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.25 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.24 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.23 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.22 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.21 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.20 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.19 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.18 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.17 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.16 lib/plurimath/math/symbols/downharpoonright.rb
plurimath-0.8.15 lib/plurimath/math/symbols/downharpoonright.rb