Thanks Peter, this works for me on an index using "Latin digits" (Arabic numerals of Latin script) (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). However for an index using "Arabic digits" (Indian numerals of Arabic script) (٠١٢٣٤٥٦٧٨٩) there was no change. Now, in this Arabic index, I notice that the digits were "hard coded" such that changing the language preferences in the paragraph settings did not change the style of digits (even though the preferred digits were available in the font). Of course, there are different styles of digits in use in languages which use the Arabic script (e.g. Arabic, Farsi, Urdu) and there are many other styles of difits around the world. I do not suppose that a simple script can account for every form of "hard coded" digits where we have the correct glyph for a digit but it is not necessarily recognised as a digit by the system (e.g. Windows, Mac) and/or the software (InDesign). So, for these alternative-language digit adjustments, first we have to replace the digits then we have to use the adjustment script, then change the digits back again. I just thought I would mention it here for posterity.
... View more