KnowBrainer Speech Recognition
Decrease font size
Increase font size
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
Linear : Threading : Single : Branch
 12/28/2020 10:25 PM
User is offline View Users Profile Print this message

Author Icon
Ag
Top-Tier Member

Posts: 644
Joined: 07/08/2019

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 runs the command digit-argument (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’.

Part of the numeric argument for the next command.
C-u following digits or minus sign ends the argument.

 

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)
32. 0x20 {Space}
0.   0x00 {null}

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.



 12/29/2020 11:14 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1187
Joined: 04/03/2009

Have you tried deleting (there are two) and re-creating these words?

-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 12/29/2020 08:50 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 859
Joined: 04/18/2009

~/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).
 12/29/2020 08:51 PM
User is offline View Users Profile Print this message


mdl
Top-Tier Member

Posts: 859
Joined: 04/18/2009

 12/29/2020 09:35 PM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2166
Joined: 03/21/2007

That answers a lot. Thx,

-------------------------




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.

 01/15/2021 01:27 AM
User is offline View Users Profile Print this message

Author Icon
Ag
Top-Tier Member

Posts: 644
Joined: 07/08/2019

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.

I suppose that I can write elisp for emacs, and Javascript for various webbrowsers, and ...

But it looks to me like a more fundamental and widespread problem.

--

BTW I did try disabling DragonCapture, and/or the dictation box, and it seems to make no difference.



-------------------------

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.



 02/01/2021 05:47 PM
User is offline View Users Profile Print this message

Author Icon
Ag
Top-Tier Member

Posts: 644
Joined: 07/08/2019

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.

Statistics
32132 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 372 guests browsing this forum, which makes a total of 372 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.