Sha256: c3ce693bb71782dfc5decb12d17213d1932acea2f7b7a6d074a3036a9ab69753

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ruledelayed"
        end

        def to_asciimath
          parsing_wrapper("ruledelayed")
        end

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

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

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

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