spell-checking

Open source spell check

China☆狼群 提交于 2019-12-09 14:42:48
问题 Was evaluating adding spell check to a product I own. As per my research the major decisions that need to be made: The library to use. Dictionary( this can be region specific, British english, American etc). Exclusion lists. Anytime a typo is detected its possible that its not a typo but is verbiage specific to the user. At this point the users should be given the ability to add this to his custom exclusion list. Besides a per user custom list also a list of exclusion based on the user space

How to change underlining color in a Rich Edit control (Win32/C)

ⅰ亾dé卋堺 提交于 2019-12-09 06:00:52
问题 I’m looking for a way to make red squiggly underlining in a Rich Edit control (I’m using version 4.1 with Msftedit.dll). I’m able to produce squiggly underlining with this code : CHARFORMAT2 format; format.cbSize = sizeof(format); format.dwMask = CFM_UNDERLINETYPE; format.bUnderlineType = CFU_UNDERLINEWAVE; SendMessage(hWndEdit,EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&format); The MSDN documentation doesn’t specify how to change the color of underlines, just the text (with underlines) and

PHP: How to tell if a string contains any special characters? [duplicate]

依然范特西╮ 提交于 2019-12-08 19:36:26
问题 This question already has answers here : preg_match special characters (6 answers) Closed 2 years ago . I am using pspell to spell check some words. However if the word is something like G3523B it clearly is not a misspelled word but pspell changes it to GB. I would like somehow to qualify a word as a word before trying to spell check it. Maybe checking to see if the string contains any numbers or special characters. So what is the best way to check a string for special chars or digits? (if

How can I access Chrome's spell-check dictionary?

冷暖自知 提交于 2019-12-08 17:37:45
问题 Clearly Chrome has a built-in dictionary that it uses for spell-checking. Is there an API or some way to access this dictionary? I am interested not in checking spelling, but actually accessing the dictionary. E.g. I would like to write Dictionary autocomplete extension for chrome? a dictionary autocomplete extension that uses Chrome's dictionary instead of maintaining my own. Of particular interest to me would be a funciton like getWordsThatStartWith(text) . 回答1: The dictionaries are

WPF RichTextBox SpellCheck ComException

时间秒杀一切 提交于 2019-12-08 17:00:55
问题 I've got an exception while trying to enable spell checking on some Windows 8.1 machines (both have latest updates, OS language is russian and .NET framework 4.7 is russian) saying: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)) at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD) at

spell check in Rstudio

[亡魂溺海] 提交于 2019-12-08 16:39:34
问题 How to configure and use spell check in Rstudio? In the tools>Global option>spelling I have set the main dictionary language as English(US) and custom dictionary as en_us from "/usr/lib/rstudio/resources/dictionaries/en_US.dic". Still I do not see any indication (such as red make) on wrong spellings!! 回答1: RStudio does not have an as-you-type spell checker; you'll have to invoke spell checking manually. To do this, go to the Edit menu and choose Check Spelling, or press F7. Note that spell

Google spell check http://www.google.com/tbproxy/spell? throws 404 error [closed]

Deadly 提交于 2019-12-08 13:16:46
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am using jquery.spellchecker.js in my .net application to check the spellings typed by the users in the textarea. This plugin connects to http://www

Why is there no IsReadOnlyChanged event on TextBox controls?

隐身守侯 提交于 2019-12-08 07:54:21
问题 I was adding some workaround code to fix the bug outlined in Is this a bug in DotNet 4 WPF Spell Checking?, (When a WPF TextBox changes Enabled, Visible or ReadOnly states, any SpellCheck custom dictionaries get dropped off until you disable and re-enable SpellCheck) and the simplest fix seemed to be to handle the IsVisibleChanged , IsEnabledChanged , and IsReadOnlyChanged events. Simple, right? Except there is no IsReadOnlyChanged event. Anybody know why and what the best way to trap a

C# Spell checker Problem

六眼飞鱼酱① 提交于 2019-12-08 06:29:59
问题 I've incorporated spell check into my win forms C# project. This is my code. public void CheckSpelling() { try { // declare local variables to track error count // and information int SpellingErrors = 0; string ErrorCountMessage = string.Empty; // create an instance of a word application Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application(); // hide the MS Word document during the spellcheck //WordApp.WindowState = WdWindowState

WPF Form Loads very slow after adding SpellCheck.IsEnabled to a Control

五迷三道 提交于 2019-12-08 03:30:17
问题 So I have a mysterious issue where after I've added SpellCheck.IsEnabled to one of my controls the form that hosts this control takes upwards of 3 seconds to load. Remove the spell check attribute and the form loads instantly. Just for reference, the following is the only place changed in the form: <TextBox TextWrapping="Wrap" Height="100" Text="{Binding ActivePostMetadata.Abstract}" SpellCheck.IsEnabled="True" IsEnabled="{Binding IsAbstractVisible}" /> With SpellCheck.IsEnabled="True" the