Sha256: e2462afd361833f361bd032afb47986da2d92477edb0590af92cdc045e4ebee2

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightarrowsimilar"
        end

        def to_asciimath
          parsing_wrapper("rightarrowsimilar")
        end

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

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

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

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