Sha256: 4359cbe6a4aab413368e0f9a6313a56084ef2ba45676c282e73387919e784832

Contents?: true

Size: 914 Bytes

Versions: 2

Compression:

Stored size: 914 Bytes

Contents

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

        # output methods
        def to_latex
          parsing_wrapper("funcapply")
        end

        def to_asciimath
          parsing_wrapper("funcapply")
        end

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

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

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

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