Sha256: 7d3eb8980f1822660af8188668e814979c934a83e53a19a7023219829157ee3f

Contents?: true

Size: 969 Bytes

Versions: 12

Compression:

Stored size: 969 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Leqslant < Symbol
        INPUT = {
          unicodemath: [["&#x2a7d;"], parsing_wrapper(["leqslant"], lang: :unicode)],
          asciimath: [["&#x2a7d;"], parsing_wrapper(["leqslant"], lang: :asciimath)],
          mathml: ["&#x2a7d;"],
          latex: [["leqslant", "&#x2a7d;"]],
          omml: ["&#x2a7d;"],
          html: ["&#x2a7d;"],
        }.freeze

        # output methods
        def to_latex(**)
          "\\leqslant"
        end

        def to_asciimath(**)
          parsing_wrapper("leqslant", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x2a7d;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2a7d;"
        end

        def to_html(**)
          "&#x2a7d;"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
plurimath-0.8.26 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.25 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.24 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.23 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.22 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.21 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.20 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.19 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.18 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.17 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.16 lib/plurimath/math/symbols/leqslant.rb
plurimath-0.8.15 lib/plurimath/math/symbols/leqslant.rb