如何在 aspell 字典中使用 Unicode?

yeg*_*256 5 linux aspell

我正在尝试用于aspell检查文本中的拼写。我有一个例外的自定义字典。它们都是 ASCII,但有一个词是 Unicode ( foo.en.pws):

personal_ws-1.1 en 554
Foo
bar
Bárbara
Run Code Online (Sandbox Code Playgroud)

然后,我运行:

cat x.txt | aspell -a --encoding=utf-8 -p ./foo.en.pws
Run Code Online (Sandbox Code Playgroud)

我得到:

Error: ./foo.en.pws: The word "Bárbara" is invalid. 
The character '?' (U+A1) may not appear in the middle of a word.
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

yeg*_*256 7

多亏了这个文档页面,我找到了一种方法。字典的第一行必须utf-8放在最后:

personal_ws-1.1 en 554 utf-8
Foo
bar
Bárbara
Run Code Online (Sandbox Code Playgroud)