Sha256: 26b23b37f3b2437c1529ce1b36d67ff9d58d6752ba2bb6db96aa43206a1f7750

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\parsim"
        end

        def to_asciimath
          parsing_wrapper("parsim")
        end

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

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

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

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