Sha256: 0517a308edaed369626557906de7b65e43205cbdd3a66ca2896a4187a75f568b

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Chi < Symbol
        INPUT = {
          unicodemath: [["chi", "&#x3c7;"], parsing_wrapper(["upchi"], lang: :unicode)],
          asciimath: [["chi", "&#x3c7;"], parsing_wrapper(["upchi"], lang: :asciimath)],
          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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.23 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.22 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.21 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.20 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.19 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.18 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.17 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.16 lib/plurimath/math/symbols/chi.rb
plurimath-0.8.15 lib/plurimath/math/symbols/chi.rb