Sha256: b4ba78ec6f69dde67400af0d2bb2620060848c767a3f043d4e426991bc3877f1

Contents?: true

Size: 894 Bytes

Versions: 2

Compression:

Stored size: 894 Bytes

Contents

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

        # output methods
        def to_latex
          "\\qprime"
        end

        def to_asciimath
          "qprime"
        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/qprime.rb
plurimath-0.8.11 lib/plurimath/math/symbols/qprime.rb