Sha256: 0f1fd8719ea6a828bb41eec09235bf51908d059eee69a7a0ecf090d2d9899893

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Swarrow"
        end

        def to_asciimath
          parsing_wrapper("Swarrow")
        end

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

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

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

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