checking files in natlink/vocola/unimacro and reloading natlink

This is an answer to a question in thread 1788. Because that thread is outdated (there is now a 3.2 release of natlink/vocola/unimacro) I make some remarks here.

This is about when natlink checks for changes in vocola files, unimacro ini files or unimacro grammar files. And why reload of the natlink system (File, Reload everything in the Messages from Python Macros) sometimes does not work.

1. If you change a vocola macro it should be recognised automatically, but only after you called: "edit commands" or "edit global commands". See http://qh.antenna.nl/unimacro/installation/install....

2. If you change data from unimacro grammars (eg. files, folders or websites in the grammar folders) by calling "edit folders" a switch is set so changes in the .ini (configuration) file of that grammar are checked for at each utterance. Details: http://qh.antenna.nl/unimacro/features/grammarclas... (at the bottom)

3. If you want to change things in a unimacro grammar, you can call for example "edit grammar folders": besides opening the python file, a variable "checkForGrammarChanges" is set in natlinkmain. For the rest of the session (assuming it is not switched off again), at each utterance all grammar (python) files will be checked for changes.

4. Not being able to reload natlink in the Messages from Python Macros:
This is caused probably by the unimacro grammar _folders.py. This grammar blows up the reloading because of some "dynamic module". Move away or just restart NatSpeak in rare cases this is needed. As the folders grammar is likely to be usefull for each unimacro user it is in by default. (see http://qh.antenna.nl/unimacro/installation/howtost...)

Greetings, Quintijn




view recent posts