Adobe InDesign has pretty good features for generating tables of contents and indices for documents, but these have a minor limitation that nonetheless can be very awkward: you can only choose from a small selection of special characters to insert into bits of text like the entry separators.