Sha256: 51c32f00d08e781fa6b688dfa856fa015f2a3d10e0108142a99b17f9bdf11101

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Prcue < Symbol
        INPUT = {
          unicodemath: [["prcue", "preccurlyeq", "&#x227c;"], parsing_wrapper(["PrecedesSlantEqual"])],
          asciimath: [["&#x227c;"], parsing_wrapper(["prcue", "preccurlyeq", "PrecedesSlantEqual"])],
          mathml: ["&#x227c;"],
          latex: [["PrecedesSlantEqual", "preccurlyeq", "&#x227c;"], parsing_wrapper(["prcue"])],
          omml: ["&#x227c;"],
          html: ["&#x227c;"],
        }.freeze

        # output methods
        def to_latex
          "\\PrecedesSlantEqual"
        end

        def to_asciimath
          parsing_wrapper("prcue")
        end

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

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

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

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