Sha256: 998ecfb8ed0ada6ab673423eb121954d372df1bead25e95aede311d7dcfb63e3

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex
          "\\kernelcontraction"
        end

        def to_asciimath
          parsing_wrapper("kernelcontraction", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/kernelcontraction.rb
plurimath-0.8.13 lib/plurimath/math/symbols/kernelcontraction.rb