Sha256: a0487ed5f1cb45bf90f221a490c1f25d1dad4dccaac96909dbc83492b22b4bee

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Nsub < Symbol
        INPUT = {
          unicodemath: [["nsub", "&#x2284;"], parsing_wrapper(["nsubset"])],
          asciimath: [["&#x2284;"], parsing_wrapper(["nsub", "nsubset"])],
          mathml: ["&#x2284;"],
          latex: [["nsubset", "&#x2284;"], parsing_wrapper(["nsub"])],
          omml: ["&#x2284;"],
          html: ["&#x2284;"],
        }.freeze

        # output methods
        def to_latex
          "\\nsubset"
        end

        def to_asciimath
          parsing_wrapper("nsub")
        end

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

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

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

        def to_html
          "&#x2284;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.9 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.8 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.7 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.6 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.5 lib/plurimath/math/symbols/nsub.rb
plurimath-0.8.4 lib/plurimath/math/symbols/nsub.rb