Defining what ends a word in auto-correct
Thread poster: Daniel Frisano
Daniel Frisano
Daniel Frisano  Identity Verified
Italy
Local time: 12:41
Member (2008)
English to Italian
+ ...
Mar 24, 2022

Say you have a list of auto-correct pairs, e.g. tm auto-corrects to transmission.

This means that certain characters that you type after tm trigger the correction, usually a space, but also a comma, full stop, etc.

The backslash is one of such characters, meaning that tm\\ auto-corrects to transmission\\ before you type a space or anything else.

Now, I'd like the backslash to be non-triggering or non-word ending, meaning t
... See more
Say you have a list of auto-correct pairs, e.g. tm auto-corrects to transmission.

This means that certain characters that you type after tm trigger the correction, usually a space, but also a comma, full stop, etc.

The backslash is one of such characters, meaning that tm\\ auto-corrects to transmission\\ before you type a space or anything else.

Now, I'd like the backslash to be non-triggering or non-word ending, meaning that tm\\ is kept as tm\\. Can you do that?

It's memoQ 9.3.
Collapse


 
Stepan Konev
Stepan Konev  Identity Verified
Russian Federation
Local time: 13:41
English to Russian
Awkward workaround Mar 26, 2022

Probably there is a more elegant way to do that, but what I could think of is using an AHK script:
;=======================
#IfWinActive memoQ
\::
Send 0
Send \
Send {Left}
Send {Backspace}
Send {Right}
return
#IfWinActive
;=======================
Roughly speaking it re-maps backslash to type character '0' first (to avoid conversion), then it types the backslash character itself, and finally deletes character '0'.
The
... See more
Probably there is a more elegant way to do that, but what I could think of is using an AHK script:
;=======================
#IfWinActive memoQ
\::
Send 0
Send \
Send {Left}
Send {Backspace}
Send {Right}
return
#IfWinActive
;=======================
Roughly speaking it re-maps backslash to type character '0' first (to avoid conversion), then it types the backslash character itself, and finally deletes character '0'.
The meaning of the strings are as follows:
1. Only for memoQ
2. When pressing \
3. Type '0'
4. Type \
5. Move cursor to the left
6. Press Backspace
7. Move cursor to the right

If you add a shortcut for this script into your Startup folder (press Win+R, type shell:startup, press Enter), it will always work in memoQ.

[Edited at 2022-03-26 15:36 GMT]
Collapse


 
Daniel Frisano
Daniel Frisano  Identity Verified
Italy
Local time: 12:41
Member (2008)
English to Italian
+ ...
TOPIC STARTER
  Mar 29, 2022

Works like a charm, thanks again!

 


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


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

Defining what ends a word in auto-correct






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! »