Do you really mean endnotes and not footnotes? I don't think you can swap the period and the number on footnotes, but if you mean endnotes they are not a built-in feature and must have been created manually or by script, so the numbers may be accessible.
If that's the case, then I think you could try Find: ^(\d+)(\.) and change to $2$1 (limit the scope to the paragraph style applied to your notes would be a good idea).
OK, still need to know if this is endnotes or footnotes, and how the numbers were added. If they are "real" footnote markers you need to find (~F)(\.) and change to $2$1 or if they are number you typed in, then find (?<+\l)(\d+)(\.) and change to $2$1
Don't give up Peter. They are endnotes imported from Word. The code you gave me does not find them. I am putting them in grep. Is that where they go?
Thanks a million
That's where they go. Did you try both versions?
Yes I did. I have established that I can find each of the endnote characters by searching for their character style bu tcan't figure out how to change the position of the period.
I think at this point I need to see a sample page from the file...
I'll send you an upload link.
1. InDesign does not support 'endnotes', so it bluntly converts endnote numbers to literal digits (albeit with the correct endnote ref style applied), and the endnotes themself to plain dumb text.
2. You cannot search for (superscript number)(regular period) -- you cannot mix *formatting* in searches, nor in replaces.
3. While you can search for a superscript number, you can not replace it with "period (regular found number)" -- the period will also be superior.
4. Next, change superior periods to "Normal" position.
5. Now you have this.¹. The final period can be removed using this: search for
and set the Position to "Normal". Replace with nothing to remove the periods (and, honestly, you should do so one by one. Any period where 'nothing' in Normal position is before it will be considered; those at the start of a sentence, table cell, or story, and also those with some subscript text).
Thanks Jongware. I don't understand your fourth point
'4. Next, change superior periods to "Normal" position'.
What are superior periods? Where is normal position?
(First let me rectify a little "oops": use this search in point 5, not (not not not) the one I told you to.
A superior point is a regular point but with superscript applied. "Normal" is in the same dropdown list in Basic Formatting labeled "Position" as "Superscript", "Subscript", and a couple of lesser used items.
Thanks for your reply Jongware. I have to go out now but will get back to it when I return.
i had a chance to look, and I found the following to work:
Find (?<=\l)(\d+)(\.) and change to $2$1 (sorry, there was a typo in that the first time). This will move the period, but it will make it styled with the note marker style, and the last digit will not have the style, so next find \. with the style applied and set the change format character style to None. Leave the change field blank.
Finally, to fix the digits, find (?<=\.)\d+ and set the change format to the marker character style. This is the dangerous one. If there are other cases where you have numbers with dots in them -- dates or phionenumbers in dotted format, or decimal numbers, for example, they will be found as well.
Peter I really appreciate you going to all this trouble. Maybe you should give up with me because I don't understand some of the steps.
What do you mean by 'styled with the note marker style'
What do you mean by 'so next find \. with the style applied'. What style and applied where?
Sorry for all this. I will understand if you give up.
OK sorry, I should have been more explicit.
In the lower half of the find/change dialog are two large boxes marked Find Format and Change Format. each has a trashcan symbol and a magnifying glys symbol next to them. Click the magnifier to open the formatting dialog and you can search for specific attributes or styles. The trashcan clears the formatting.
For the first query that swaps the position you don't need any find formatting, but now that I think about it, it would be a great idea to open the Change formatting and choose the Endnote Reference character style in the dropdown. That will eliminate the need to do a third query to fix the last digit, so:
Change $2$1 and set the change formatting to Endnote Reference
Find \. and set the find formatting to Endnote Reference
Leave the change field blank, but set the change formatting to the None character style.
That should do it.
I've done it!! Thanks so much Peter for all the trouble you went to I really appreciate it. Your patient and courteous manner makes this forum a pleasure to deal with.