Sha256: 704993d8c17eac35a41b00309d30aed8143203c29960660f49f7b651f69aa3bb

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smeparsl"
        end

        def to_asciimath
          parsing_wrapper("smeparsl")
        end

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

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

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

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