Sha256: 85f6924fc82fed2d72d7ebbc2e953d69ab46ae386924b51187bbc875b1d779f9

Contents?: true

Size: 996 Bytes

Versions: 2

Compression:

Stored size: 996 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledbslash"
        end

        def to_asciimath
          parsing_wrapper("obslash", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/obslash.rb
plurimath-0.8.13 lib/plurimath/math/symbols/obslash.rb