Sha256: a0c010e1132b95a4b0360fb2ddb25aec4c95e8fad2919761377d0bd544984a81

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Bigsqcap < Symbol
        INPUT = {
          unicodemath: [["&#x2a05;"], parsing_wrapper(["bigsqcap"], lang: :unicode)],
          asciimath: [["&#x2a05;"], parsing_wrapper(["bigsqcap"], lang: :asciimath)],
          mathml: ["&#x2a05;"],
          latex: [["bigsqcap", "&#x2a05;"]],
          omml: ["&#x2a05;"],
          html: ["&#x2a05;"],
        }.freeze

        # output methods
        def to_latex
          "\\bigsqcap"
        end

        def to_asciimath
          parsing_wrapper("bigsqcap", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2a05;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/bigsqcap.rb
plurimath-0.8.13 lib/plurimath/math/symbols/bigsqcap.rb