Sha256: c33ea8295a645015fe507601699b28f114cf3c82b6427e1f340e4dad2dc21bc3

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowapprox"
        end

        def to_asciimath
          parsing_wrapper("leftarrowapprox")
        end

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

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

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

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