Skip to main content
dans33352417
Participant
February 17, 2020
Answered

Find and replace a footnote inside punctuation

  • February 17, 2020
  • 2 replies
  • 1705 views

Hello,

 

Is there any way of finding and replacing footnotes inside punctuation with the same number footnote outside the punctuation? I don't mind doing separate find and replaces for all conceivable types of punctuation (full stops, commas, exclamation and question marks) but if I have to do it all manually it's going to take days as there are thousands of footnotes and almost all of them have been placed inside punctuation, i.e. footnote then full stop rather than the footnote after the full stop. I know there is a GREP to find the footnotes but I can't find a way of getting it to replace the footnote with the same footnote, or of leaving the footnote and moving the punctuation. Thanks in advance!

This topic has been closed for replies.
Correct answer vladan saveljic

try this grep

find:

(~F)([[:punct:]])

change to

$2$1

2 replies

libramente
Participant
June 30, 2020

Hello Vladan (and hello all!),

I have the reverse problem, and... I set the grep ([.,])(~ F) (but also your ([[:punct:]])(~F) ), and this correctly finds the expressions. But with $2$1 (or in no other way) it is impossible to move the note marker, which now appears into text as <?>. What am I doing wrong? (win10, indd 15.1.1). I'm really envying the result of your animation... Thanks a lot!

vladan saveljic
Inspiring
July 1, 2020

You don't do anything wrong
Unfortunately it is a malicious bug that has practically always been present in indesign.
You should report it here
https://indesign.uservoice.com/forums/601180-adobe-indesign-bugs

 

we hope adobe engineers will soon find the solution to this problem.

 

In addition to what I have written before, you can work around this problem with script.

With script everything works fine.

Known Participant
November 16, 2020

Hello

 

Witth a script (find/replacce grep) I have the <?> bug. How do you solve it?

 

Thanks

Christian

 

vladan saveljic
vladan saveljicCorrect answer
Inspiring
February 18, 2020

try this grep

find:

(~F)([[:punct:]])

change to

$2$1

dans33352417
Participant
February 18, 2020

Thanks.

Someone else suggested:

 

(~F)([.,?!~e])

 

As ([[:punct:]]) includes all punctuation signs including emdashes and parentheses which you might not want replacing.

 

Anyway, I thought I'd put this up as it's useful to have both options for anyone else that has the same problem.

Thanks again!