Sha256: f1b3c4b15e9f3c06290e8de31ab591a3b87c61ce140e40b08dabc3d54cec646b

Contents?: true

Size: 966 Bytes

Versions: 2

Compression:

Stored size: 966 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Ppprime < Symbol
        INPUT = {
          unicodemath: [["ppprime", "&#x2034;"], parsing_wrapper(["trprime", "third"])],
          asciimath: [["&#x2034;"], parsing_wrapper(["ppprime", "trprime", "third"])],
          mathml: ["&#x2034;"],
          latex: [["trprime", "third", "&#x2034;"], parsing_wrapper(["ppprime"])],
          omml: ["&#x2034;"],
          html: ["&#x2034;"],
        }.freeze

        # output methods
        def to_latex
          "\\trprime"
        end

        def to_asciimath
          parsing_wrapper("ppprime")
        end

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

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

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

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