Sha256: 6e0913b5f1642e587f88341a1d1be26161e585d625a3b070b5442efd31097bca

Contents?: true

Size: 946 Bytes

Versions: 2

Compression:

Stored size: 946 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftthreetimes"
        end

        def to_asciimath
          parsing_wrapper("leftthreetimes", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x22cb;"
        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/leftthreetimes.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftthreetimes.rb