Sha256: 902b0423b55fd61eaf5031a71e5e3c3981c7f6c8e9ffabd4c8c07b265ce5c06c

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightarrowapprox"
        end

        def to_asciimath
          parsing_wrapper("rightarrowapprox")
        end

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

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

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

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