Sha256: 007f603ed4734c9be8a747c271c5022fc05b025aec0ccc5445bd997a44b630ad

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blackpointerright"
        end

        def to_asciimath
          parsing_wrapper("blackpointerright")
        end

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

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

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

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