Sha256: 872d95f5fc4ad9b725af99414e2d9b9bd492164b1361e9f26bffd81f60ba1e05

Contents?: true

Size: 862 Bytes

Versions: 7

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\check"
        end

        def to_asciimath
          parsing_wrapper("check")
        end

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

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

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

        def to_html
          "&#x30c;"
        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/check.rb
plurimath-0.8.9 lib/plurimath/math/symbols/check.rb
plurimath-0.8.8 lib/plurimath/math/symbols/check.rb
plurimath-0.8.7 lib/plurimath/math/symbols/check.rb
plurimath-0.8.6 lib/plurimath/math/symbols/check.rb
plurimath-0.8.5 lib/plurimath/math/symbols/check.rb
plurimath-0.8.4 lib/plurimath/math/symbols/check.rb