Quiclky disabling/enabling automatic term seach in the editor

Hello everyone,

My termbase is very large and searching for terms is time consuming, which slows down the editor.

In fact, I only need term recognition "on demand", i.e. when I have a doubt about how to translate a term.

Is there a quick way to enable/disable term recognition in the editor view (I mean not by opening the project settings and disabling the termbases - either by clicking on "project settings" or in the "termbase search window", which is about the same)?

Thanks for your help and advice.



A few things added after reply by Trados AI.
[edited by: Olivier at 4:28 PM (GMT 1) on 28 Apr 2024]
emoji
Parents Reply Children
  •  

    Often the requirements of translators can be extremely specific so that no standard solution can meet them all. I think many users found that AHK is a very useful tool to create amazing functionality very quickly. My experience with AHK is that you need to build in delays (Sleep, 100 or Sleep, 250) basically between each keystroke. Otherwise, the keystrokes are so fast that the UI stumbles and does not register this or that keystroke. That can even be for ^c or the like. If you run into problems with that, you might have to say explicitly “Press CTRL, wait, then press c, wait, then release CTRL”.

    You might also want to restrict this macro to running only in Studio and to never have more than one active instance.

    emoji
  • Thank you Daniel.

    Interesting. I'm going to try the delays to give the editor some time between commands. This will help, as my AHK macro doesn't always work. It probably needs some tweaking.

    emoji
  • Well the current AHK macro (for "CRTL !") looks like this.

    If no word is selected, the word under the cursor is searched in the TB, otherwise the selected word(s) is/are searched.

    The macro makes sure that the focus is in Studio when it is run.

    #SingleInstance Force
    #IfWinActive, ahk_exe SDLTradosStudio.exe  ; Only active when TRADOS is active
    
    ^!::  ; CRTL + !
    
    Suspend, On
    
    clipboard := ""  ; Start off empty to allow ClipWait to detect when the text has arrived.
    Send ^c ; Try to copy to the clipboard
    Sleep 200
    
    ; If nothing was copied to the clipboard, select the current word and copy it to the clipboard
    If (clipboard = "")
    {
    	;Clipboard does not contains data
    	Clipboard := ""
    	Send ^{Left}^+{Right} ; select current word
    	Sleep 100
    	Send ^c               ; copy selection to the clipboard
    	Sleep 250
    }
    
    Send !v ; ALT V
    Sleep 150
    Send t  ; T
    Sleep 150
    Send 3  ; 3
    Sleep 150
    
    ; we are in the Termbase Search panel
    ; Clear the content of the search box
    Send {End}
    Sleep 100
    Send +{Home}
    Sleep 100
    Send {Del}
    Sleep 100
    
    ; copy what's stored in the clipboard
    Send ^v
    
    ; execute search
    Send {enter}
    
    Suspend, Off
    
    return

    emoji