Sha256: 10f53899aa56dc85791320d45a61f9a15f76dca5fea74cd42be3df5f16e9c511

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 Bytes

Contents

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

        # output methods
        def to_latex
          "\\PrecedesTilde"
        end

        def to_asciimath
          parsing_wrapper("precsim")
        end

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

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

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

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