neo layout: punctuation does not work
Everything dictee does works very good for me! Thanks for this awesome project :-).
As soon as stuff is piped to dotool, then commas, get replaced with "Ö" characters and question marks get "ä" characters. This is probably a limitation/bug of dotool.
As a workaround, dictee could provide a setting that disables the typing. For me it would be fine to have the text in the clipboard.
Thanks @thorink , glad you like dictee!
'dotool' types by simulating key presses, so it needs to know which keyboard layout you use. It looks like it is not seeing your Neo layout, so the punctuation comes out wrong. Let's make it use Neo:
To help me fix it properly, could you tell me:
- your dictee version (the two-line fix below needs 1.3.6 or newer),
- your desktop: KDE, GNOME or other, and X11 or Wayland?
If your version is the last 1.3.6, try this:
Open ~/.config/dictee.conf , search 'DOTOOL_XKB_LAYOUT' and 'DOTOOL_XKB_VARIANT' and give it this value or if they don't exist, add these two lines, then restart dictee:
DOTOOL_XKB_LAYOUT=de
DOTOOL_XKB_VARIANT=neo
Does that fix the commas and question marks?
To skip typing: turn on "Copy transcription to clipboard" in dictee-setup, and just paste the text yourself.
I tried already to add this two setting to .config/dictee.conf. One deviation, though: I don't use neo, but the variant neo_qwertz.
Some more testresults, that might lead to something:
- With DE/NeoQwertz as KDE keyboard layout
echo "type hello, how are you?" | dotool: "hello, how are youẞ" (ẞ is a "uppercase ß" and is paced neoqwertz at the same spot where the ? is qwertz)- speaking with dictee: "HelloÖ how are you?"
- With DE/DE as KDE keyboard layout
echo "type hello, how are you?" | dotool: "hello, how are you?"- speaking with dictee: "HelloÖ how are you#h"
Regarding the skipping of typing: The copying to clipboard works, but dictee still invokes dotool. For me, if I want it in the clipboard, I usually don't want it get typed.
Hi @thorink ,
I finally decided to add the option you asked for: the transcript can now go through the clipboard instead of dotool typing. You will find it in the setup, on a new page called "Text output", with three choices:
- Type into the active window (current behavior)
- Paste all at once: your request
- Copy to clipboard only: nothing is typed or pasted, you paste the text yourself
I haven't cut the 1.3.7 release yet on GH, so here is the CLI to update your install right now:
sudo cp /usr/bin/dictee /usr/bin/dictee.bak
sudo cp /usr/bin/dictee-setup /usr/bin/dictee-setup.bak
sudo curl -fsSL -o /usr/bin/dictee https://raw.githubusercontent.com/rcspam/dictee/release/1.3/dictee
sudo curl -fsSL -o /usr/bin/dictee-setup https://raw.githubusercontent.com/rcspam/dictee/release/1.3/dictee-setup.py
# To update locales
sudo curl -fsSL -o /usr/share/locale/de/LC_MESSAGES/dictee.mo https://raw.githubusercontent.com/rcspam/dictee/release/1.3/po/de.mo
Then open dictee-setup, pick the mode on the "Text output" page and Apply. To roll back, restore the two .bak files.
Note that the paste mode replaces your clipboard content on every dictation. Let me know how it behaves on your setup, that feedback would be gold before the release.
1.3.7-rc4 is out as a pre-release with the Text output page. With the paste option, the punctuation should come out right on neo. To try it:
curl -fsSL https://github.com/rcspam/dictee/releases/download/v1.3.7-rc4/install.sh | bash -s -- --version 1.3.7-rc4
1.3.7 is out as the final release. The code is the same as rc4, only the version number changed. If you already run rc4, you don't need to do anything. Otherwise, to update:
curl -fsSL https://github.com/rcspam/dictee/releases/download/v1.3.7/install.sh | bash
If something still doesn't work for you, tell me here.