Sha256: b9449751fe9f051972f350880c9ec60532465eb9448ea5ab948a8a5819c78ff9

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\threedangle"
        end

        def to_asciimath
          parsing_wrapper("threedangle")
        end

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

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

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

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