Mobile menu

Inserting placeables with Autohotkey
Thread poster: Jabberwock

Jabberwock  Identity Verified
Poland
Local time: 19:07
Member (2004)
English to Polish
Jan 26, 2009

This would be probably most useful for those who already use AHK scripts when working with Trados...

In my very personal opinion the method of inserting placeables in Trados is plain stupid. In 99% of cases you just need to insert them sequentially, so what you need to do is (let's assume Alt+Ctrl+Down) inserts the next placeable in sequence, starting with the first one):

Write text [Alt+Ctrl+down] write some more [Alt+Ctrl+down] write even more [Alt+Ctrl+down]

Unfortunately, Trados wants you to do:

Write text [Alt+Ctrl+down][right] write some more [Alt+Ctrl+right][right] write even more [Alt+Ctrl+right][right]

First, you have to use two different shortcuts to enter the placeable and remember if it's the first one or not, then you have to press the right arrow, as the placeable is selected when inserted and typing will overwrite it... Not very smart.

Below is a AHK script that somehow helps with that. Please note that „intelligent” placeable insertion is possible only if the segment has been opened with the AHK Set/Close Next Open/Get shortcut. Of course, you might also add a shortcut for just Open/Get (or just Open) and put the „opened = 1” instruction there as well. The same principle will work with terms, you just have to use different shortcuts and another variable for the opened segment.


Code:

; This is a shortcut for Set/Close Next Open/Get - in my case it's Alt+j, but you might use another

<!j::
{
opened = 1
Send !{Numpadadd}
}
return

; This is a shorcut to place next placeable and clear the selection - in my case it's Alt+k,
; but it can be anything else
<!k::
if opened = 1
{
opened = 0
Send {Alt Down}{Ctrl Down}{Down}{Ctrl Up}{Alt Up}{right}
}
Else
{
Send {Alt Down}{Ctrl Down}{right}{Ctrl Up}{Alt Up}{right}
}
return



[Edited at 2009-01-27 10:48 GMT]


Direct link Reply with quote
 

Tomás Cano Binder, CT  Identity Verified
Spain
Local time: 19:07
Member (2005)
English to Spanish
+ ...
Thanks a lot! Jan 27, 2009

Honestly I never gave this much thought, although we do work around tags all the time. We use Autohotkey for SetCloseOpenGet and to look for new/edited segments (we add a little mark to each edited or new translation) and SetClose them. But Autohotkey is very powerful indeed with Trados and TagEditor!

Direct link Reply with quote
 

Jabberwock  Identity Verified
Poland
Local time: 19:07
Member (2004)
English to Polish
TOPIC STARTER
CODE is not working... Jan 27, 2009

For some reason the BBCode for CODE was not working... I have edited it again.

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 »

Inserting placeables with Autohotkey

Advanced search


Translation news related to SDL Trados





memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use SDL Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

More info »



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