Sha256: 1f865447f2bbd52a196f48bcbff56b6376adbf183009c0e13b51f63f38952249

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lbracelend"
        end

        def to_asciimath
          parsing_wrapper("lbracelend")
        end

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

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

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

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