Text-based editing of talking-head video