Sha256: 9603ba0c07e34c140d66a76b835944836f2d803243c080bcabc0309eaaebb4c3

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Sigma"
        end

        def to_asciimath
          "Sigma"
        end

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

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

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

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