php script to generate a "calendar" weekplan from textual description