Sha256: deb6882b65c19d2aa366d77ebd889dc73b2b9d340dc00604e73de629d2ab64b8

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\closure"
        end

        def to_asciimath
          parsing_wrapper("closure")
        end

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

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

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

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