Sha256: 87fe17067929a96e12c0ddb1daa38ff3e2eb69ff875269d5452e8c7d101df3d8

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\iinfin"
        end

        def to_asciimath
          parsing_wrapper("iinfin", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x29dc;"
        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/iinfin.rb
plurimath-0.8.13 lib/plurimath/math/symbols/iinfin.rb