為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Spell Checker: Two Questions

  • 7 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 Yaron

more options

Hello,

1) I'd like "i" (as a word) to be marked in red, and have "I" as a suggestion.

2) I've added "tooltip" to the personal dictionary. I'd like also "Tooltip" and "tooltips" to be evaluated as correct.


What do I need to change in the dic/aff files?

Thank you

Hello, 1) I'd like "i" (as a word) to be marked in red, and have "I" as a suggestion. 2) I've added "tooltip" to the personal dictionary. I'd like also "Tooltip" and "tooltips" to be evaluated as correct. What do I need to change in the dic/aff files? Thank you

由 Yaron 於 修改

被選擇的解決方法

The personal dictionary file persdict.dat file only stores words that are allowed and doesn't support meta data like built-in and installed dictionaries. You nee to add all modifications separately to make Firefox recognize them.

Bug 338291 - Words added to the personal dictionary are not suggested for misspelled words

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options

When an entry it marked, there is a choice to add it to the checker.

more options

Thank you FredMcD.

If you add "tooltip" to the personal dictionary, "Tooltip" and "tooltips" are marked in red.

If, however, you add "tooltip/S" to en-US.dic, "Tooltip" and "tooltips" are evaluated as correct.

How can I achieve that with the personal dictionary?

more options

選擇的解決方法

The personal dictionary file persdict.dat file only stores words that are allowed and doesn't support meta data like built-in and installed dictionaries. You nee to add all modifications separately to make Firefox recognize them.

Bug 338291 - Words added to the personal dictionary are not suggested for misspelled words

由 cor-el 於 修改

more options

Thank you cor-el. I appreciate it.

If you want "i" to be marked in red, and have "I" as a suggestion - remove "i/US" from en-US.dic and add "I" instead.

Where can I read about the meta data parameters (/S /M etc.)?

Regards.

more options

You're welcome

You can look at hunspell4.pdf:

hunspell1.pdf = Hunspell from the command line hunspell3.pdf = API details hunspell4.pdf = How to define spell checking using Hunspell


See also hunspell-1.3.3.tar.gz/hunspell-1.3.3/man hunspell.5


Bug 1022262 - (hunspell-1.3.3) Upgrade to Hunspell 1.3.3 (fx33)

由 cor-el 於 修改

more options

Thanks again. I appreciate your kind help.

Correction: If you want "i" to be marked in red, and have "I" as a suggestion - remove "i/US" from en-US.dic. No need to add anything.

more options

Another correction: if you remove "i/US" from en-US.dic, you have to add "is" and "i.e." is marked in red even if explicitly added.