Sha256: 8ba23892ab9fc9c3f31c07c96313028d66a2be4b85270db4a4869e4290117403

Contents?: true

Size: 829 Bytes

Versions: 4

Compression:

Stored size: 829 Bytes

Contents

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

        # output methods
        def to_latex
          "\\prime"
        end

        def to_asciimath
          "prime"
        end

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

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

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

        def to_html
          "&#x2032;"
        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/prime.rb
plurimath-0.8.13 lib/plurimath/math/symbols/prime.rb
plurimath-0.8.12 lib/plurimath/math/symbols/prime.rb
plurimath-0.8.11 lib/plurimath/math/symbols/prime.rb