Sha256: d852c91c63dc68e88f1b2b8c4f70a3b2c8570819666cc8613c0f450ae9efbe0f

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Circledparallel < Symbol
        INPUT = {
          unicodemath: [["&#x29b7;"], parsing_wrapper(["circledparallel"], lang: :unicode)],
          asciimath: [["&#x29b7;"], parsing_wrapper(["circledparallel"], lang: :asciimath)],
          mathml: ["&#x29b7;"],
          latex: [["circledparallel", "&#x29b7;"]],
          omml: ["&#x29b7;"],
          html: ["&#x29b7;"],
        }.freeze

        # output methods
        def to_latex
          "\\circledparallel"
        end

        def to_asciimath
          parsing_wrapper("circledparallel", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x29b7;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/circledparallel.rb
plurimath-0.8.13 lib/plurimath/math/symbols/circledparallel.rb