A theoretical approach for character recognition based on phenomenological attributes