AutoText / Variables --- wildcards / regular expressions / ?
Thread poster: Florian Betz

Florian Betz
Germany
Local time: 06:06
English to German
+ ...
Aug 31, 2014

I've been working on a big-ish project that has the same type of 'code' appearing over and over again and Studio (2011) wants me to type it in manually every time. I'm looking for a way to make my life easier here, because the codes are all pretty similarly constructed: it's something like "NAME6.000.1234" with only the underlined part changing every time.

I've tried adding "NAME6.000." to the AutoText feature, but
a) I still have to type NAME (the first 4 characters) before that is triggered, saving me relatively little time (why is it 4? entries from the Termbase trigger after 2 characters..), and
b) of course that still leaves me to type in the variable part at the end (the numbers that I was hoping to avoid in the first place).

So, after some more research I found the Variables list, which as far as I can tell, doesn't help me either, because it apparently only works when the whole variable can be matched, so adding "NAME6.000." will simply not match anything in my source text, thus not giving me any placeables to work with.

So I was wondering if there was any way of getting the variable list (or AutoText for that matter) to accept wildcards or even regular expressions.
Or maybe there's some other way of getting Studio to accept codes that aren't entirely numbers as placeables, or make them easier to handle somehow? I mean, I suppose I could edit the entire source text

I've found something called TermInjector - but I can't test it right now, because the site won't let me login at the moment ( http://www.proz.com/forum/sdl_trados_support/274067-sdl_my_account_login_does_not_work.html ).


Direct link Reply with quote
 
Bernard Lieber  Identity Verified
Local time: 06:06
English to French
+ ...
Terminjector... Aug 31, 2014

is the right way to go - I've got it and will forward it to you, just drop me a e-mail you can try it - this is a replacement rule works like a charm:

([A-Z]+)([0\.-9]+)\.([0-9]+) \1\2.\3 = save as UTF8

Cheers,

Bernard


Direct link Reply with quote
 

Florian Betz
Germany
Local time: 06:06
English to German
+ ...
TOPIC STARTER
Thank you Sep 1, 2014

That was kind of you to offer, Bernard, but yesterday's login problem is resolved now and I was able to download Terminjector from the App Store.
Will report back once I've had time to try it out.


//edit: works like a charm!

I made my own rule:
(.+)NAME([0-9])\.([0-9][0-9][0-9])\.([0-9][0-9][0-9][0-9])(.+) NAME\2.\3.\4

[Edited at 2014-09-01 11:35 GMT]


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

AutoText / Variables --- wildcards / regular expressions / ?

Advanced search







SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search