Sha256: 00151439e787acd5338067696c6eb60495b2dc878afee90a16d4957d48b8da58

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nprec"
        end

        def to_asciimath
          parsing_wrapper("nprec")
        end

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

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

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

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