Sha256: b6da3bb7feb7758e9409805687e531171a0a372e10667a502151ce61a91120fa

Contents?: true

Size: 948 Bytes

Versions: 12

Compression:

Stored size: 948 Bytes

Contents

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

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

        def to_asciimath(**)
          "lambda"
        end

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

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

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

        def to_html(**)
          "&#x3bb;"
        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/lambda.rb
plurimath-0.8.25 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.24 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.23 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.22 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.21 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.20 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.19 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.18 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.17 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.16 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.15 lib/plurimath/math/symbols/lambda.rb