Code Monkey home page Code Monkey logo

dragonfly's People

Watchers

 avatar

dragonfly's Issues

Compound Element does not return value

What steps will reproduce the problem?
1. create an instance of the compound element class, or subclass it.
2. have it executed within a rule recognition
3.

What is the expected output? What do you see instead?
Expected value should be the elements from the compound spec. Instead I get no.

What version of the product are you using? On what operating system?
dragonfly-0.6.6b1 / svn rev 147

Please provide any additional information below.
Attached is a patch that fixes this behavior. The issue is a missing return.

Original issue reported on code.google.com by [email protected] on 6 Mar 2013 at 11:14

Attachments:

Dragonfly is too awesome

It is just too awesome. It needs to be a little bit less awesome, so the 
rest of the software written in the world doesn't feel bad.

That is all :-)

(Thank you so much! I just started using it last week and I am a huge fan!)

Original issue reported on code.google.com by [email protected] on 29 Dec 2009 at 6:31

e

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Jul 2010 at 12:11

how to create sub-contexts for an application?


I am working on a firefox.py script but I want to have additional keystroke
rules when 'reader' is in the title of the firefox browser.


I know you can do

grammar_context = AppContext(executable="firefox",title="Reader")

but I'm not sure how to combine rules like

reader_keystroke = RuleRef(rule=ReaderKeystrokeRule())
keystroke = RuleRef(rule=KeystrokeRule())
sequence = Repetition(reader_keystroke+keystroke, min=1, max=16,
name="sequence")

and get it to work with sequence.

little help?

Original issue reported on code.google.com by [email protected] on 30 Dec 2008 at 3:09

Patch: Allow loglevel changes without modifying log.py

What steps will reproduce the problem?
1. Try and change a log's loglevel without modifying the dragonfly package.
2. Pull out hair finding no obvious way to do so.


What is the expected output? What do you see instead?
Any useful debug information in dragonfly logs.

What version of the product are you using? On what operating system?
0.6.5 win32


Please provide any additional information below.
Attached is an example fix for the problem.  Allowing one to modify the
log's level within a calling python module.

Original issue reported on code.google.com by [email protected] on 2 May 2009 at 7:39

Attachments:

Dragonfly does not support creating InProc recognition contexts.

What steps will reproduce the problem?
1. Not applicable 

What is the expected output? What do you see instead?
Dragonfly's SAPI5 engine does not provide a facility to connect to an 
in-process recognition context. This means that any grammars that dfly uses is 
in addition to the Windows default grammars, which made the project less than 
ideal for testing purposes. 

What version of the product are you using? On what operating system?
read-only trunk as of 4/9/2013

Please provide any additional information below.
I've attached a patch that fixes this and another issue. 

1. Split Sapi5Engine into Sapi5InProcEngine and Sapi5SharedEngine. 

2. The Sapi5InProcEngine inherits from Sapi5SharedEngine, extends the _init_ to 
EnsureDispatch for SpInProcRecognizer, and Connect was overridden to set the 
recognizer to InProc and select an audio source.

3. Since the InProc Recognizer requires an audio source, a method was added to 
allow selection of an audio source by various criteria. At the moment, it 
either get a specific audio source index (defaults to the first audio source) 
or searches for text in the audio source description (eg, Realtek)

4. The Sapi5Engine now inherits from Sapi5SharedEngine as a passthrough (so the 
behavior does not change)

5. During testing, I found that /examples/dfly-loader-wsr.py referenced 
get_sapi5_engine, which was no longer available, so I changed it to instantiate 
Sapi5Engine() instead. 

I ran the tests and attached the outputs. There weren't any failures that 
weren't in a reference checkout of the source. 

Original issue reported on code.google.com by [email protected] on 10 Apr 2013 at 8:04

Attachments:

All examples crash DNS 9.5edit six

What steps will reproduce the problem?
1. put _fruit_toggle.py in ...\Natlink\MacroSystem directory
2. start Dragon Naturally Speaking 9.5
3.

What is the expected output? What do you see instead?

Window "Messages from Python Macros" reads:

 do extra output at (re)loading time: True
Natlink.dll dir C:\Natlink\Natlink\Natlink\MacroSystem\core
Natlink base dirC:\Natlink\Natlink\Natlink\MacroSystem
vocolaEnabled: True
Loading:_vocola_main
vocola not active
filesToLoad:['_fruit_toggle, '_wordpad', '_vocola_main']
Loading _fruit_toggle
calling grammar.load()...

What version of the product are you using? On what operating system?

Dragonfly 0.6.6b1
Natlink 3.7 foxtrot (from http://sourceforge.net/projects/natlink/)
Vista, DNS 9.5

Please provide any additional information below.
"calling grammar.load()" is my own print statement cleverly placed before
grammar.load().  _wordpad.py is a natlink example that works just fine. All
other examples crash the same way...with no warning at all, or windows
dialog that says "Dragon NaturallySpeaking for Windows has stopped working"

Original issue reported on code.google.com by [email protected] on 28 Aug 2009 at 6:51

Win32 API errors are not handled gracefully

Exceptions generated by underlying Win32 API calls are caught and
translated into some standardized form.

This issue report is based on Reckoner's experience with invalid window
handles causing exceptions from the dragonfly.windows.window module.

Original issue reported on code.google.com by [email protected] on 4 Feb 2010 at 7:56

dynamic active and deactive grammar

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
a dragonfly-module which can active and deactive grammar dynamicly.

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Jul 2014 at 1:12

_multiedit causes DNS to die mysteriously upon load

What steps will reproduce the problem?
1. try loading _multiedit.py
2.
3.

What is the expected output? What do you see instead?

DNS mysteriously shuts itself down. No errors provided.

What version of the product are you using? On what operating system?

DNS 9.5; dragonfly-0.6.4rc3.dev-r60.win32; Windows XP

Please provide any additional information below.

everything goes fine until 

grammar.load()                    # Load the grammar.

in _multiedit.py

Mysteriously, all of the other dragonfly scripts load and run fine. For
example:

_winctrl.py
_taskbar.py
notepad_foodgroups.py

load and work great!




Original issue reported on code.google.com by [email protected] on 29 Dec 2008 at 6:00

Focus window command doesn't bring it to the foreground

What steps will reproduce the problem?
1. I installed the window control plug in.
2. I used name window foo to set a name.
3. From another window I said focus window foo.

What is the expected output? What do you see instead?
Window foo should have come to the foreground but it only started blinking 
in the taskbar and didn't pop up.

What version of the product are you using? On what operating system?
Windows 7 64 bit
Python 2.6 32 bit
Natlink 3.9 charlie beta
Dragonfly 0.6.5

Thanks!

Original issue reported on code.google.com by dbenamy on 25 Mar 2010 at 4:03

Ability to disable rules referenced by RuleRef

I include most of my rules in a RepetitionRule in order to be able to speak 
multiple tokens very quickly - however I have different rules within the 
repetition that should be enabled or disabled based on context (for example 
when I'm inside of a .cpp file, my script gets notified it needs to enable C++ 
rules).  The easiest way I've seen to do this is to use a 
RepetitionRule(Alternatives([RuleRef(rule=rule_editor), RuleRef(rule=rule_cpp), 
.... - However I could not figure out a way to disable individual rules in the 
repetition once they were referenced by a RuleRef.

Adding:

if not self.active: return 

to the first line of the decode function within the RuleRef class (or the Rule 
class) fixes this problem - although I understand this is probably not the 
cleanest way as it still does recognition, just not decoding.  Is there a 
cleaner way to implement this?  And if not, could this change or a cleaner way 
be added?

Thank you

Original issue reported on code.google.com by [email protected] on 7 Apr 2013 at 5:18

No instructions on how to submit a command-module back to the project

What steps will reproduce the problem?
1. Create a command module
2. Try to submit it back to the community
3. ???

What is the expected output? What do you see instead?
Expected output: an upload page, contact info for the author, etc.

What version of the product are you using? On what operating system?
Latest version...

Please provide any additional information below.
I love this project, I haven't had this much fun programming in a while.
I've written some decent modules I'd like to give back if there was just a way.

Original issue reported on code.google.com by [email protected] on 30 May 2009 at 12:07

Invaild int check in 64-bit windows

Run 64-bit windows.
Install 64-bit python (I used Canopy).
Install dragonfly.
Run the attached example code.

I got an assert error.  The culprit is that 64 bit windows seems to be sending 
a handle of type 'long' instead of the expected type 'int'.

The fix is to change windows.py to read:
    def _set_handle(self, handle):
        assert isinstance(handle, int) or isinstance(handle, long)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Original issue reported on code.google.com by [email protected] on 25 Dec 2013 at 11:30

Attachments:

problem with _multiedit

What steps will reproduce the problem?
1. attempt to use 'up 4' in _multiedit.py
2.
3.

What is the expected output? What do you see instead?

returns error

What version of the product are you using? On what operating system?

DNS 9.5, python 2.5.2

Please provide any additional information below.

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\dragonfly\engines\engine_natlink.py",
line 201, in results_callback
    r.process_recognition(root)
  File "C:\Python25\Lib\site-packages\dragonfly\grammar\compoundrule.py",
line 84, in process_recognition
    self._process_recognition(node, extras)
  File "C:\Python25\Lib\site-packages\NatLink\MacroSystem\_multiedit.py",
line 194, in _process_recognition
    action.execute()
  File "C:\Python25\Lib\site-packages\dragonfly\actions\actionbase.py",
line 82, in execute
    self._execute(data)
  File "C:\Python25\Lib\site-packages\dragonfly\actions\actionbase.py",
line 150, in _execute
    spec = self._spec % data
TypeError: int argument required


Original issue reported on code.google.com by [email protected] on 16 Dec 2008 at 11:27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.