Sha256: a41e790763d073a061edbf1b075446c30378135dfd8b7fa469eee59c46ecd0ae

Contents?: true

Size: 844 Bytes

Versions: 2

Compression:

Stored size: 844 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ell"
        end

        def to_asciimath
          parsing_wrapper("ell")
        end

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

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

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

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