Sha256: f80d080319532bc6ddb343152da43c2aa93feedc74cdffcc7d1e1f364f53fc3a

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\btimes"
        end

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

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

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

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

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