Sha256: fc6cde7332e3795ee9293d29b45c91adfeeb837f04b747646a99d79548db9a84

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Rvzigzag"
        end

        def to_asciimath
          parsing_wrapper("Rvzigzag")
        end

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

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

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

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