Sha256: 0e3a629048c54e50804813e27c0716f3548e9ba84f6508c11a0ed902e3912233

Contents?: true

Size: 943 Bytes

Versions: 7

Compression:

Stored size: 943 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ballotcheck"
        end

        def to_asciimath
          parsing_wrapper("checkmark")
        end

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

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

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

        def to_html
          "&#x2713;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.9 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.8 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.7 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.6 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.5 lib/plurimath/math/symbols/checkmark.rb
plurimath-0.8.4 lib/plurimath/math/symbols/checkmark.rb