Sha256: 7c3c7bb89f63b33e8b7807839190f202bd779d2facad14c01eb911d09f61bc8a

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\kernelcontraction"
        end

        def to_asciimath
          parsing_wrapper("kernelcontraction")
        end

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

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

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

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