AutoText / Variables --- wildcards / regular expressions / ?
Thread poster: Florian Betz
Florian Betz
Florian Betz
Germany
Local time: 04:36
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
... See more
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 ).
Collapse


 
Bernard Lieber
Bernard Lieber  Identity Verified
Local time: 04:36
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


 
Florian Betz
Florian Betz
Germany
Local time: 04:36
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]


 


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 / ?







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! »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »