Sha256: bc86da04ea63fa3c11f00133cc2171501a119c43444a964836e0b9b73f460317

Contents?: true

Size: 970 Bytes

Versions: 2

Compression:

Stored size: 970 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Pppprime < Symbol
        INPUT = {
          unicodemath: [["pppprime", "&#x2057;"], parsing_wrapper(["fourth", "qprime"])],
          asciimath: [["&#x2057;"], parsing_wrapper(["pppprime", "fourth", "qprime"])],
          mathml: ["&#x2057;"],
          latex: [["fourth", "qprime", "&#x2057;"], parsing_wrapper(["pppprime"])],
          omml: ["&#x2057;"],
          html: ["&#x2057;"],
        }.freeze

        # output methods
        def to_latex
          "\\fourth"
        end

        def to_asciimath
          parsing_wrapper("pppprime")
        end

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

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

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

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