Sha256: 42a66b075d72b16050adc638764e2b9a316ae98b8160cb7227294423f849d570

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ell"
        end

        def to_asciimath
          parsing_wrapper("ell", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/ell.rb
plurimath-0.8.13 lib/plurimath/math/symbols/ell.rb