Sha256: df55c7282fb30537d1b2e675a0daca0922192387fd002d6f1828f29fec4a0c74

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

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