Sha256: 772fda0dcceb4ac9458892c4b69733042b6be4c691046bfcdfa5e82c53ea9628

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Pprime < Symbol
        INPUT = {
          unicodemath: [["pprime", "&#x2033;"], parsing_wrapper(["''", "second", "dprime"])],
          asciimath: [["''", "&#x2033;"], parsing_wrapper(["pprime", "second", "dprime"])],
          mathml: ["&#x2033;"],
          latex: [["second", "dprime", "&#x2033;"], parsing_wrapper(["pprime", "''"])],
          omml: ["&#x2033;"],
          html: ["&#x2033;"],
        }.freeze

        # output methods
        def to_latex
          "\\second"
        end

        def to_asciimath
          parsing_wrapper("pprime")
        end

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

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

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

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