Sha256: 291732a31d64da48f675d836b8a6afab157b82727484d051ad98c56ec9f44e98

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rsqhook"
        end

        def to_asciimath
          parsing_wrapper("rsqhook")
        end

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

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

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

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