Sha256: c187e04ad8a1f196014774b951da02cd7aa26fbe0518ea3a74f8c84a777295fa

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\daleth"
        end

        def to_asciimath
          parsing_wrapper("daleth")
        end

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

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

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

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