Sha256: 2f95276d11346c74b5585ba799e9dca5e24642c1b0db0f119e4a7ec98603cfaa

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Im"
        end

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

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

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

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

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