Extraction of discontinuous chains of symbols by means of perceptual grouping