Sha256: b73912e0a49a3348d9790eb7701eb534bf3e36df8ead5a65cd24da352bcc2a7b

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

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

        # output methods
        def to_latex
          "\\leftrightsquigarrow"
        end

        def to_asciimath
          parsing_wrapper("leftrightwavearrow")
        end

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

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

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

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