Interesting! … and, imho, so simple with 1 simple regex if each section has less than 99 pages or 2 simple regex if more!
thanks for replying, and excuse my ignorance, but what is a regex?
If I understand well, one book, four ID files (for each level), each ID file beginning at page 1!
… So you would have, e.g.:
Verb Section 1, 6-8, Section 2, 3, Section 4, 24
Exactly, and even if the reference is only in one Section, it has to specify which one because ther are 4 page 8's etc...
2 last points: did you use the ID index feature to create your index? How do you create "6-8", addend the "-" manually?
I started setting up my index in ID but ran into this problem, so I stopped. The 6-8 I was trying to set up with "to the next use of style", but wasn't working so I used "for the next # of pages"
To make "6-8", you need to use a Peter Kahrel's script:
… I suppose the index is basically made using ID features.
The tip I used: temporary mark each ID file page numbering [cancelled after Index generation]. Here is the no 1 ID file:
When the Index is generated, we get something like this:
Using 2 regex [Find/Replace] and Multi-Find/Change of Martinho da Gloria ( ;-) ), I finalize in one click, playing the 2 regex at the same time:
… and get finally this:
If I understand correctly, you would temporarily add a prefix to the page numbering, then convert that to say Section 1 etc... I'm not sure I understand what the first/change dialog box is showing me.
I actually tried doing this. But when the index generated it said Section 1 5 - to Section 1 7. It kept repeating the word Section.