Sha256: 5b010fc8a9eaf44cd46597222a8ce8082f29c2a1f5fe6f055b9d80f196247306

Contents?: true

Size: 1017 Bytes

Versions: 12

Compression:

Stored size: 1017 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\APLnotslash"
        end

        def to_asciimath(**)
          parsing_wrapper("notslash", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x233f;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x233f;"
        end

        def to_html(**)
          "&#x233f;"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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