Copy link to clipboard
Copied
I have a document with about 150 endnotes (not footnotes) (yuck). When I brought it into indesign CS5.5 from word, it automatically changed all the numbers to regular 1-2-3-etc numbers. I was grateful they at least made it into the indesign document.
I tried changing the footnote number style to roman numerals, but of course, since they're not footnotes -- that didn't help.
Is there a way to do this by a GREP search and replace? If so, HOW and what do I type in?
They are all superscript, so I figure I'd find all the superscript numbers.... and just make a replace with Roman Numeerals -- just have no idea how to do it. Need it fast as I'm on deadline, as always.
Thank you!
Ty
Copy link to clipboard
Copied
Hi,
paste example and desired format, pls
Copy link to clipboard
Copied
Here's what I don't want:
Here's what I want: Lowercase Roman Numerals:
Thank you!
Copy link to clipboard
Copied
Hi,
try this:
var myDoc = app.activeDocument;
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\d+";
app.findGrepPreferences.position = Position.SUPERSCRIPT;
var myFound = myDoc.findGrep();
var l = myFound.length;
while(l--)
myFound
.contents = arabic2roman(myFound .contents); function arabic2roman (arab)
{
var roman = ''
if (arab < 4000)
{
var rom = [];
rom[0] = ["","i","ii","iii","iv","v","vi","vii","viii","ix"];
rom[1] = ["","x","xx","xxx","il","l","lx","lxx","lxxx","xc"];
rom[2] = ["","c","cc","ccc","cd","d","dc","dcc","dccc","cm"];
rom[3] = ["","m","mm","mmm","4m","5m","6m","7m","8m","9m"];
arab = arab.toString().split("").reverse().join("");
for (var i = 0; i < arab.length; i++)
roman = rom[arab.charAt(i)] + roman;
}
return roman
}
this function is pasted from some Peter Kahrel's script
Be awared: script will change all (whole active doc) superscripted digits into roman.
Limited to numbers less then 4000
rgds
Find more inspiration, events, and resources on the new Adobe Community
Explore Now