Sha256: 2deca2db459d4075294a3f9b41ab3de2c68288beeeecaf4a1f4cb21df1ea3bdf

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Lrtimes < Symbol
        INPUT = {
          unicodemath: [["bowtie", "&#x22c8;"], parsing_wrapper(["|><|", "lrtimes"], lang: :unicode)],
          asciimath: [["bowtie", "|><|", "&#x22c8;"], parsing_wrapper(["lrtimes"], lang: :asciimath)],
          mathml: ["&#x22c8;"],
          latex: [["lrtimes", "bowtie", "&#x22c8;"], parsing_wrapper(["|><|"], lang: :latex)],
          omml: ["&#x22c8;"],
          html: ["&#x22c8;"],
        }.freeze

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

        def to_asciimath(**)
          "bowtie"
        end

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.22 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.21 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.20 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.19 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.18 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.17 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.16 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.15 lib/plurimath/math/symbols/lrtimes.rb