Sha256: 885a7710f40276c86c050b0c89d3d1e4fae4854a1f8782695f653661562525c1

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gesles"
        end

        def to_asciimath
          parsing_wrapper("gesles")
        end

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

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

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

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