Sha256: e3f608472d6a7f4076cbc456df8af999534cb8c0af6830b972a63b94308bae39

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\psi"
        end

        def to_asciimath
          "psi"
        end

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

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

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

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