Sha256: 7afde2d05b114b3554c36f70f0aea06a0b91ce9897f2a6932ec37c9e01be6c9f

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightanglesqr"
        end

        def to_asciimath
          parsing_wrapper("rightanglesqr")
        end

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

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

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

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