Sha256: 0197a7bb0b5c65ec03cd83316767e968a8045f893fb44a75330c5c350c1e452f

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lftimes"
        end

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

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

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

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

        def to_html
          "&#x29d4;"
        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/lftimes.rb
plurimath-0.8.13 lib/plurimath/math/symbols/lftimes.rb