Sha256: 68c7c15647749e4d71cf285c6149f1ccd2b2c995994a99409c3ec772d89cc46e

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gimel"
        end

        def to_asciimath
          parsing_wrapper("gimel")
        end

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

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

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

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