Steven D'Aprano wrote: > I've also been thinking about generalisations such as grouping lines > into paragraphs, words into lines, etc. You're probably going to want considerably more complicated algorithms for that kind of thing, though. Let's keep it simple. -- Greg