Sha256: d4b8eb83340adac0c82296f55ceae70dd6dd3b68957d96c0d9e6e05b8564ae0b

Contents?: true

Size: 860 Bytes

Versions: 7

Compression:

Stored size: 860 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Chi < Symbol
        INPUT = {
          unicodemath: [["chi", "&#x3c7;"], parsing_wrapper(["upchi"])],
          asciimath: [["chi", "&#x3c7;"], parsing_wrapper(["upchi"])],
          mathml: ["&#x3c7;"],
          latex: [["upchi", "chi", "&#x3c7;"]],
          omml: ["&#x3c7;"],
          html: ["&#x3c7;"],
        }.freeze

        # output methods
        def to_latex
          "\\chi"
        end

        def to_asciimath
          "chi"
        end

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

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

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

        def to_html
          "&#x3c7;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.9 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.8 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.7 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.6 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.5 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.4 lib/plurimath/math/symbols/chi.rb