Sha256: 921cb64cd03237b8b93d91ed4f2f179a82cebd494d3070055c34a871fb630cb4

Contents?: true

Size: 932 Bytes

Versions: 7

Compression:

Stored size: 932 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.9 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.8 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.7 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.6 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.5 lib/plurimath/math/symbols/leftarrowapprox.rb
plurimath-0.8.4 lib/plurimath/math/symbols/leftarrowapprox.rb