Sha256: cb4f8a81625de626648f471c46ea5a95f900adfa1247aa8eb28a69b46e84664e

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Rbag"
        end

        def to_asciimath
          parsing_wrapper("rbag")
        end

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

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

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

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