Inserting placeables with Autohotkey
Thread poster: Jaroslaw Michalak

Jaroslaw Michalak  Identity Verified
Poland
Local time: 23:44
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]


 

Tomás Cano Binder, BA, CT  Identity Verified
Spain
Local time: 23:44
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!

 

Jaroslaw Michalak  Identity Verified
Poland
Local time: 23:44
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.

 


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







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

SDL Trados Studio 2019 has evolved to bring translators a brand new experience. Designed with user experience at its core, Studio 2019 transforms how new users get up and running, helps experienced users make the most of the powerful features, ensures new

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



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