Sha256: 7528ddde037a307d1bf983e528a2d4dbacc43367a38cd2b9cc2820082b9f50ac

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Downarrow"
        end

        def to_asciimath
          parsing_wrapper("Downarrow")
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x21d3;"
        end

        def to_omml_without_math_tag(_)
          "&#x21d3;"
        end

        def to_html
          "&#x21d3;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/downarrow.rb
plurimath-0.8.11 lib/plurimath/math/symbols/downarrow.rb