Sha256: 51a411a66bde795925adede14ddd1e36edb869d2207fc9d2850cce0e4b6cdd42

Contents?: true

Size: 908 Bytes

Versions: 2

Compression:

Stored size: 908 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upiota"
        end

        def to_asciimath
          "iota"
        end

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

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

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

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