Hello everyone,
Really not sure I'm in the right category for this since I'm really new at anything coding – and programming – related but I'm looking for a way to automate a task that is taking me forever to do by hand.
I'm a graphic designer and I'm working on a book collecting a lot of text entries (Twitter trending terms, for every hour over the course of the year 2022, so around 8,7k words). For design and legibility purposes, I would like to add a Tab symbol before a term anytime it is consecutively recurrent, and reset it anytime another term shows up. It would look something like this (with em-dashes instead of tabs here):
...
Term 1
—Term 1
——Term 1
———Term 1
Term 2
—Term 2
Term 1
—Term 1
——Term 1
Term 3
Term 2
—Term 2
...
Could anyone (try to) explain to me how would I go about writing such a script ?
For now, the text is stored in Excel cells because it is convenient to paste into InDesign tables.
Also, for the patient pedagogues amongst you, there are two caveats that I would assume could cause issues:
-Some of the terms are multi-word phrases or contain hashtags
-Each page of the book contains a day, so the script would need to hard-reset every 24 terms (24 hours) no matter what
Thank you for reading and I hope you have a nice day,
Nino from Brussels
Really not sure I'm in the right category for this since I'm really new at anything coding – and programming – related but I'm looking for a way to automate a task that is taking me forever to do by hand.
I'm a graphic designer and I'm working on a book collecting a lot of text entries (Twitter trending terms, for every hour over the course of the year 2022, so around 8,7k words). For design and legibility purposes, I would like to add a Tab symbol before a term anytime it is consecutively recurrent, and reset it anytime another term shows up. It would look something like this (with em-dashes instead of tabs here):
...
Term 1
—Term 1
——Term 1
———Term 1
Term 2
—Term 2
Term 1
—Term 1
——Term 1
Term 3
Term 2
—Term 2
...
Could anyone (try to) explain to me how would I go about writing such a script ?
For now, the text is stored in Excel cells because it is convenient to paste into InDesign tables.
Also, for the patient pedagogues amongst you, there are two caveats that I would assume could cause issues:
-Some of the terms are multi-word phrases or contain hashtags
-Each page of the book contains a day, so the script would need to hard-reset every 24 terms (24 hours) no matter what
Thank you for reading and I hope you have a nice day,
Nino from Brussels