Sha256: 3802dbc38c12d6209a4e4ea7eefc415d44f940180ddda3ac7874e085b3e67e8c

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\llblacktriangle"
        end

        def to_asciimath
          parsing_wrapper("llblacktriangle")
        end

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

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

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

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