Sha256: 31f6275b3d3928f30a0e97c464bebb4ff66d07fdc8a69bb5934d8ec382bd19c5

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blackpointerleft"
        end

        def to_asciimath
          parsing_wrapper("blackpointerleft")
        end

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

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

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

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