Sha256: 2427721cf8384b4680af5be426806c9fb97aea73a409b0935d677f08cfbb1e08

Contents?: true

Size: 965 Bytes

Versions: 2

Compression:

Stored size: 965 Bytes

Contents

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

        # output methods
        def to_latex
          "\\whiteinwhitetriangle"
        end

        def to_asciimath
          parsing_wrapper("whiteinwhitetriangle")
        end

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

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

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

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