Sha256: e1d980afcc1f81a0fa278dfbe4854ec4de5e624a2600778f0e5be6a12b785b7b

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrcorner"
        end

        def to_asciimath
          parsing_wrapper("lrcorner")
        end

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

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

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

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