Sha256: 2d0f2e4a0ca7b515d105beb8183baa47a7cad80b276843c5ac060104bd994f14

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightleftarrows"
        end

        def to_asciimath
          parsing_wrapper("rightleftarrow")
        end

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

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

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

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