• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

I want to put the period before my superscript footnote numbers. How? GREP?

Explorer ,
Oct 16, 2017 Oct 16, 2017

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:

Schermafbeelding 2017-10-16 om 17.15.28.png

Schermafbeelding 2017-10-16 om 17.15.52.png

Views

1.8K

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
community guidelines

correct answers 1 Correct answer

Mentor , Nov 10, 2017 Nov 10, 2017

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:

Stage1.png

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

...

Votes

Translate

Translate
Mentor ,
Oct 16, 2017 Oct 16, 2017

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...

Votes

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
community guidelines
Explorer ,
Nov 09, 2017 Nov 09, 2017

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

Votes

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
community guidelines
LEGEND ,
Nov 09, 2017 Nov 09, 2017

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! 

Capture d’écran 2017-11-10 à 01.26.55.png

Capture d’écran 2017-11-10 à 01.27.20.png

Capture d’écran 2017-11-10 à 01.53.57.png

(^/)

Votes

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
community guidelines
Explorer ,
Nov 10, 2017 Nov 10, 2017

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.

Votes

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
community guidelines
Community Expert ,
Nov 10, 2017 Nov 10, 2017

Copy link to clipboard

Copied

Caroline,

Sorry but you're being spoofed by Obi-wan. He wants to ​sell you his script. ​

Votes

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
community guidelines
LEGEND ,
Nov 10, 2017 Nov 10, 2017

Copy link to clipboard

Copied

LATEST

Steve,

Not at all! I just indicate that if you want to simply do it in 1 click, you'll need a script!

(^/) 

Votes

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
community guidelines
Mentor ,
Nov 10, 2017 Nov 10, 2017

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:

Stage1.png

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

Stage2.png

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!

Stage3.png

And finalizing:

Find what:

(¦)([,\d]+)(†)

Change to:

$2

Change format:

Character Style: my orange numbs

Stage4.png

Votes

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
community guidelines
LEGEND ,
Nov 10, 2017 Nov 10, 2017

Copy link to clipboard

Copied

More funny with real footnotes! 

(^/)

Votes

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
community guidelines
Explorer ,
Nov 10, 2017 Nov 10, 2017

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!!!

Votes

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
community guidelines
Mentor ,
Nov 10, 2017 Nov 10, 2017

Copy link to clipboard

Copied

@Caroline:

you're welcome, glad to help

@Obi-wan:

GREP has even more fun, whatever ​

Votes

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
community guidelines