Sha256: fe6e404a1b28025c062e35299644e9004fa05df3986082c01487b5dc9ab3ca2d

Contents?: true

Size: 899 Bytes

Versions: 10

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "/"
        end

        def to_asciimath(**)
          "//"
        end

        def to_unicodemath(**)
          Utility.html_entity_to_unicode("/")
        end

        def to_mathml_without_math_tag(_, **)
          ox_element("mo") << "/"
        end

        def to_omml_without_math_tag(_, **)
          "/"
        end

        def to_html(**)
          "/"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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