Sha256: 000e158b295b5fccc3647df1c939784be470314ca8e0bdc6b5df0a2cbdfa7ce3

Contents?: true

Size: 871 Bytes

Versions: 2

Compression:

Stored size: 871 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upIota"
        end

        def to_asciimath
          parsing_wrapper("upIota")
        end

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

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

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

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