![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: @ (at-sign) has meta-bit set when sent from Dragon to Emacs, some Chrome WebForms, etc. Topic Summary: Created On: 12/28/2020 10:25 PM Status: Post and Reply |
|
![]() |
![]() |
- Ag | - 12/28/2020 10:25 PM |
![]() |
![]() |
- Edgar | - 12/29/2020 11:14 AM |
![]() |
![]() |
- mdl | - 12/29/2020 08:50 PM |
![]() |
![]() |
- mdl | - 12/29/2020 08:51 PM |
![]() |
![]() |
- PG LTU | - 12/29/2020 09:35 PM |
![]() |
![]() |
- Ag | - 01/15/2021 01:27 AM |
![]() |
![]() |
- Ag | - 02/01/2021 05:47 PM |
![]() |
|
BRIEF: in at least two places I have caught Dragon setting the meta-bit, bit seven, when emitting the @ symbol. specifically, emacs ( where it is interpreted as a repeat count)
and in many web forms, e.g. from Chrome, e.g. entering an email address, where it is just plain a different symbol.
---+ example: emacs When I am dictating into GNU Emacs using Dragon the @ sign emitted by Dragon has its "meta" bit set (bit 7)
e.g. the Dragon custom words entry "A@XYZ.com\\a at xyz dot com"
When typed into emacs produces
AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXY.com@XY.com
i.e. A{X rep 64}YZ.com
obviously this is problematic for email addresses.
does anyone know of a fix in Dragon?
I can fix it in the emacs by binding M-0 to @, but meta-0 or alt-0 already has a meaning in some emacs packages.
---+ TL;DR ( more detail)
I.e. Dragon's @ is interpreted as M-0 (meta-0, alt-0), which is (one of) EMACS' bindings for the command digit-argument, used to repeat the next character N times (or to provide a numeric argument many keyboard commands).
e.g. the Dragon custom words entry "A@XYZ.com\\a at xyz dot com"
When typed into emacs produces
AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXY.com@XY.com
i.e. A{X rep 64}YZ.com
===
From EMACS' built-in help-for-help, here is what C-/ k {speech "@sign"} gives in my emacs
where C-/ k … shows the translation from key (sequence) to command
M-0 (translated from … Part of the numeric argument for the next command.
Background: C-/ is emacs command help-for-help (at least my binding) and C-/ k k KEYS Display the full documentation for the key sequence. K KEYS Show the Emacs manual’s section for the command bound to KEYS.
I.e. somehow {speech "@sign"} is generating M-@ instead of @.
Note the ascii values 64. 0x40 @ (at sign) and M-0 == M-@ in most keyboard mappings
==
I conjecture that many apps are stripping the meta bit.
------------------------- DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design. |
|
|
|
![]() |
|
Have you tried deleting (there are two) and re-creating these words?
------------------------- -Edgar |
|
|
|
![]() |
|
~/elisp/dragon.el:135:
;;; ;;; Allow Dragon to enter non-ASCII characters: ;;; ;; ;; Dragon attempts to insert non-ASCII characters (e.g., accented ;; letters) using Window's hold down alt key and press 4 numeric ;; keypad digits method. The following code implements the part of ;; this input method used by Dragon for Gnuemacs. In particular, it ;; assumes input of the form {alt+NumKey0} {alt+NumKeyA} {alt+NumKeyB} ;; {alt+NumKeyC}, A, B, & C digits, to enter the Windows-1252 character ;; with number ABC (in decimal). E.g., use {alt+NumKey0} ;; {alt+NumKey2} {alt+NumKey3} {alt+NumKey9} to enter an i with 2 dots ;; above it (character number 239). |
|
|
|
![]() |
|
|
|
![]() |
|
That answers a lot. Thx,
-------------------------
|
|
|
|
![]() |
|
Thanks @mdl, but... I should have said that EMACS is not the only place I see this. It happens all over the place, e.g. in web browser login forms. ------------------------- DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design. |
|
|
|
![]() |
|
This setting of the meta-bit on @ sign frequently occurs when I enter an email address into a web form, not just in emacs.
I suppose I could create a command @, but I dislike pause before and after ------------------------- DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design. |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.