Sha256: 049bd0ef753750313d5eed4ebc7c65e00e56dd291b7ee61e2c53b77cc9dcb62c

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rbrackextender"
        end

        def to_asciimath
          parsing_wrapper("rbrackextender")
        end

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

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

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

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