How to remove lines from an image ?

Here is something I have done:

Take a look at the following link:
Some pictures

I want to remove all the lines in the image leaving the letters untouched.

The second image is the result of an algorithm I have developed.

I am not very happy with it. It does a great job removing the lines, but some of the letters are still touching. Do you have any ideas of how should I implement this line suppresion algorithm ?

[This message has been edited by fuxiulian (edited 03-20-2004).]