Sha256: 1706431ad5f7a55f7bb43ca78bb4154d77f05be025505f5691d1c0d04d6f3689

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

Contents

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

        # output methods
        def to_latex
          parsing_wrapper("funcapply", lang: :latex)
        end

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