Reading a written text on a wall in front of you and understanding its meaning in your heart invalidates the prayer immediately.

Permissible Movements and Cases Requiring Prayer to Be Stopped