Sha256: f81309571e2bcff33ea98274b7808c873ff73879601cfb01eda009aaaf472c6b

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sigma"
        end

        def to_asciimath
          "sigma"
        end

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

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

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

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