Sha256: 3f2c8044181eb8cb0b7079490fc2a0386543d788911d10212602a41f883ecfd9

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gimel"
        end

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