Sha256: 7a96eef91c2323f7521021ab6925df5fc663a653e7532140c0019fee784e0e8c

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class UpcasePhi < Symbol
        INPUT = {
          unicodemath: [["Phi", "&#x3a6;"], parsing_wrapper(["upPhi"])],
          asciimath: [["Phi", "&#x3a6;"], parsing_wrapper(["upPhi"])],
          mathml: ["&#x3a6;"],
          latex: [["upPhi", "Phi", "&#x3a6;"]],
          omml: ["&#x3a6;"],
          html: ["&#x3a6;"],
        }.freeze

        # output methods
        def to_latex
          "\\Phi"
        end

        def to_asciimath
          "Phi"
        end

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

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

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

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