Copy link to clipboard
Copied
In my document all superscript footnote numbers at the end of a sentence have the period follow the footnote number instead of preceding it.
The footnote numbers all have a character style.
How can I change the position of the period to BEFORE the superscript numbers?
THANKS!
example:
Well, I still believe, it’s possible using GREP... with some assuming, and in three steps. Unfortunately, GREP has some limitation/feature/bug we need to 'hack’. Also it’s a good idea to create special Character style for your numbs (if you haven’t the one already).
So, here’s our initial text:
We’ll need two additional glyphs that are NOT used anywhere in the text. I’ll use:
broken bar: ¦
dagger: â€
Find what:
[,\d]+
Change to:
¦$0â€
Find format: color: Orange
Change format:
color: [Black] + position: norma
...Copy link to clipboard
Copied
A bit more complicated since you have 'double' footnotes, and, possibly, not always?
Maybe in two steps?
First - remove unwanted period after footnote:
Find what:
~F,?~F?\K\.
Change to:
[leave blank]
Then insert period before footnote (or just before first one in a pair):
Find what:
\w\K~F
Change to:
.$0
UPDATE. Just for the record: everywhere above the written 'footnotes' should be read as 'Footnote Reference Markers'.
Sometimes (too) short words may lead to misconception...
Copy link to clipboard
Copied
Hi Winterm!
Thank you so much for trying to help.
Unfortunately they aren't 'Footnote Reference Markers' but just orange superior numbers...
So your trics didn't work and I still haven't found a solution...
Help!
C
Copy link to clipboard
Copied
Surely not with a simple Grep code!
~F(,~F)*[,;.?!…] if you play with "true" footnote calls!
\d+(,\d+)*[,;.?!…] if you play with "false" note calls!
In the first case, don't try! … To play it, you'll need a script!
In the second one, euh! … Well! you'll need the same script! [more simple to explain! ]
Of course, in the 2 cases, just enter the first or second Grep code into the first form ["Find:"] of the Find/Replace InDesign window …
… and just 1 click for launching the script!
Done!
(^/)
Copy link to clipboard
Copied
Dear Obi-wan Kenobi, I tried your solution too, but cannot see what you mean by "… and just 1 click for launching the script!". Am blond. Cannot find script.
Copy link to clipboard
Copied
Caroline,
Sorry but you're being spoofed by Obi-wan. He wants to ​sell you his script. ​
Copy link to clipboard
Copied
Steve,
Not at all! I just indicate that if you want to simply do it in 1 click, you'll need a script!
(^/)
Copy link to clipboard
Copied
Well, I still believe, it’s possible using GREP... with some assuming, and in three steps. Unfortunately, GREP has some limitation/feature/bug we need to 'hack’. Also it’s a good idea to create special Character style for your numbs (if you haven’t the one already).
So, here’s our initial text:
We’ll need two additional glyphs that are NOT used anywhere in the text. I’ll use:
broken bar: ¦
dagger: â€
Find what:
[,\d]+
Change to:
¦$0â€
Find format: color: Orange
Change format:
color: [Black] + position: normal
Here goes the main trick:
Find what:
(¦[,\d]+†)([[:punct:]])
Change to:
$2$1
Don’t forget to trash Find and Change formats before running this!
And finalizing:
Find what:
(¦)([,\d]+)(†)
Change to:
$2
Change format:
Character Style: my orange numbs
Copy link to clipboard
Copied
More funny with real footnotes!
(^/)
Copy link to clipboard
Copied
Thank you, thank you! I needed to fiddle a little bit with it but it worked, it WORKED!!!! You made my day, Thank you so much!!!
Copy link to clipboard
Copied
@Caroline:
you're welcome, glad to help
@Obi-wan:
GREP has even more fun, whatever ​