RE: Change order of entries in replacement list

2 years 4 months ago #113 by Mia

Transtools has been really helpful and today I worked with the Multiple Replace feature for the first time.

Would it be possible to add the option to sort the items in the Replacement List?
I'm trying to create a list where the replacements need to be executed in a specific order (that is not alphabetical). At the moment I have to use two lists to make sure, that everything works as intended.

Thank you for all your hard work and have a wonderful New Year!

Please Log in or Create an account to join the conversation.

2 years 4 months ago #114 by stanislav
Hello Mia,

Thank you. Happy New Year to you, too!

Multiple Replace tool does not require the replacement list items to be sorted in a particular way in order to perform replacements in the correct order. When you click Replace All button, the tool sorts items automatically, and also makes sure that longer items that contain shorter items are replaced before the short items (e.g. "Dogville" will be replaced before "Dog"). However, there is a small likelihood that some unintended replacements will take place: e.g. if "Dogville" is replaced with "Dogvillage", then "Dog" will still be found in the new text and if "Dog" is to be replaced with "Cat", "Catvillage" might appear as a result. However, when correct search/replacement parameters are used (e.g. Match Whole Word), the likelihood is very low.

If you want to make sure that the replacements have been performed correctly, you can select a highlight color to be applied to replacements, and then check the highlighted text. You can also enable tracked changes in the document which will allow you to decline certain additions/deletions (since each replacement is recorded as two changes), or use Word's Undo command to undo all replacements made. In my previous tests and based on user experience, there have not been any issues, but it's best to verify in case you have similarities between replacement items.

If you perform a lot of replacements regularly, I would also recommend for you to try Multiple Find & Replace tool which is part of another product called TransTools+. This tool has a feature called Find All - you click Find All button and it finds all items in your replacement list, displaying them in a list. You can then go through all occurrences and make sure that they are correct, change replacement text for certain occurrences (e.g. a specific declension or plural form) or uncheck the occurrences you do not want replaced. You then click Replace Selected button to perform replacements. Multiple Find & Replace has a lot in common with Multiple Replace tool, and most of the time you should be able to migrate your replacement list from Multiple Replace tool to Multiple Find & Replace tool by exporting the list to the clipboard in TransTools and then importing the list from clipboard in TransTools+.
Here is a link to Multiple Find & Replace tool information page in case you would like to learn more:

Best regards,
Stanislav Okhvat
TransTools – Useful tools for every translator

Please Log in or Create an account to join the conversation.