Mobile menu

Inserting placeables with Autohotkey
Thread poster: Jabberwock

Jabberwock  Identity Verified
Poland
Local time: 18:16
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: 18:16
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: 18:16
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





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 »
Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »



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