Sha256: 55812dd3973264128a8db09c5785eadc092041cda46889f261a9354900c4fa18

Contents?: true

Size: 969 Bytes

Versions: 9

Compression:

Stored size: 969 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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.22 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.21 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.20 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.19 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.18 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.17 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.16 lib/plurimath/math/symbols/lvzigzag.rb
plurimath-0.8.15 lib/plurimath/math/symbols/lvzigzag.rb