Sha256: 1f5a85759b47d54d8339bbd2839fbaf625c18f83ba59e8f7fca174db17d778d2

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upChi"
        end

        def to_asciimath
          parsing_wrapper("upChi")
        end

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

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

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

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