Sha256: 6d5f34de2b07f2020e37439ff646cb5dbe60e981eed36905c4805202f7c4d04f

Contents?: true

Size: 942 Bytes

Versions: 2

Compression:

Stored size: 942 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Lrtimes < Symbol
        INPUT = {
          unicodemath: [["bowtie", "&#x22c8;"], parsing_wrapper(["|><|", "lrtimes"])],
          asciimath: [["bowtie", "|><|", "&#x22c8;"], parsing_wrapper(["lrtimes"])],
          mathml: ["&#x22c8;"],
          latex: [["lrtimes", "bowtie", "&#x22c8;"], parsing_wrapper(["|><|"])],
          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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/lrtimes.rb
plurimath-0.8.11 lib/plurimath/math/symbols/lrtimes.rb