# perform the correction (change 2nd capital to lowercase)Įditor.insertText(cp - 1, chr(char_added_code).lower())ĮtSelectionStart(cp) tSelectionEnd(cp)Įditor. If tt - AC2IC_LastAddTime = ord('A') and char_added_code = ord('A') and prev_char_code <= ord('Z'): Here’s AutoCorrect2InitialCaps.py: # (A)uto(C)orrect(2)(I)nitial(C)aps It’s not Unicode-ready and may have other shortcomings but it seemed to work for me. Well, I don’t know if it is straightforward, but I came up with a little Pythonscript to solve the two initial capitals problem. Note that, with that second form, you’ll need to click, exclusively, on the Replace All button ! This S/R does not work, unfortunately, if your text contains accentuated upper letters :-( Type in the regex \1\L\2\3, in the Replace with: zone Type in the regex (?-i)\b(\u)(\u )(\l )\b, in the Find what: zone files but now i am lost as to how to input dictionary files into spell check and how to properly install aspell. The drawback is that this regex should be executed from time to time or, at least, before saving the file and is not an interactive process, at all :-((Ĭhoose the Regular expression search mode This command switches on spellchecking: :setlocal spell spelllangenusThis switches on the spelloption and specifies to check for US English. Now, with a simple regex S/R, we could reduce the ambiguous cases to cases 3, 4 or 5, only ! That is to say that this S/R searches any word with an initial upper letter, wrongly followed by some other upper letters. The DSpellCheck plugin should only mark, as soon as the word is written, the cases 3 to 7, of the word license, assuming you use the English (Great Britain) dictionary, of course ! So, if we consider, for instance, the text, below : 1 license Uncheck the Having not First Capital Letter option Keep in mind that the maximum file size allowed for the upload is 8 MB. Browse your device or hard drive for the image file you want to check. This will bring you to the following page: Spellcheck A File. Find the part where it says Upload a File and click on Go. Uncheck the Starting with Capital Letter option By the way: this also works from mobile 1. Then, click on the Advanced tab and, in the Ignore Words section : To get a detection of all the ambiguous cases, go to the Plugins > DSpellCheck > Settings… panel.
0 Comments
Leave a Reply. |