Sha256: 0e02a34c479f8373d8b2a90e1144378ecebc557edc4135789d1f9d1628e40907

Contents?: true

Size: 820 Bytes

Versions: 4

Compression:

Stored size: 820 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Aleph < Symbol
        INPUT = {
          unicodemath: [["aleph", "&#x2135;"]],
          asciimath: [["aleph", "&#x2135;"]],
          mathml: ["&#x2135;"],
          latex: [["aleph", "&#x2135;"]],
          omml: ["&#x2135;"],
          html: ["&#x2135;"],
        }.freeze

        # output methods
        def to_latex
          "\\aleph"
        end

        def to_asciimath
          "aleph"
        end

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

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

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

        def to_html
          "&#x2135;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/aleph.rb
plurimath-0.8.13 lib/plurimath/math/symbols/aleph.rb
plurimath-0.8.12 lib/plurimath/math/symbols/aleph.rb
plurimath-0.8.11 lib/plurimath/math/symbols/aleph.rb