Sha256: 5570cc7b3b8612a0dbf012e6a58a92aa7ce5da865ce785d3af13a9535749ce39

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Lambda"
        end

        def to_asciimath
          "Lambda"
        end

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

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

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

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