Sha256: 476a93dfabecbf6644d7fb771d5f3de5a66de4806d41e5bb73be73d31df2d914

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Langledot < Symbol
        INPUT = {
          unicodemath: [["&#x2991;"], parsing_wrapper(["langledot"])],
          asciimath: [["&#x2991;"], parsing_wrapper(["langledot"])],
          mathml: ["&#x2991;"],
          latex: [["langledot", "&#x2991;"]],
          omml: ["&#x2991;"],
          html: ["&#x2991;"],
        }.freeze

        # output methods
        def to_latex
          "\\langledot"
        end

        def to_asciimath
          parsing_wrapper("langledot")
        end

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

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

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

        def to_html
          "&#x2991;"
        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/langledot.rb
plurimath-0.8.11 lib/plurimath/math/symbols/langledot.rb