Sha256: 96f34eded7e37a5a47155318b8b5b9a11c9af65c5ace16b345eae70768758852

Contents?: true

Size: 932 Bytes

Versions: 10

Compression:

Stored size: 932 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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.23 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.22 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.21 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.20 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.19 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.18 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.17 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.16 lib/plurimath/math/symbols/iota.rb
plurimath-0.8.15 lib/plurimath/math/symbols/iota.rb