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

Consecutive alphabets

Explorer ,
Nov 10, 2023 Nov 10, 2023

Copy link to clipboard

Copied

Hi, I have a list of references numbered off with alphabets.

 

For example,

aOxford bCambridge cStanford

The alphabet has its own character style, while the reference content has its own different character style.

 

Due to a serious oversight, I desperately need to re-label my alphabet references, where it starts from a,b,c...z and restarts from a to z after every cycle of 26 references are completed.

 

How do I get this done? Would someone be able to write a script for me?

The idea would be to select all content that is under character style named "ref" and replace the content with consecutively cycling alphabets.

 

Here's another discussion of mine, where a similar script was written:

https://community.adobe.com/t5/indesign-discussions/grep-query/m-p/13597175#M516772

Thanks in advance!

TOPICS
How to

Views

93

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, 2023 Nov 10, 2023

Copy link to clipboard

Copied

I'm not clear on where you are or where you're trying to get to. 🙂

 

If you use/d InDesign's references features, you can change things on a global basis by adjusting the styles involved, as well as the footnote/end note/cross reference settings. That's by far the recommended way to manage these needs.

 

If your system is more manual, 'hand crafted,' unique to your doc... it's probably going to take a combination of scripts, GREP and find/replace to change your references to another model. If that's the case, the best approach would be to move the refs to one of ID's standard features, so that management and further changes are simpler.

 

Can you add some details to the description of the situation and your needs?


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

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 11, 2023 Nov 11, 2023

Copy link to clipboard

Copied

Sorry for the lack of clarity.

 

I'm working on a book which uses alphabets for its footnote referencing system. The footnotes are being created manually, not using ID's reference feature.

Now, the footnote references in the body content are correct, but the actual footnotes have to be renumbered from the start due to oversights.

Since the footnotes were created manually, it'll be quite painstaking to renumber all the 100+ footnotes from the top.

The footnotes have been given a character style called "ref".
Could someone type me a script to replace all text that has the "ref" style with the alphabets from A-Z, that auto-restarts from A once Z is hit?

P.S.

I didn't use ID's reference feature as the book layout design requires the footnote text to be along the side of the footnote ref in the main body of content (2 parallel text frames side-by-side instead of one above the other). If anyone knows how to customise ID's footnote system to suit this layout, I'd appreciate a link to a tutorial of that sort!

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 11, 2023 Nov 11, 2023

Copy link to clipboard

Copied

When you do that, make an autonumbered list. In the text use a cross reference to the paragraph which draws only the paragraph number. That will automatically update the numbers or letter according to the references. 

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 14, 2023 Nov 14, 2023

Copy link to clipboard

Copied

LATEST

Thanks for the input. However I noticed that an autonumbered list does not apply the superscript position of my character style. Here's how it looks when I manually added the references.

gethmed_0-1699957318577.png

 

Autonumbered list:

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