Sha256: f8e9b0ab140e4254bd62732886679113a63a5bb958e0f6e5a43b08bc9014066c

Contents?: true

Size: 877 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

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