. . . "Where the image to be replaced is a character image, the comparing position in the inputted document image can be defined by the positions of gaps of characters obtained from layout analysis." .