-
Notifications
You must be signed in to change notification settings - Fork 131
Description
I am working on Ubuntu 22.04.4, having cloned the nerd-dictation version aceb2bf.
To type in Wayland apps like Thunderbird and Libre-Office Writer, I use dotool (v 1.5-1-g945a7daedeef).
However, strokes that require shift presses, such as uppercase letters, apostrophes, and question marks, are mistyped as their "lowercase" counterparts.
For example, the sentence "It’s a good day. Shall we go for a walk?" is typed as "it#s a good day. Shall we go for a walkß" with a german keyboard layout.
The punctuation is automatically added in the nerd_dictation_process.
I have also found a solution by increasing the hold time of the key strokes by changing line 234 of nerd-dictation:
proc.stdin.write("keydelay 4\nkeyhold 0\ntypedelay 12\ntypehold 0\n") to
proc.stdin.write("keydelay 4\nkeyhold 8\ntypedelay 12\ntypehold 8\n")
If keeping the hold time at 0 is not necessary, it might be better to allow changing these settings in a config file rather than in the program script.