Sha256: 7a3f742fbf09fec5b2d489c6455eb614c617553519a2ea42962527823c01c372

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rbracemid"
        end

        def to_asciimath
          parsing_wrapper("rbracemid")
        end

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

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

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

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