Sha256: 629f65f6b7b7125f431e140779e40b7131c02f93627415e52e592fe20bcd3bde

Contents?: true

Size: 921 Bytes

Versions: 2

Compression:

Stored size: 921 Bytes

Contents

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

        # output methods
        def to_latex
          "\\mlcp"
        end

        def to_asciimath
          parsing_wrapper("mlcp", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2adb;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/mlcp.rb
plurimath-0.8.13 lib/plurimath/math/symbols/mlcp.rb