Record every index line

FIXME: the index mapping is still wrong.
A word could point to another one which has more meanings than the original index.