Sha256: 29cbd4306b55873f05458a68730773d81595340da307461a3c7f33dc51dab79d

Contents?: true

Size: 840 Bytes

Versions: 2

Compression:

Stored size: 840 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ZZ"
        end

        def to_asciimath
          "ZZ"
        end

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

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

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

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