Sha256: 54e003bcea9b4392d2a26ce539ca251666d5f7991aaeade36717048c4a1490c1

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

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