如何用那里添加的新单词导出或获取字典的副本。我在终端使用hunspell

发布于 2025-02-08 06:17:34 字数 871 浏览 1 评论 0原文

我也创建了一个西班牙语词典或称为私人字典,而词缀文件是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,<代码> u
  • espace接受这次单词。
  • Commercespace
  • asesoriar替换,键入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 selected u to add uncapitalized.
  • wordpress, u
  • E , space to accept this time the word.
  • commerce , space
  • asesoria, r for replace, typed asesoría Enter, and u.

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

假装不在乎 2025-02-15 06:17:35

所有单词都保存在$ home目录中的新文件中。

在终端中使用的Hunspell使用

如果您使用字母iu添加新单词,则 。然后在$ home目录中创建一个新文件。文件名正在尾随使用的字典的名称。例如

,在我的情况下

  • .hunspell_en_us
  • .hunspell_es_guayaco

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 or U. 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

  • .hunspell_en_US
  • .hunspell_es_GUAYACO
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文