![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Lowercase/uppercase <text> Topic Summary: How can I find/write a command like that? Created On: 04/13/2019 03:24 PM Status: Post and Reply |
|
![]() |
![]() |
- missink | - 04/13/2019 03:24 PM |
![]() |
![]() |
- R. Wilke | - 04/13/2019 03:47 PM |
![]() |
![]() |
- missink | - 04/13/2019 05:51 PM |
![]() |
![]() |
- locution | - 04/13/2019 08:06 PM |
![]() |
![]() |
- Alan Cantor | - 04/13/2019 10:34 PM |
![]() |
![]() |
- Edgar | - 04/14/2019 12:57 PM |
![]() |
![]() |
- Lunis Orcutt | - 04/14/2019 02:06 PM |
![]() |
![]() |
- missink | - 04/19/2019 04:41 PM |
![]() |
![]() |
- locution | - 04/19/2019 05:06 PM |
![]() |
![]() |
- PG LTU | - 04/19/2019 06:36 PM |
![]() |
![]() |
- Scribe | - 05/23/2019 11:56 AM |
![]() |
![]() |
- PG LTU | - 05/23/2019 02:35 PM |
![]() |
|
Is there a command like "lowercase <text>? Or "uppercase <text>"? It is referenced in the Dragon for Mac documentation (link below), but I'm on Windows (DPI 15), and those commands don't seem to be available. https://www.nuance.com/products/help/dragon/dragon-for-mac/enx/Content/Formatting/Capitalization.htm If there are no such commands, is there a way to write them? I only have Dragon Professional, I don't have KnowBrainer, Vocola, etc. P.S. I realise I can say "select <text>" and then "lowercase/uppercase that", but it would be nice to have a faster workflow.
|
|
|
|
![]() |
|
An "uppercase" implementation exists in DPI 15. It is "capitalize xyz". A lowercase equivalent doesn't exist, but you can roll your own.
------------------------- The New Game in Town: DragonConnect |
|
|
|
![]() |
|
I'm afraid "capitalize <text>" isn't what I'm looking for here, because it produces title case. I'm looking for commands analogous to "uppercase that" (WHICH PRODUCES THIS) and "lowercase that" (which produces this), not "capitalize that" (Which Produces This). I haven't been able to figure out how to create my own. I tried, using HeardWord "select", <dictation>, but of course that didn't work, because HeardWord wants every word to be a separate argument. It did work in special cases where was exactly equivalent to an existing vocabulary entry, like "Microsoft Word", but of course I would like it to work for once-off phrases as well. If you do know how to make it work, I would appreciate your suggestions. (Edited because the angle brackets keep getting lost.) |
|
|
|
![]() |
|
It's in the free tool I'll release within the next few weeks, along with a ton of crazy stuff. I'm still adding some mad features (like an advanced regex replacement grammar...) Will work not just in Word but most editors like Notepad, the text boxes on this forum etc.
If you want to know about the release, the easiest is to subscribe to this thread. |
|
|
|
![]() |
|
In Word, you can say things like:
There is also a bunch of commands that are prefixed by "initial cap," e.g., "initial cap the entire sentence." |
|
|
|
![]() |
|
Sub Main Dim lowerCase As String Dim upperCase As String
lowerCase = LCase (ListVar1) MsgBox lowerCase upperCase = UCase (ListVar1) MsgBox upperCase End Sub The above is a proof of concept I call it "Test <dictation>"; I made it a global command. The next step would be to adapt to the code to your needs; I would probably create 2 new global commands: Lowercase All <dictation> a single command might look like: list: "scules" with the contents: Lowercase Capitalize and the command would be:
would look like: Sub Main Dim upperCase As String
upperCase = " " & UCase (ListVar1) & " " ' somewhere on the forum is code for inserting smart spaces ' I didn't bother to use it in the above and if being lazy I would use: ' upperCase = UCase (ListVar1) ' and manage the leading and trailing spaces in dictation SendKeys upperCase , 1 End Sub ------------------------- -Edgar |
|
|
|
![]() |
|
missink, ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|
|
|
![]() |
|
Thank you guys. Smart spaces are important to me and I have been spending a lot of time unsuccessfully struggling with them lately, so I will make do with Alan's suggestion for now.
|
|
|
|
![]() |
|
@missink If interested in this and other text transformations, also feel free to PM me — happy to set you up with a beta of what I'm working on, can give you a walk-through on Skype. Wishing you a fun weekend, -l |
|
|
|
![]() |
|
"Smart spaces?" Try either my CheckNewPara or CheckSpacing functions (which add a space before (and after) dictation only when needed). Search the forums for those terms . . .
-------------------------
|
|
|
|
![]() |
|
In this relatively long thread, I don't think anyone has mentioned two commands that are inbuilt in Dragon: "'All Caps That," and "No Caps That." You can use these two commands to precede text as well. For example, "No Caps Mississippi" produces "mississippi."
------------------------- Writing and editing (my main website): Welcome - Words for Sale The woman who dueled with Aaron Burr and won: www.MmeJumel.com Crohn's News Blog: www.crohns-news.net |
|
|
|
![]() |
|
Thx, Scribe! Of course, the easy solution for using the "
EDIT: Btw, if you want these commands to work with native Dragon commands, too, you can add to your
and modify the above as follows:
Ht also h -------------------------
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.