Sha256: e0a993aa679341eb88acf062da030065ed3558b5c4295b91c2c2cee87ec843fe

Contents?: true

Size: 979 Bytes

Versions: 2

Compression:

Stored size: 979 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Dprime < Symbol
        INPUT = {
          unicodemath: [["&#x2033;"], parsing_wrapper(["''", "second", "dprime"], lang: :unicode)],
          asciimath: [["''", "&#x2033;"], parsing_wrapper(["second", "dprime"], lang: :asciimath)],
          mathml: ["&#x2033;"],
          latex: [["second", "dprime", "&#x2033;"], parsing_wrapper(["''"], lang: :latex)],
          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.14 lib/plurimath/math/symbols/dprime.rb
plurimath-0.8.13 lib/plurimath/math/symbols/dprime.rb