Hi Vlasta. Don't have time to reply to your mail in detail now. Will do so later.
Have you tried the eGenix text tagging library? It sounds to me that this is exactly what you need: http://www.egenix.com/products/python/mxBase/mxTextTools/ Disclaimer: I've never actually used this library ;-) David. -- http://mail.python.org/mailman/listinfo/python-list