Replace using Wildcards or Regular Expressions in Trados Studio 2017 SR1

What "expression pair using wildcards" should I use in "Find What" and "Replace With" in order to replace dot (.) with comma (,) on several number sequences in Trados Studio 2017 SR1?

For example, a "Chemical_Project.docx.sdlxlif" file has the description of several organic compound syntheses and several different 1H NMR number data, such as, for example, 1H NMR (400 MHz, CDCl3): δ 8.38 (d, J = 4.6 Hz, 1H), 8.00 (dd, J = 8.8, 5.5 Hz, 2H), 7.44 (d, J = 4.6 Hz, 1H), 7.09 (t, J = 8.8 Hz, 2H), 4.41 – 4.14 (m, 4H), 4.05 – 3.75 (m, 4H), 1.37 (s, 9H).

Such different 1H NMR number data is shown on several Source Segments that should be copied to the respective Target Segments, and each dot (.) (only in numbers) should be replaced with a comma (,). The above 1H NMR number data, for example, should be "translated" as " RMN de 1H (400 MHz, CDCl3): δ 8,38 (d, J = 4,6 Hz, 1H), 8,00 (dd, J = 8,8, 5,5 Hz, 2H), 7,44 (d, J = 4,6 Hz, 1H), 7,09 (t, J = 8,8 Hz, 2H), 4,41 – 4,14 (m, 4H), 4,05 – 3,75 (m, 4H), 1,37 (s, 9H)."

In Microsoft Word 2010, the replacement of dot (.) with comma (,) (in several number sequences, as shown above) is done very quickly using:

FIND What: ([0-9]).([0-9])

REPLACE With: \1,\2

Use wildcards


Unfortunately I did not find yet an expression pair similar to ([0-9]).([0-9]) and \1,\2 (using wildcards) that works in Trados Studio 2017 SR1.

Would be possible to use a Regular Expression instead of wildcards? If possible, what regular expression should be used?

Thank you very much for your kind attention.

Best regards,

Renato Colonna Rosman

Parents
  • Under normal circumstances, numbers (thousads- and decimal separator) should be localized automatically:

  • Dear Even Polenka

    Thanks for your very kind suggestion.

    My Trados Studio 2017 SR1 is configured using the Auto-Substitution (on both Project Settings and Options), including numbers, as shown on your message, but such setting is not working correctly.

    I am translating a very big Chemical Patent Text (Project with 270 pages), that was sent by an USA-Customer as a "Project Package".

    The said Project Package contains the "Project.docx.sdlxlift" file that was first submitted to  "Automatic Translation".

    Unfortunately the "Automatic Translation", based on the USA-Customer's Translation Memory database, does not copy accurately each Source Segment containing 1H NMR number data to the respective Target Segment, and does not replace a dot (.) in each number with a comma (,). Thus, it is necessary to copy each Source Segment containing the 1H NMR number data to the respective Target Segment, and, then, to replace manually each dot (.) in each number with a comma (,), which is a very laborious and tiresome work, because the said Project has a huge number of Organic Compound Synthesis Examples containing 1H NMR number data.

    Perhaps I could use the "Advanced Display Filter" in order to show only the non-Translated Target Segments (containing the 1H NMR number data) and, then, replace each dot in each number with a comma, using "Find and replace".

    Do you have another suggestion?

    Thank you very much for your kind attention,

    Best regards,

    Renato Colonna Rosman

    Rio de Janeiro, Brazil.

Reply
  • Dear Even Polenka

    Thanks for your very kind suggestion.

    My Trados Studio 2017 SR1 is configured using the Auto-Substitution (on both Project Settings and Options), including numbers, as shown on your message, but such setting is not working correctly.

    I am translating a very big Chemical Patent Text (Project with 270 pages), that was sent by an USA-Customer as a "Project Package".

    The said Project Package contains the "Project.docx.sdlxlift" file that was first submitted to  "Automatic Translation".

    Unfortunately the "Automatic Translation", based on the USA-Customer's Translation Memory database, does not copy accurately each Source Segment containing 1H NMR number data to the respective Target Segment, and does not replace a dot (.) in each number with a comma (,). Thus, it is necessary to copy each Source Segment containing the 1H NMR number data to the respective Target Segment, and, then, to replace manually each dot (.) in each number with a comma (,), which is a very laborious and tiresome work, because the said Project has a huge number of Organic Compound Synthesis Examples containing 1H NMR number data.

    Perhaps I could use the "Advanced Display Filter" in order to show only the non-Translated Target Segments (containing the 1H NMR number data) and, then, replace each dot in each number with a comma, using "Find and replace".

    Do you have another suggestion?

    Thank you very much for your kind attention,

    Best regards,

    Renato Colonna Rosman

    Rio de Janeiro, Brazil.

Children