如何用那里添加的新单词导出或获取字典的副本。我在终端使用hunspell
我也创建了一个西班牙语词典或称为私人字典,而词缀文件是es_ec.的副本
echo -e '2\nWordPress\ne-commerce\n' > ~/.hunspell_default/es_GUAYACO.dic
cp /usr/share/hunspell/es_EC.aff ~/.hunspell_default/es_GUAYACO.aff
。我使用此文件进行了测试。
cd ~/Downloads
echo 'hola wordPress E-commerce asesoria' > foo3.txt
hunspell -d es_GUAYACO foo3.txt
在交互式模式下:
- 对于单词
hola
,我选择了u
添加未资本化。 WordPress
,<代码> ue
,space
接受这次单词。Commerce
,space
asesoria
,r
替换,键入asesoríaa
enter和<代码> u 。
但是字典es_guayaco.dic
没有更新,它没有单词hola,wordpress,asesoría
。
如果我们使用其他字典,例如en_us
是同一问题。
我们如何用添加的新单词获得词典的副本?
I have create a spanish dictionary or called private dictionary too, and the affix file which is a copy of es_EC.aff
echo -e '2\nWordPress\ne-commerce\n' > ~/.hunspell_default/es_GUAYACO.dic
cp /usr/share/hunspell/es_EC.aff ~/.hunspell_default/es_GUAYACO.aff
I have used this file to test.
cd ~/Downloads
echo 'hola wordPress E-commerce asesoria' > foo3.txt
hunspell -d es_GUAYACO foo3.txt
In the interactive mode:
- For the word
hola
, I selectedu
to add uncapitalized. wordpress
,u
E
,space
to accept this time the word.commerce
,space
asesoria
,r
for replace, typedasesoría
Enter, andu
.
But the dictionary es_GUAYACO.dic
was not updated, it doesn't have the words hola, wordpress, asesoría
.
If we use other dictionary for example en_US
is the same issue.
How can we export o get a copy of the dictionary with the new words added?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所有单词都保存在
$ home
目录中的新文件中。在终端中使用的Hunspell使用
如果您使用字母
i
或u
添加新单词,则 。然后在$ home
目录中创建一个新文件。文件名正在尾随使用的字典的名称。例如,在我的情况下
All words is saved in a new file in the
$HOME
directory.Hunspell used in the terminal
When you use any dictionary if you add new words using the letter
I
orU
. Then a new files is created in$HOME
directory. The file name is trailing the name of the dictionary used. e.g.IN MY CASE