我有一个 natlink 设置,在 Dragon 13 上有蜻蜓和 aena。它在英语中运行良好,几乎适用于法语。尝试在语法中使用重音字母时遇到问题。
我收到此错误(natlink uniform6):
Traceback (most recent call last):
File "C:\NatLink\NatLink\MacroSystem\core\natlinkmain.py", line 322, in loadFile
imp.load_module(modName,fndFile,fndName,fndDesc)
File "C:\NatLink\NatLink\MacroSystem\_hello_world_aenea_fra2.py", line 26
SyntaxError: Non-ASCII character '\xc3' in file C:\NatLink\NatLink\MacroSystem\_hello_world_aenea_fra2.py on line 26, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
root: Failed to load language-specific number module: global name 'GrammarError' is not defined
我还尝试在文件开头输入编码。但后来我得到另一个错误:
Traceback (most recent call last):
File "C:\NatLink\NatLink\MacroSystem\core\natlinkmain.py", line 322, in loadFile
imp.load_module(modName,fndFile,fndName,fndDesc)
File "C:\NatLink\NatLink\MacroSystem\_hello_world_aenea_fra2.py", line 34, in <module>
grammar.add_rule(TestRule())
File "C:\Python27\lib\site-packages\dragonfly\grammar\rule_mapping.py", line 137, in __init__
c = Compound(spec, elements=self._extras, value=value)
File "C:\Python27\lib\site-packages\dragonfly\grammar\elements_compound.py", line 269, in __init__
raise SyntaxError("Invalid compound spec: %r" % spec)
SyntaxError: Invalid compound spec: 'voici la t\xc3\xa9l\xc3\xa9'
我尝试使用 natlink 版本 4.1 tango to uniform6 我尝试了这些链接中给出的技巧:
https://gitter.im/synkarius/caster/archives/2016/09/14
https://github.com/t4ngo/dragonfly/issues/11
如果有人知道管道中每个软件的正确版本号组合以及正确的技巧以使其全部工作,请告诉我。