![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: [Solved] Sending a Unicode character: What am I doing wrong? Topic Summary: TL;DR let an external program handle it Created On: 03/11/2019 12:13 PM Status: Post and Reply |
|
![]() |
![]() |
- locution | - 03/11/2019 12:13 PM |
![]() |
![]() |
- Alan Cantor | - 03/11/2019 12:39 PM |
![]() |
![]() |
- locution | - 03/11/2019 01:14 PM |
![]() |
![]() |
- locution | - 03/11/2019 02:47 PM |
![]() |
![]() |
- PG LTU | - 03/11/2019 06:44 PM |
![]() |
![]() |
- locution | - 03/12/2019 02:08 AM |
![]() |
![]() |
- monkey8 | - 03/17/2019 01:47 PM |
![]() |
![]() |
- Edgar | - 03/18/2019 11:38 AM |
![]() |
![]() |
- locution | - 03/20/2019 06:40 PM |
![]() |
![]() |
- locution | - 03/23/2019 04:45 AM |
![]() |
![]() |
- David.P | - 12/17/2021 10:24 AM |
![]() |
![]() |
- Ag | - 02/21/2022 05:11 PM |
![]() |
|
Howdy there, The character I want: this arrow: → Link to the character: U+2192 What I tried:
|
|
|
|
![]() |
|
You can insert the right arrow symbol as part of an "Auto-Text" macro.
|
|
|
|
![]() |
|
@Alan Thank you for your reply. When I do that, the arrow saves properly in the command window, but when I trigger the command, Dragon sends a question mark (U+003F). The question mark is not just how my editor displays an unknown character, but it is the character that it receives (I know this because EditPad lets me see the code point for each character). I can change the encoding at will but will not get the desired character because the proper code point is not there. Does it work on your side? (If anyone else is reading, for future reference, would also like to know how to send the character via scripting.) |
|
|
|
![]() |
|
In the meantime, this is my workaround, but it makes no sense that it should be so complex.
2. AutoHotkey processes the key and sends the text ^!+k:: ; ctrl alt shift k to send DLE →
Temporary conclusions But I am new to Dragon and would love to hear the take of the experts here!!! I still think that I must be doing something wrong. |
|
|
|
![]() |
|
I seem to recall that the basic used by Dragon only goes up to 256? characters (UTF8?) in string conversion so maybe that has something to do with it. Of course it is easy to script a command to do it. You don't need AHK to hold the alt key down while pressing several numpad numbers (Dragon calls them "{Pad0..9}") but 2192 gives: É and 8594 gives: Æ so not sure about your →.
EDIT: Interesting. While speaking and dictating into the quick reply box the correct character → shows up. But on posting, they alll got converted to "?" so I had to paste it back in. -------------------------
|
|
|
|
![]() |
|
> But on posting, they alll got converted to "?" so I had to paste it back in.
Yep, I've tried to all that stuff but having managed to make it work. I'm sure there's a better way to do it than my current solution, but not finding what it is. Looking forward to any insights. |
|
|
|
![]() |
|
You can't send Unicode characters with SendKeys but you can use the clipboard like so with advanced scripting or KB.
Sub Main Clipboard ChrW(&h2192) SendKeys"^v" End Sub
→
In the next release of KB I will make it so you will be able to send Unicode characters by using SendKeys. "SendKeys ChrW(&h2192)" will likely give you a ? until then. Can't do anything about advanced scripting because that is under the control of Dragon.
→→→→
------------------------- |
|
|
|
![]() |
|
you will be able to send Unicode characters Fantastic! Not only a current workaround but a fix for the next version of KnowBrainer. Thanks! ------------------------- -Edgar |
|
|
|
![]() |
|
Thank you for the working answer @monkey8 |
|
|
|
![]() |
|
For any other newbies on the same track, here is a variation that doesn't lose the contents of the clipboard.
Sub Main |
|
|
|
![]() |
|
FWIW, I seem to get varying mileage when trying to dictate Unicode text.
Unfortunately, like almost everything else regarding the formatting of postings, Unicode does not work in this forum software which dates from the stone age, so the Unicode characters above all appear as normal question marks. ------------------------- Sennheiser MKH Mic |
|
|
|
![]() |
|
In case anyone cares, I have a Dragon command "UNICODE
e.g. ;; U+00AF MACRON (U+00AF) ¯ arial_unicode_ms global.simple( { keys: "{U+00AF}", regex: "unicode (\x{00af}|MACRON)" } ) ;; U+00B0 DEGREE SIGN (U+00B0) ° arial_unicode_ms global.simple( { keys: "{U+00B0}", regex: "unicode (\x{00b0}|DEGREE SIGN)" } ) ;; U+00B1 PLUS-MINUS SIGN (U+00B1) ± arial_unicode_ms global.simple( { keys: "{U+00B1}", regex: "unicode (\x{00b1}|PLUS-MINUS SIGN|\+/-( sign)?|plus( or)?( (-|minus))( sign)?)" } ) A straightforward global edit of various unicode tables, To get the official names. Plus idiosyncratic additions of my own more human friendly names. ------------------------- 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-2023 FuseTalk™ Inc. All rights reserved.