Sha256: f87cdef05faa27e3269841d6d944b7f7350fae5cec0ad6e5de9735432b4f1379

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\revangle"
        end

        def to_asciimath
          parsing_wrapper("revangle")
        end

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

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

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

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