Sha256: 8a44ef9e436dd81dffa44df311cdc35efaf1f28d8d70bc42b939b6ac1cb2e99d

Contents?: true

Size: 1006 Bytes

Versions: 7

Compression:

Stored size: 1006 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upharpoonrightdown"
        end

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

7 entries across 7 versions & 1 rubygems

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