Sha256: befb2b6ada9bd55810103a845f81145414bedffa00ebe49e3d9d1da8ae86a6d3

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\kappa"
        end

        def to_asciimath
          "kappa"
        end

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

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

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

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