Sha256: b2cd149a1bedd066c1bf26d8f1e980bc0058a437472f5322e982b5a0c0c1dc92

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightwhitearrow"
        end

        def to_asciimath
          parsing_wrapper("rightwhitearrow")
        end

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

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

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

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