-
1. Re: Reversed name appears in index under 'Symbol' rather than 'A','B','C'...
Jeremy bowmangraphics-DQuh1B Apr 9, 2009 7:44 AM (in response to Jeremy bowmangraphics-DQuh1B)And if you double-click on it in the Index Panel to open it up in the Page Reference Options dialog box, then close that dialog box without making any changes at all, it suddenly jumps to the correct place in the Index!
Jeremy (Intermediate-beginner)
-
2. Re: Reversed name appears in index under 'Symbol' rather than 'A','B','C'...
pkahrel Apr 9, 2009 8:48 AM (in response to Jeremy bowmangraphics-DQuh1B)Jeremy,
The contents of your variable myReversedName start with a space: the problem is in this line:
> var mySurName = myIndexTerm.slice(myBreak);
It catches the space between first and surname. So because your topic name begins with a space it is placed in the symbol section. Apparently, ID has a mechanism to correct that and removes the space when you click the item. Instead, use this:
> var mySurName = myIndexTerm.slice(myBreak+1);
By the way, you could use JavaScript's GREP to switch name and surname:
> myReversedName = myIndexTerm.replace (/([^ ]+) (.+)/, "$2, $1");
Peter
-
3. Re: Reversed name appears in index under 'Symbol' rather than 'A','B','C'...
Jeremy bowmangraphics-DQuh1B Apr 9, 2009 9:02 AM (in response to pkahrel)Brilliant! -- Problem solved! Thank you very much Peter, once again -- Jeremy
PS: You might be wondering why I want index page ranges that go all the way to the end of the document. It's part of a workaround to get page locators that refer to illustrations appear in the same index as locators that refer to text.
For example, suppose I want a reference to an illustration on p.2, as well as keeping text references to pages 1,2,and 3. I can use GREP on the generated index to turn 1, 2, 2-999, 3 into 1, 2, 2, 3
-
4. Re: Reversed name appears in index under 'Symbol' rather than 'A','B','C'...
pkahrel Apr 9, 2009 9:10 AM (in response to Jeremy bowmangraphics-DQuh1B)Excellent soultion!
Peter
PS: If you're interested in some index scripting, I recently put on the web some scripts I use for dealing with indexes: http://www.kahrel.plus.com/indesign/lists_indexes.html
-
5. Re: Reversed name appears in index under 'Symbol' rather than 'A','B','C'...
Jeremy bowmangraphics-DQuh1B Apr 9, 2009 10:49 AM (in response to pkahrel)Yes, those are very helpful, especially the ones for tagging and untagging text. Once you've got something in tagged text form, you can do just about anything with it!
Thanks again --- Jeremy


