Highlighted

Find and replace a footnote inside punctuation

New Here ,
Feb 17, 2020

Copy link to clipboard

Copied

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!

Adobe Community Professional
Correct answer by vladan saveljic | Adobe Community Professional

try this grep

find:

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

change to

$2$1

ezgif.com-video-to-gif.gif

TOPICS
Scripting, Type

Views

218

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Find and replace a footnote inside punctuation

New Here ,
Feb 17, 2020

Copy link to clipboard

Copied

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!

Adobe Community Professional
Correct answer by vladan saveljic | Adobe Community Professional

try this grep

find:

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

change to

$2$1

ezgif.com-video-to-gif.gif

TOPICS
Scripting, Type

Views

219

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 17, 2020 0
Adobe Community Professional ,
Feb 18, 2020

Copy link to clipboard

Copied

try this grep

find:

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

change to

$2$1

ezgif.com-video-to-gif.gif

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 18, 2020 3
New Here ,
Feb 18, 2020

Copy link to clipboard

Copied

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 18, 2020 1
New Here ,
Jun 30, 2020

Copy link to clipboard

Copied

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 30, 2020 0
Adobe Community Professional ,
Jul 01, 2020

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 01, 2020 0