Quickly add current or all segments as term pairs
Автор темы: Hans Lenting
Hans Lenting
Hans Lenting
Нидерланды
Член ProZ.com c 2006
немецкий => голландский
May 28, 2022

AutoHotkey macro to add the current segments (source and target) to the default termbase:

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
;Name: QuicklyAddCurrentSegmentsAsTermpairToTermbase.ahk
;Purpose: Use this script to quickly add the current source and target segment as a term pair to the default termbase.
^q::
;Toggle to the source side and select up to the end of the segment
Send, {F6}
Send, ^+{Down}
;Toggle to the targ
... See more
AutoHotkey macro to add the current segments (source and target) to the default termbase:

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
;Name: QuicklyAddCurrentSegmentsAsTermpairToTermbase.ahk
;Purpose: Use this script to quickly add the current source and target segment as a term pair to the default termbase.
^q::
;Toggle to the source side and select up to the end of the segment
Send, {F6}
Send, ^+{Down}
;Toggle to the target side and select up to the end of the segment
Send, {F6}
Send, ^+{Down}
;Quickly add the selections to the default termbase
Send, ^+{F2}
Sleep, 1000
;Go to the next segment
Send, ^{Enter}
return

AutoHotkey macro to add all segments (source and target) to the default termbase:

Screen Shot 2022-05-28 at 07.29.36

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
;Name: QuicklyAddAllSegmentsAsTermpairToTermbase.ahk
;Purpose: Use this script to quickly add all segments as term pairs to the default termbase.
;All segments must be unconfirmed (Edited or Not Translated)
^w::
InputBox,Var,Quickly Add Term Pairs, How many Term Pairs (segments) do you want to add to the default Termbase?
loop, % Var
{
;Toggle to the source side and select up to the end of the segment
Send, {F6}
Send, ^+{Down}
;Toggle to the target side and select up to the end of the segment
Send, {F6}
Send, ^+{Down}
;Quickly add the selections to the default termbase
Send, ^+{F2}
Sleep, 1000
WinWaitActive, Selected Term Already Exists,,1
if !ErrorLevel
Send, {Enter}
;Go to the next segment; if you don't want to store translations in your TM, replace Send, ^{Enter} with Send, ^{Down}
Send, ^{Enter}
}
return
Collapse


 
Hans Lenting
Hans Lenting
Нидерланды
Член ProZ.com c 2006
немецкий => голландский
Автор темы
Special thanks May 28, 2022

Thank you Stepan, for your help!

Stepan Konev
 


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


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

Quickly add current or all segments as term pairs







TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

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 Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »