Sha256: ced9add29eac169a5f21590638d64bbf270ce8025da6c3dfd2791c03b8aa85f8

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rfbowtie"
        end

        def to_asciimath
          parsing_wrapper("rfbowtie")
        end

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

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

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

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