Sha256: ca6a96d9daab3c9b3080f7acf8700c6e210d86e3c72ea5b4ce7df6d3419099b8

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledbslash"
        end

        def to_asciimath
          parsing_wrapper("obslash")
        end

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

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

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

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