Sha256: 924365630386736a5e4f5924f722c6e61554a9adc5f7fe13385d22d46fe0af6f

Contents?: true

Size: 1023 Bytes

Versions: 2

Compression:

Stored size: 1023 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Partial < Symbol
        INPUT = {
          unicodemath: [["partial", "&#x2202;", "&#x1d715;"], parsing_wrapper(["del", "partialup"])],
          asciimath: [["partial", "del", "&#x2202;", "&#x1d715;"], parsing_wrapper(["partialup"])],
          mathml: ["&#x2202;", "&#x1d715;"],
          latex: [["partialup", "partial", "&#x2202;", "&#x1d715;"], parsing_wrapper(["del"])],
          omml: ["&#x2202;", "&#x1d715;"],
          html: ["&#x2202;", "&#x1d715;"],
        }.freeze

        # output methods
        def to_latex
          "\\partial"
        end

        def to_asciimath
          "del"
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x2202;"
        end

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

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