Sha256: 444a0f18ef11a13f4f48afee3bb5ecff4cf54163260dfd6906cf4dbd65811665

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Xi < Symbol
        INPUT = {
          unicodemath: [["xi", "&#x3be;"], parsing_wrapper(["upxi"])],
          asciimath: [["xi", "&#x3be;"], parsing_wrapper(["upxi"])],
          mathml: ["&#x3be;"],
          latex: [["upxi", "xi", "&#x3be;"]],
          omml: ["&#x3be;"],
          html: ["&#x3be;"],
        }.freeze

        # output methods
        def to_latex
          "\\xi"
        end

        def to_asciimath
          "xi"
        end

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

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

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

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