see http://bombay.indology.info for John Smith's utilities for doing exactly this. 

Best,
Dominik Wujastyk