autocorrect

Yielding spellchecker

让人想犯罪 __ 提交于 2019-12-03 06:03:06
The title is a bit misleading maybe; my spellchecker focuses more on format than spelling (caps, punctuation and spaces, apostrophes, converting internet slang to full words, oft-scrambled words etc.). However the basic principles apply. Basically, the JS/jQuery checker I'm building would correct words as they are typed (after a space or punctuation has been typed after the word). However, much like any autocorrecting, it's bound to run into mistakes. I'm not even considering creating functionality that would determine whether "its" or "it's" is more appropriate in a given case (though if such

Disable autocorrect UITextView

别等时光非礼了梦想. 提交于 2019-12-02 11:39:14
问题 Does anyone know how to disable autocorrect programming in uitextview? I have the following code, but it doesn't work. - (void)_setUpTextView { self.textView = [[UITextView alloc] initWithFrame:self.bounds]; self.textView.accessibilityLabel = @"CommentTextView"; self.textView.translatesAutoresizingMaskIntoConstraints = NO; [self.textView setFont:[[AppearanceManager sharedManager] brightenFontWithSize:26.0f]]; [self.textView.layer setCornerRadius:5.0f]; self.textView.delegate = self; self

VS Code Autocorrect

拥有回忆 提交于 2019-12-02 09:07:58
问题 I'm looking for a way to automatically replace my commonly misspelt words in VS Code. Is there something out there / how would I create something where I can add a particular string to find, string to replace with and a syntax/filetypes for the autocorrect to be active in? Example: backgorund | background | css/scss/less To clarify, I want it to be automatically corrected, no key inputs. Many thanks! 回答1: There is an Auto Correct extension for VS Code. Its configuration is pretty

Disable autocorrect UITextView

和自甴很熟 提交于 2019-12-02 06:39:20
Does anyone know how to disable autocorrect programming in uitextview? I have the following code, but it doesn't work. - (void)_setUpTextView { self.textView = [[UITextView alloc] initWithFrame:self.bounds]; self.textView.accessibilityLabel = @"CommentTextView"; self.textView.translatesAutoresizingMaskIntoConstraints = NO; [self.textView setFont:[[AppearanceManager sharedManager] brightenFontWithSize:26.0f]]; [self.textView.layer setCornerRadius:5.0f]; self.textView.delegate = self; self.textView.autocorrectionType = FALSE; // or use UITextAutocorrectionTypeNo self.textView

iPhone UIWebView - Can auto complete be turned off on a input text field?

扶醉桌前 提交于 2019-11-30 18:26:41
I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist? I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought this didn't matter, but apparently it can for the local-part on some email systems (apparently it's only the domain that is only case insensitive). It seems autocomplete is the culprit. I've tried adding autocomplete="off" to the input element in the html, but iOS is

How to toggle autocorrectionType on and off for an existing UITextView

纵然是瞬间 提交于 2019-11-30 06:26:35
I have a UITextView in my iPhone app for which I want to be able to toggle the autocorrectionType. When a user is editing the text view, I want the autocorrectionType to be set to UIAutocorrectionTypeYes. When the text view is not being edited, I want the autocorrectionType to be set to UIAutocorrectionTypeNo (because I don't want any of the red-dotted underlines generated by autocorrection to be visible) Simply toggling the autocorrectionType like this: myTextView.autocorrectionType = UITextAutocorrectionTypeYes; myTextView.autocorrectionType = UITextAutocorrectionTypeNo; Doesn't seem to work

iPhone UIWebView - Can auto complete be turned off on a input text field?

不打扰是莪最后的温柔 提交于 2019-11-30 01:22:02
问题 I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist? I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought this didn't matter, but apparently it can for the local-part on some email systems (apparently it's only the domain that is only case insensitive). It seems

iPhone SDK: disable auto creation of dot (.) in text field (or textview)

亡梦爱人 提交于 2019-11-29 11:22:05
I've disabled auto-correction type for my text field, and it does not show any other auto-correction, but it still automatically creates a dot (.) when I press space key twice. For example, if I write "test" and press space key twice, it automatically changes into "test. " Anyone knows how to disable this feature? Thanks a lot. I found one solution - it uses UITextFieldTextDidChangeNotification because this occurs after the auto-correction applies. Set the delegate for the text field Set up a notification - (void) viewDidLoad { ... [[NSNotificationCenter defaultCenter] addObserver:self

How to toggle autocorrectionType on and off for an existing UITextView

﹥>﹥吖頭↗ 提交于 2019-11-29 06:11:12
问题 I have a UITextView in my iPhone app for which I want to be able to toggle the autocorrectionType. When a user is editing the text view, I want the autocorrectionType to be set to UIAutocorrectionTypeYes. When the text view is not being edited, I want the autocorrectionType to be set to UIAutocorrectionTypeNo (because I don't want any of the red-dotted underlines generated by autocorrection to be visible) Simply toggling the autocorrectionType like this: myTextView.autocorrectionType =