KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Empty list element
Topic Summary: optional element in command name possible?
Created On: 01/02/2012 10:40 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Empty list element   - Stephan Kuepper - 01/02/2012 10:40 AM  
 Empty list element   - Matt Chambers - 01/02/2012 01:19 PM  
 Empty list element   - Stephan Kuepper - 01/04/2012 04:03 AM  
 Empty list element   - Matt Chambers - 01/04/2012 09:06 AM  
 Empty list element   - Stephan Kuepper - 01/04/2012 10:44 AM  
 Empty list element   - Matt Chambers - 01/04/2012 11:13 AM  
 Empty list element   - monkey8 - 01/04/2012 12:51 PM  
 Empty list element   - Stephan Kuepper - 01/05/2012 03:45 AM  
 Empty list element   - mdl - 03/17/2012 01:48 AM  
 Empty list element   - Stephan Kuepper - 03/19/2012 04:38 AM  
Keyword
 01/02/2012 10:40 AM
User is offline View Users Profile Print this message

Author Icon
Stephan Kuepper
Top-Tier Member

Posts: 468
Joined: 10/04/2006

Hi all,

in a command name that utilises a list, would it be possible to have the option of an empty entry? 

I'd like to write command that can be issued with or without saying "please". I'm thinking of a list <please> that contains the entry "Please" as well as an empty line so I can choose whether to say "please" or not. I'd like to use that list in a variety of commands, therefore a list consisting of "command" and "command please" would only scratch the surface.

I tried an empty line between two list entries, but that doesn't work. A double \\ behind an entry doesn't work either (should equate a silent spoken form).

Any ideas, anyone?

Stephan



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

www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de

 01/02/2012 01:19 PM
User is offline View Users Profile Print this message


Matt Chambers
Top-Tier Member

Posts: 379
Joined: 10/02/2006

As far as I know, it isn't possible.  You could create the command with please in the name, then clone it without.  Or you could use please in the list, like:

2/2

2/2 please

Or you could use Vocola.  :-) 

Matt

 



-------------------------
 01/04/2012 04:03 AM
User is offline View Users Profile Print this message

Author Icon
Stephan Kuepper
Top-Tier Member

Posts: 468
Joined: 10/04/2006

Hi Matt,

thank you for the reply. Vocola is not an option. It doesn't even work in German.

With a list

2/2
2/2 please

you mean adding a spoken form (the / should be \\ in DNS 11)? Good idea in principle. I found that it works in some environments, but not in all. I tried a simple 

Sendkeys Listvar1

command which works fine if the list contains no spoken forms but fails when it contains them. Fortunately there are other possibilities in this case.

Happy New Year, Stephan



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

www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de

 01/04/2012 09:06 AM
User is offline View Users Profile Print this message


Matt Chambers
Top-Tier Member

Posts: 379
Joined: 10/02/2006

Try the Mid instruction, as in

SendKeys Mid(ListVar1,1,InStr(ListVar1,"\"-1)



-------------------------
 01/04/2012 10:44 AM
User is offline View Users Profile Print this message

Author Icon
Stephan Kuepper
Top-Tier Member

Posts: 468
Joined: 10/04/2006

Matt,

might be due to the autoformatting, but I can't get it to work. I take it that the smiley should be a closed bracket ) 

Could it be that there should be two backslashes instead of one to conform with DNS 11 new vocabulary format?

My list for testing looks like this:

Wort 1\\wort eins
Wort 2\\wort zwei
Wort 3\\wort drei

Stephan



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

www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de

 01/04/2012 11:13 AM
User is offline View Users Profile Print this message


Matt Chambers
Top-Tier Member

Posts: 379
Joined: 10/02/2006

I don't know, except that I agree about the smiley!  I'm using 11.5, so I doubt that is the problem, although my lists have only one "\", perhaps because they were imported from earlier versions?  

You might take a look in the help file for the Mid and Instr iinstructions.



-------------------------
 01/04/2012 12:51 PM
User is offline View Users Profile Print this message

Author Icon
monkey8
Top-Tier Member

Posts: 1987
Joined: 01/14/2008

Stephan the delimiting character that you need to use with the Mid line of script that Matt has given you is a single backslash (\) and would need to be a single backslash for the line of script to work.  All that the Mid instruction does is extract the string one side of the backslash.

When you refer to a double backslash with version 11 you are confusing lists (which are the same as they have always been) with vocabulary entries which now use a double backslash with version 11 to separate written forms and spoken forms (e.g. when exporting a word with a spoken form and written form to a text file).  You don't need this with lists

Lindsay


going back to your original question, I have often wished for something similar but unfortunately you can't have an empty entry in a normal list or a complex list as a spoken form.  With a complex list you can have an empty entry as a written form but not as a spoken form.

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


www.pcbyvoice.com
www.pcbyvoice.co.uk

 01/05/2012 03:45 AM
User is offline View Users Profile Print this message

Author Icon
Stephan Kuepper
Top-Tier Member

Posts: 468
Joined: 10/04/2006

Thank you Lindsay,

the single backslash did the trick. In the words of a British sports reporter, I learned things that I never even knew!

Stephan



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

www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de

 03/17/2012 01:48 AM
User is offline View Users Profile Print this message


mdl
Senior Member

Posts: 130
Joined: 04/18/2009

Vocola works fine in German to the best of my knowledge.  The main commands (e.g., "load voice commands" are available in German thanks to a German user's help translating.
 03/19/2012 04:38 AM
User is offline View Users Profile Print this message

Author Icon
Stephan Kuepper
Top-Tier Member

Posts: 468
Joined: 10/04/2006

Thank you for the hint, but Vocola is not an option for various reasons.

Best, Stephan



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

www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de

Statistics
27364 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 3 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 92 guests browsing this forum, which makes a total of 95 users using this forum.

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