hunspell

Is Hunspell thread safe?

自作多情 提交于 2019-12-23 08:28:06
问题 Is the Hunspell spelling library thread-safe? 回答1: The answer is NO, A simple multi-threaded test application revealed that Hunspell uses per-instance resources for the spelling process, so only one thread can use it at any time - use locks/work queue/or instanciate a per-thread Hunspell instance. 来源: https://stackoverflow.com/questions/4639789/is-hunspell-thread-safe

Spell checking a file using command line, non-interactively

吃可爱长大的小学妹 提交于 2019-12-21 07:55:39
问题 I have a large text file, containing many miss/bad-spelled English words. I'm looking for a way to edit this file using a command-line spell checker in Linux. I found some ways to do this, But according to my searches all of them work in an interactive manner. I mean, seeing a miss/bad-spelled word, they suggest some corrections to the user and he/she should choose one of them. Since my file is rather large, and contains many wrong words, I can't edit it in this manner. I am looking for a way

Emacs Windows spellcheck - aspell or hunspell

半城伤御伤魂 提交于 2019-12-21 04:08:16
问题 I use emacs 23.1.50 version on Windows XP operation system. I could not setup hunspell or aspell as part of emacs with the example provided by the emacs wiki. Anyone has working confiugration for windows xp and please help me out. 回答1: I use aspell for spellchecking with emacs on Windows. Looking at my .emacs file I can see these configuration variables. (custom-set-variables '(ispell-dictionary "british") '(ispell-program-name "H:\\bin\\aspell\\bin\\aspell.exe")) I installed aspell with the

C++ - Using HunSpell 1.3.2 with Visual Studio 2010

六月ゝ 毕业季﹏ 提交于 2019-12-19 04:22:51
问题 My goal is to create a simple Win32 Console application that uses HunSpell to spell-check a word the user has entered. I tried to follow this codeproject tutorial which is for Visual Studio 2008 and HunSpell 1.2.1. I don’t want to use the provided code, since I intend to write my own. Furthermore I want to add HunSpell as a dll, not as a static library. Following are the steps I took: Created a Win32 console (empty) project with the name myproject. Downloaded HunSpell 1.3.2 from SourceForge

C++ - Using HunSpell 1.3.2 with Visual Studio 2010

馋奶兔 提交于 2019-12-19 04:22:16
问题 My goal is to create a simple Win32 Console application that uses HunSpell to spell-check a word the user has entered. I tried to follow this codeproject tutorial which is for Visual Studio 2008 and HunSpell 1.2.1. I don’t want to use the provided code, since I intend to write my own. Furthermore I want to add HunSpell as a dll, not as a static library. Following are the steps I took: Created a Win32 console (empty) project with the name myproject. Downloaded HunSpell 1.3.2 from SourceForge

Interactive Spell Checking Programs Available for emacs

南楼画角 提交于 2019-12-12 11:50:44
问题 I recently switched to emacs24 and upgraded to Ubuntu 12.04. I can't seem to get hunspell working correctly again. I find hunspell to be better than aspell generally. Hunspell only wants to use the Australian dictionary and not English US dictionary or freezes up my system. With aspell I have no problem switching dictionaries or running flyspell mode. My question is how do people have setup interactive spelling in emacs24?? Still using ispell and flyspell or any other setups preferred. Are

pip install hunspell: Cannot open include file: 'hunspell.h': No such file or directory

天大地大妈咪最大 提交于 2019-12-12 03:53:33
问题 I'm trying to pip install hunspell on my windows 10 x64 machine, but I get the following error: C:\Users\a>pip install hunspell Collecting hunspell Using cached hunspell-0.3.3.tar.gz Installing collected packages: hunspell Running setup.py install for hunspell ... error Complete output from command c:\users\a\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\a\\AppData\\Local\\Temp\\pip-build-lmrkbjce\\hunspell\\setup.py';exec(compile

Special characters in the input of hunspell are treated as space

别等时光非礼了梦想. 提交于 2019-12-12 03:22:13
问题 This question was asked on superuser, but got only 8 views in 7 days. Hunspell knowledgeable people go to stackoverflow, hence my reasking the question here. I am testing hunspell in the command line with a swedish dictionary. The input in the interactive mode replaces all special characters (for example å ä ö) with blanks before spell cheching. Hunspell 1.3.2 sjögräs & sj 15 0: SJ, aj, dj, sk, s, j, sej, sju, sjö, sjå, sa, se, ej, st, si & gr 15 3: ge, g, r, ger, gir, gro, gör, grå, går, gry

Why does aspell suggest the very word that it fails to check?

久未见 提交于 2019-12-11 18:23:44
问题 Here is the command I run: > echo "civilization" | aspell -a @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1) & civilization 3 0: civilization, civilizations, civilization's Why does aspell suggest the very word ("civilization") but fails to check its spelling? In contrast, hunspell seems to get this right > echo "civilization" | hunspell Hunspell 1.3.2 * but that is probably because the two spell checkers use different dictionaries. EDIT: Running this on a different

How to load hunspell dictionary in Windows path with non-ASCII characters?

亡梦爱人 提交于 2019-12-11 14:29:15
问题 How to load hunspell dictionary in Windows path with non-ASCII characters? Hunspell manual suggests: In WIN32 environment, use UTF-8 encoded paths started with the long path prefix \?\ to handle system-independent character encoding and very long path names, too. So I have code to do the following: QString spell_aff = QStringLiteral(R"(\\?\%1%2.aff)").arg(path, newDict); QString spell_dic = QStringLiteral(R"(\\?\%1%2.dic)").arg(path, newDict); // while normally not a an issue, you can't mix