Sha256: 6df763238743dfb785f3072896e86aa9bb1149705cec3ceb49dd97c02ec85843

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Lvzigzag"
        end

        def to_asciimath
          parsing_wrapper("Lvzigzag", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x29da;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.13 lib/plurimath/math/symbols/lvzigzag.rb