Sha256: 4ad5c9f7d808d5bcf36c9718ef39c2f712ef506d6d63036cc99773ad8c1a9ae8

Contents?: true

Size: 931 Bytes

Versions: 2

Compression:

Stored size: 931 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dprime"
        end

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