Sha256: ba76b66292ac55dad4cec4522d70f1a738c5eec86c421fe03e8d1818d49a8c8a

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowsimilar"
        end

        def to_asciimath
          parsing_wrapper("leftarrowsimilar")
        end

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

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

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

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