Sha256: 546294dcf96010e642a4ef30c13626ad5e0f5354577080e9cbee1bd1e7e209a3

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\backprime"
        end

        def to_asciimath
          parsing_wrapper("backprime")
        end

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

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

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

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