Sha256: 1307bfa95cc4aed5408e8a0b786a7fc84a69de322c458442582e1dc2eb0c4ac5

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

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

        # output methods
        def to_latex
          "\\equalrightarrow"
        end

        def to_asciimath
          parsing_wrapper("equalrightarrow", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2971;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/equalrightarrow.rb
plurimath-0.8.13 lib/plurimath/math/symbols/equalrightarrow.rb