Sha256: 4103da17fc848850fee5f95b338d6eb861d528bf5bf94630ad18e791b0d32fbb

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\pointright"
        end

        def to_asciimath
          parsing_wrapper("pointright")
        end

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

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

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

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