Skip to main content
Known Participant
November 11, 2024
Question

Retaining Index Markers When Replacing Citations in InDesign with FindChangeByList.jsx

  • November 11, 2024
  • 1 reply
  • 331 views

I have a long list of cases (some 1200) cited incorrectly across multiple volumes. I've set up a text file for the FindChangeByList.jsx to find the incorrect citations and replace them with the correct ones.
But I want to retain the index markers in cases where the marker is inside the citation.

My solution was to demarcate each case with « and » at the beginning and end of the citation, and then to find index markes between « and » and place them before «.

For this I searched for the citations and replaced them with the found text with « and » around it: «$0»

In the Find/Change dialog this worked, and the index markers were retained.

However, when I did it via FindChangeByList.jsx, the marker itself disappeared, but a remnant remained, something like a blue colon. See below.


If I copy and paste the blue colon into a find/change dialog box, it is pasted as ~I, i.e. index marker. But if I search for it, it's not found.
Any ideas on how I can go about moving the index markers outside the citation, i.e. at its beginning or end?

 

 

<Title renamed by MOD>

This topic has been closed for replies.

1 reply

Robert at ID-Tasker
Legend
November 11, 2024

Can you share a sample INDD document with a few instances?

 

Known Participant
November 11, 2024

Thank you for your response. Here are some sample pages.

Known Participant
November 12, 2024

And below is a line showing what I did in the text file used with FindChangeByList.

grep {findWhat:"Ex parte Chilowore, and Similar Cases 2021 \(4\) SA 510 \(GJ\)"} {changeTo:"«$0»"} {includeFootnotes:true, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Fix