Sha256: a014d9eafb5a1525b95580d3950807abac2972cac5b863cc321aeea47683872a

Contents?: true

Size: 860 Bytes

Versions: 2

Compression:

Stored size: 860 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Pi"
        end

        def to_asciimath
          "Pi"
        end

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

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

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

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