Sha256: 9909e5f0f62dd6cb7e817fb2c30a617fb129515bf7f4a4e49aef4e1a836490b6

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class UpcasePsi < Symbol
        INPUT = {
          unicodemath: [["Psi", "&#x3a8;"], parsing_wrapper(["upPsi"])],
          asciimath: [["Psi", "&#x3a8;"], parsing_wrapper(["upPsi"])],
          mathml: ["&#x3a8;"],
          latex: [["upPsi", "Psi", "&#x3a8;"]],
          omml: ["&#x3a8;"],
          html: ["&#x3a8;"],
        }.freeze

        # output methods
        def to_latex
          "\\Psi"
        end

        def to_asciimath
          "Psi"
        end

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

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

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

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