Sha256: 2728103f5935d5080ea408bc7b485ce850cb129b22861838ebfa8d58fed7d77d

Contents?: true

Size: 817 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

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