A text editor for foreign languages