Sha256: ad047a26e69060257718dc352bdf3742ce12baecf52934d121b819e6e12098cd

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvarkappa"
        end

        def to_asciimath
          parsing_wrapper("varkappa")
        end

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

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

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

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