Număr de pagini: < [1 2] | Copy all tags from source to target in Studio 2014 Inițiatorul discuției: Tom Gale (X)
| MikeTrans Germania Local time: 13:50 din italiană în germană + ... A remarquable trick... | Nov 23, 2016 |
insolent wrote: Hi Tom, One way to do this: - Copy source to target - Open the Find&Replace dialog - Enable Regular expressions - Enter "." (period) and replace it with "" (nothing) Let Studio work its magic. Cheers Arndt Tricky! I wonder if it can be improved by defining your own tags in the Project Settings > Embedded Content Processors > Plain Text > Inline Tags If so, I would create new tags with the 'Add Rule' in order to make all bullets, $ numbers, all untranslatables to be tags and use your method afterwards. A tremendous time saver would be the result, at least for me. I wonder if this works or if I have to create tags elsewhere in the options. Mike | | | Nora Diaz Mexic Local time: 04:50 Membru (2002) din engleză în spaniolă + ... | MikeTrans Germania Local time: 13:50 din italiană în germană + ... Thanks Nora, | Nov 24, 2016 |
nice to meet you again I will surely take a look, my problem is that I cannot segment the source text differently, otherwise it would be quite easy (I would send to Word and strip all codes and formats out with Search & Replace and revert afterwards or use Codezapper.) But all my source segments must not be changed, they are in table format in a rtf file, I can only play with the Search & Replace and RegEx inside the segments, tha... See more nice to meet you again I will surely take a look, my problem is that I cannot segment the source text differently, otherwise it would be quite easy (I would send to Word and strip all codes and formats out with Search & Replace and revert afterwards or use Codezapper.) But all my source segments must not be changed, they are in table format in a rtf file, I can only play with the Search & Replace and RegEx inside the segments, that's why the trick above is so interesting. Mike ▲ Collapse | | | Still doesn't work for me... | Nov 24, 2016 |
insolent wrote: Hi Tom, One way to do this: - Copy source to target - Open the Find&Replace dialog - Enable Regular expressions - Enter "." (period) and replace it with "" (nothing) Let Studio work its magic. Cheers Arndt It just removes the "." - where do I go wrong? | |
|
|
MikeTrans Germania Local time: 13:50 din italiană în germană + ... Hello Gabriele, | Nov 24, 2016 |
Gabriele Demuth wrote: insolent wrote: Hi Tom, One way to do this: - Copy source to target - Open the Find&Replace dialog - Enable Regular expressions - Enter "." (period) and replace it with "" (nothing) Let Studio work its magic. Cheers Arndt It just removes the "." - where do I go wrong? You have probably forgotten to chose Regular Expressions. You must tick Use and chose RegEx in the dropdown below. Mike | | | Nora Diaz Mexic Local time: 04:50 Membru (2002) din engleză în spaniolă + ... Step-by-step | Nov 24, 2016 |
MikeTrans wrote: nice to meet you again I will surely take a look, my problem is that I cannot segment the source text differently, otherwise it would be quite easy (I would send to Word and strip all codes and formats out with Search & Replace and revert afterwards or use Codezapper.) But all my source segments must not be changed, they are in table format in a rtf file, I can only play with the Search & Replace and RegEx inside the segments, that's why the trick above is so interesting. Mike Hi Mike, I think this would work for what you need. I don't know what your exact content is, but here's a step-by-step explanation of what would happen if you combine Jesse's plugin and the trick from this thread. Assuming you start with something like this: After you apply Jesse's plugin with the Cleanup Source batch task you would get this: Then you could copy all source to target and do the regex replace trick from this thread and would get this: As a final step, you would apply the second part of Jesse's plugin, the Cleanup target and generate files batch task and would then have this: And here's a screenshot of what the rules for something like this would look like in Jesse's plugin.
[Edited at 2016-11-24 15:30 GMT]
[Edited at 2016-11-24 15:31 GMT] | | | MikeTrans Germania Local time: 13:50 din italiană în germană + ... Thanks Nora, but I found an interesting RegEx too: | Dec 4, 2016 |
Very interesting this tool, but I just found some interesting RegEx commands that will join my Trados notes asap. Here they come: A) Keeping only chapter numbers from source segments in the target segments Scenario: You have plenty of source segments that start with: 1. 2.[1] 3.[1] 8.4 8.5 8.5.1 8.5.2 etc. First we filter with \A\d all source segments to have all those starting with digits. Then we copy... See more Very interesting this tool, but I just found some interesting RegEx commands that will join my Trados notes asap. Here they come: A) Keeping only chapter numbers from source segments in the target segments Scenario: You have plenty of source segments that start with: 1. 2.[1] 3.[1] 8.4 8.5 8.5.1 8.5.2 etc. First we filter with \A\d all source segments to have all those starting with digits. Then we copy all source to target. We select all text in the target segments and go to Find & Replace inserting these commands: In the Find & Replace Find: ............ [^\d\.\[\]].*$ Replace with ..... [space] (just a space!) Chose 'Current Selection'. Although the numbers are never the same in each segment we can retain all of them anyway by simply giving the command to EXCLUDE digits, points and brackets and matching all occurences after them until the end of segment. Only the chapter numbers remain in the target, a huge time saver for not inserting them manually each time !! B) Stripping out all content after bullets and spaces in all target segments. After filtering the segments and copy source to target, select whole target text and Find: ............ •\[1\].*$ Replace with ..... •[1] Chose 'Current Selection'. In this example, only •[1] remains in all targets. We are ready to type in translations with already the right format. Mike ▲ Collapse | | | Nora Diaz Mexic Local time: 04:50 Membru (2002) din engleză în spaniolă + ...
I like your solution, Mike, and it's faster than using the Cleanup Plugin tool. | |
|
|
Tina Mesec Slovenia Local time: 13:50 din franceză în slovenă + ...
insolent wrote: Hi Tom, One way to do this: - Copy source to target - Open the Find&Replace dialog - Enable Regular expressions - Enter "." (period) and replace it with "" (nothing) Let Studio work its magic. Cheers Arndt Thank you! This is amazing! | | | Erika Winpenny Elveţia Local time: 13:50 Membru (2005) din engleză în germană
insolent wrote: Hi Tom, One way to do this: - Copy source to target - Open the Find&Replace dialog - Enable Regular expressions - Enter "." (period) and replace it with "" (nothing) Let Studio work its magic. Cheers Arndt Arndt/insolent: This is genius! Thank you!!! | | | Număr de pagini: < [1 2] | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » Copy all tags from source to target in Studio 2014 Trados Studio 2022 Freelance | The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
More info » |
| Wordfast Pro | Translation Memory Software for Any Platform
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value
Buy now! » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |