I placed a Word document in InDesign (CS 5.5, Windows) which has both footnotes and endnotes. Everything imported ok, but the endnote references in the text are normal position, I'd like them to be superscript. I can't do a Find/Change because there’s no choice for endnote markers in "special characters for search". I can do a search for any digit preceded by a period, but when I change that to superscript the period gets changed also. I imagine there's some way of doing this using GREP, but I wouldn't be able to figure that out on my own. Thanks.
Instead of looking for the digit preceded by a period as a string, \.\d, look for it as a positiove look-behind so you are only finding the digit, bu tin order to match it must have the period in front of it, like this: ("<+\.)\d+ (I used \d+ so it would match single and multiple digit markers).
In the Change to section , write "$0" ,
then on the bottom section there would be a "CHANGE FORMAT" option , click inside the sqaure beneath it and then it would open the character style window ,
Go to "Basic character format" section
change the "Position" to "Superscript"
Note: Do not do find and change all , first test the result on few string and then do it , just to ensure you have full control.
Trouble is, ID is not finding that search string. But I've got a bigger mess going on. Some of the references have a space between the period and the number (sloppy editing on my part). And some have a close quote between the two. Might have to do it all manually. I can change the ".^9" to superscript, then look for periods in superscript and change them to normal, but I have do it one find at a time because there are a few places in the text where there's a period before a digit that's not an endnote reference (e.g., ".58 caliber). It's a dummy work around, but it moves things forward.
This is a GREP search query, not a text search. I suspect you are on the wrong tab...
You could change it to (?<=\.)~}? ?\d+ which will find close quote or space, or both, or neither, before the digit(s), but you'll need to run a second search for ~} in superscript to change that back, and a third search for spaces in superscript which you should probably replace with nothing (I thought it would be possibile to eliminate that third one by using (?<=\.)(~}?)( ?)(\d+) and replacing with $1$3, which works if there is a quotation mark with or without a space, but not if there is a space without the quote)
When I put (?<=\.)~}? ?\d+ in the GREP "find what" box and hit "Find" I get the warning "Cannot find match." But it doesn't matter. I fixed everything semi-manually. I appreciate your help. (Here's what I should have done: in Word create an "endnote superscript" character style and convert all endnote marks to it. Then create the same character style in InDesign.)
If it can't find a match there's something you've left out of your description or you've limited the scope of the search in some way (perhaps by adding some formatting attributes to the find query). That string works just fine here.