Sha256: 94e9fc6a0fd6a31a6d991ab66a6b387624b359946923ed2db380f6a2bc1d5905

Contents?: true

Size: 764 Bytes

Versions: 4

Compression:

Stored size: 764 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Sprime < Symbol
        INPUT = {
          unicodemath: ["&#x27;"],
          asciimath: ["&#x27;"],
          mathml: ["&#x27;"],
          latex: ["&#x27;"],
          omml: ["&#x27;"],
          html: ["&#x27;"],
        }.freeze

        # output methods
        def to_latex
          "\\prime"
        end

        def to_asciimath
          "'"
        end

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

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

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

        def to_html
          "&#x27;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/sprime.rb
plurimath-0.8.13 lib/plurimath/math/symbols/sprime.rb
plurimath-0.8.12 lib/plurimath/math/symbols/sprime.rb
plurimath-0.8.11 lib/plurimath/math/symbols/sprime.rb