KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Looking at the 30 January 2020 KnowBrainer command file
Topic Summary: Lists: trivial inconsistencies etc.
Created On: 01/30/2020 04:03 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Looking at the 30 January 2020 KnowBrainer command file   - Edgar - 01/30/2020 04:03 PM  
 Looking at the 30 January 2020 KnowBrainer command file   - Lunis Orcutt - 01/30/2020 05:16 PM  
 Looking at the 30 January 2020 KnowBrainer command file   - Edgar - 01/31/2020 01:54 PM  
Keyword
 01/30/2020 04:03 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 770
Joined: 04/03/2009

After a quick glance through the 30 January 2020 MyKBCommands.XML file I noticed a few annoying things:

 

empty lists: (a while back, elsewhere on the forum, I posted the steps needed to remove empty lists)

9160: <List name="chapter" />

11063: <List name="4_6" />

11064: <List name="fax" />

12239: <List name="website" />

12240: <List name="website2" />

 

 

junk lists: (not an exhaustive compilation)

9989: <List name="New Names">

9993: <List name="New Names 2">

9998: <List name="New Names 3">

 

 

lists whose names differ only in capitalization: 

9419: <List name="date">

9459: <List name="Date"> (note there are also the similar: 9492: <List name="DateList"> & 9525: <List name="dates">)

10004: <List name="NextorPrevious">

10009: <List name="NextOrPrevious">

 

 

Strange names/contents:

8687: <List name="0_9"> (note all the others like this are #to# e.g. 0to9)

9155: <List name="browser"> (note that this one allows no provision for Edge variants)

      <value><![CDATA[Internet Explorer]]></value>

      <value><![CDATA[Chrome]]></value>

      <value><![CDATA[Firefox]]></value>

    </List>

9627: <List name="FirsttoLast"> (note that the convention for this is FirstToLast)

10046: <List name="Oct-99">

      <value><![CDATA[10]]></value>

      <value><![CDATA[11]]></value>

      [… List of sequential integers]

      <value><![CDATA[98]]></value>

      <value><![CDATA[99]]></value>

    </List>

10138: <List name="One">

      <value><![CDATA[a]]></value>

      <value><![CDATA[1]]></value>

    </List>

10224: <List name="rec">

      <value><![CDATA[wave]]></value>

      <value><![CDATA[MP3]]></value>

      <value><![CDATA[SRI]]></value>

      <value><![CDATA[SR]]></value>

      <value><![CDATA[WMA]]></value>

      <value><![CDATA[DSS]]></value>

    </List>

10239: <List name="RowsorColumns"> (note that the convention for this is RowsOrColumns)

10295: <List name="SelectorFill"> (note that the convention for this is SelectorFill)

11401: <List name="Lett">

      <value><![CDATA[a]]></value>

      <value><![CDATA[be]]></value>

      <value><![CDATA[see]]></value>

[…]

    </List>

11602: <List name="OnetoNine"> (note that the convention for this is OneToNine but I would use One_Nine to differentiate it;

I would also extended to include zero and make it complex)

      <value><![CDATA[one]]></value>

      <value><![CDATA[two]]></value>

      […]

      <value><![CDATA[nine]]></value>

    </List>

 

 

these do not follow the KnowBrainer convention of capitalization for list name:

9155: <List name="browser">

9525: <List name="dates">

9600: <List name="doc">

9612: <List name="email">

9653: <List name="folder">

9976: <List name="move">

10161: <List name="phonelist">

10224: <List name="rec">

10316: <List name="subfolder">

10353: <List name="test list">

10357: <List name="test list5">

10361: <List name="test_list">

10365: <List name="test_list4">

10369: <List name="testlist7">

10430: <List name="trayaction"> (note that the convention for this is TrayAction)

10460: <List name="win">

10527: <List name="ica_complex">

11444: <List name="myalphabet"> (note that the convention for this is MyAlphabet)

11584: <List name="web">

12154: <List name="folders">

12180: <List name="wait_times"> (note that the convention for this is WaitTimes)

12267: <List name="window position"> (note that the convention for this is WindowPosition)

 



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

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Word 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

 01/30/2020 05:16 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 37356
Joined: 10/01/2006

We haven't removed the unused lists out of fear of damaging the command file but this is something that we still need to do.



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

Forum Mission Statement
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ext 1

 01/31/2020 01:54 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 770
Joined: 04/03/2009

Back in 2016 I figured out a way to remove unwanted lists and posted the details here:

http://www.knowbrainer.com/forums/forum/messageview.cfm?catid=3&threadid=33367&highlight_key=y&keyword1=Batch%20kbPro

In the long answer is…

I went over this in private with Lunis a few weeks [in 2016] ago. I came up with a solution but it is ugly. Without getting deeply into the details… KnowBrainer keeps two copies of its active command file. KnowBrainer must not be running but Dragon may be active. You must edit them both (I actually "copy with renaming":

copy "C:\Users\Edgar\AppData\Roaming\KnowBrainer\KnowBrainerCommands\MyKBCommands.xml" "C:\Users\Edgar\AppData\Roaming\KnowBrainer\KnowBrainerCommands\StatusChanges\MyKBCommands_withAmendedCommands.xml"

that's all one line) you would need to change "Edgar" to your username. First you need to open "C:\Users\Edgar\AppData\Roaming\KnowBrainer\KnowBrainerCommands\MyKBCommands.xml"  in your favorite XML editor (I use PSPad, Notepad will work and Visual Studio will work but might introduce automatic formatting which could break KnowBrainer's XML interpreter). Open the find dialog and search for:

<List name="1to4000

(assuming that the EXACT name of your command is <1to4000>). This list should reside on a single line since you have already deleted all the contents:

<List name="1to4000"></List>

Delete that entire line (it's okay to leave a blank line if you choose). Now save the file under its original name and location:

"C:\Users\Edgar\AppData\Roaming\KnowBrainer\KnowBrainerCommands\MyKBCommands.xml" 

(again use your username). Now you need to copy that file (or re-save it with a different name if you still have your editor open); the identical file needs to be placed with a new name in a new location:

"C:\Users\Edgar\AppData\Roaming\KnowBrainer\KnowBrainerCommands\StatusChanges\MyKBCommands_withAmendedCommands.xml"

(oh yeah - did I forget to mention you must use your own username not "Edgar" <grin>).

Now you must exit Dragon (a reboot is not necessary but you might want to open the Task Manager to ensure that all of Dragon's remnants have closed; I use this batch file:

@echo off

 

rem taskkill /IM dgnria_nmhost.exe /F /T

taskkill /IM nsbrowse.exe /F /T

taskkill /IM dragonbar.exe /F /T

taskkill /IM dgnuiasvr.exe /F /T

taskkill /IM dgnuiasvr_x64.exe /F /T

taskkill /IM natspeak.exe /F /T

taskkill /IM ProcHandler.exe /F /T

rem taskkill /IM KBProcHandler.exe /F /T

taskkill /IM KBPro.exe /F /T

Now, start KnowBrainer which automatically starts Dragon. The list should be gone



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

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Word 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

Statistics
31556 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 3936 on 09/08/2015 at 11:44 AM.
There are currently 333 guests browsing this forum, which makes a total of 333 users using this forum.

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