Sha256: d98d3dae7f22a14334b7b2ce318543a5edd29906df8c677e01b9812f2bb2d864

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

module Plurimath
  module Math
    module Symbols
      class UpcaseRightarrow < Symbol
        INPUT = {
          unicodemath: [["Rightarrow", "&#x21d2;"], parsing_wrapper(["implies", "rArr", "=>", "UpcaseRightarrow"])],
          asciimath: [["Rightarrow", "implies", "rArr", "=>", "&#x21d2;"], parsing_wrapper(["UpcaseRightarrow"])],
          mathml: ["&#x21d2;"],
          latex: [["Rightarrow", "&#x21d2;"], parsing_wrapper(["implies", "rArr", "=>"])],
          omml: ["&#x21d2;"],
          html: ["&#x21d2;"],
        }.freeze

        # output methods
        def to_latex
          "\\Rightarrow"
        end

        def to_asciimath
          "Rightarrow"
        end

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

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

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

        def to_html
          "&#x21d2;"
        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/upcase_rightarrow.rb
plurimath-0.8.11 lib/plurimath/math/symbols/upcase_rightarrow.rb