Sha256: 2c2b6dd63599d6a939ab17d293bd511058fc4fc59834c45325bf87ba648c190b

Contents?: true

Size: 846 Bytes

Versions: 2

Compression:

Stored size: 846 Bytes

Contents

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

        # output methods
        def to_latex
          "\\imath"
        end

        def to_asciimath
          parsing_wrapper("imath")
        end

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

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

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

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