Sha256: f47dd85c394a823c1c1592e73335e26f721259f715e483df0f72e5f7584dfb4a

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 Bytes

Contents

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

        # output methods
        def to_latex
          "\\SucceedsTilde"
        end

        def to_asciimath
          parsing_wrapper("succsim")
        end

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

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

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

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