Sha256: 56f49fbf72a98b9588d52c52896572c15b10a57add15b0f0a844c391b6a187fe

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\langledot"
        end

        def to_asciimath
          parsing_wrapper("langledot", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/langledot.rb
plurimath-0.8.13 lib/plurimath/math/symbols/langledot.rb