Sha256: 385fbe99ac2bee3335de3ffcfab339cf0aa2722db35e61a786fbab5cfb9e99f7

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangletimes"
        end

        def to_asciimath
          parsing_wrapper("triangletimes")
        end

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

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

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

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