Sha256: 660c7a452e25acb07d349aef5a3a882e8e792fa602c0750df23490cf966cdbdf

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\similarrightarrow"
        end

        def to_asciimath
          parsing_wrapper("similarrightarrow")
        end

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

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

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

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