autocorrect

StageText issues with autocorrect and restrict

Deadly 提交于 2019-12-08 06:36:03
问题 I am attempting to use StageText in an Android AIR app as follows: var tf:StageText = new StageText(); tf.stage = stage; tf.viewPort = new Rectangle(0, 0, stage.fullScreenWidth, 90); tf.text = "Test"; tf.editable = true; tf.autoCorrect = false; tf.fontSize = 50; tf.color = 0xFF0000; tf.maxChars = 12; tf.restrict = "A-Za-z"; When editing this StageText on an Android device everything works as expected until you hit the delete button. Until now, no autocorrect suggestions will have been

Autocorrect issue with a colored UITextview

∥☆過路亽.° 提交于 2019-12-07 03:21:08
问题 I'm using in my app a textview with blue colored background. When autocorrect is enabled, whenever it corrects a word a white box forms around the word and the text's color changes also. Any ideas on how to stop this effect? 回答1: Nope, I think you can't change the color of the overlay or the textcolor out of the box.. This is a hard one, if you put a breakpoint in - (void) layoutSubviews {..} of your view you'll see UIKit has drawn a 'UITextSelectionView' above the text... I tried to subclass

Custom list of auto complete options in ios using monotouch

人走茶凉 提交于 2019-12-07 01:04:31
问题 I want to be able to supply my own list of available auto correct / auto complete options for a text input in an ios app created in monotouch. The list of words is updated via a web service. Examples of this type of functionality can be seen in the Ebay app when completing a search. What would be the best way to achieve this? 回答1: You should be able to adapt this Objective-C solution: http://www.raywenderlich.com/336/how-to-auto-complete-with-custom-values 来源: https://stackoverflow.com

Solr Did you mean (Spell check component)

限于喜欢 提交于 2019-12-05 20:29:42
问题 I use solr for my apps and i integrated the spellcheck component but i have some problems : First : When i type a term separated by space they give me the correction for each term Eg : "wat ters" => "what term" but the true is watters Second : When i type some phrase with some wrong term. although the other terms are correct they apply the spell for all terms. Eg : " Difreences in lankuage use conventions" => "Differences in language use conversions ". The true is "Differences in language use

UITextView and position of floating autocorrect window

99封情书 提交于 2019-12-05 11:46:16
问题 I have a UITextView with autocorrection on. The view's height is about 30 pix. When autocorrect kicks in the autocorrect view is nearly invisible below the text. Is there a way to control the position of the small autocorrect window or insure it is the top layer so it is always visible and the user can easily see and interact with it? 回答1: I discovered that setting the scrollEnabled to false on the UITextView the popup would always appear above the word being corrected. 回答2: Did you try to

HTML - How can i disable auto text correction in my TEXTAREA?

前提是你 提交于 2019-12-04 15:00:03
问题 My textarea contains C# code, so i get red underlines all over the place, is there any way to disable auto correction on a TEXTAREA in html code? Thank 回答1: I believe you may be looking for <textarea spellcheck="false"></textarea> Source: https://developer.mozilla.org/en/controlling_spell_checking_in_html_forms 回答2: There are two more attributes other than spellcheck="false" for iOS (probably Android too) that you might need to add to your text inputs to avoid OS interferer with text content:

Solr Did you mean (Spell check component)

一曲冷凌霜 提交于 2019-12-04 04:18:23
I use solr for my apps and i integrated the spellcheck component but i have some problems : First : When i type a term separated by space they give me the correction for each term Eg : "wat ters" => "what term" but the true is watters Second : When i type some phrase with some wrong term. although the other terms are correct they apply the spell for all terms. Eg : " Difreences in lankuage use conventions" => "Differences in language use conversions ". The true is "Differences in language use conventions" This is my config in solrconfig.xml : <searchComponent name="spellcheck" class="solr

UITextView and position of floating autocorrect window

不打扰是莪最后的温柔 提交于 2019-12-03 23:26:56
I have a UITextView with autocorrection on. The view's height is about 30 pix. When autocorrect kicks in the autocorrect view is nearly invisible below the text. Is there a way to control the position of the small autocorrect window or insure it is the top layer so it is always visible and the user can easily see and interact with it? I discovered that setting the scrollEnabled to false on the UITextView the popup would always appear above the word being corrected. Did you try to set clipsToBounds=NO for your UITextView? Sounds like it's clipping the autocorrect view to the frame size of your

Yielding spellchecker

与世无争的帅哥 提交于 2019-12-03 17:04:46
问题 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

HTML - How can i disable auto text correction in my TEXTAREA?

十年热恋 提交于 2019-12-03 10:21:07
My textarea contains C# code, so i get red underlines all over the place, is there any way to disable auto correction on a TEXTAREA in html code? Thank I believe you may be looking for <textarea spellcheck="false"></textarea> Source: https://developer.mozilla.org/en/controlling_spell_checking_in_html_forms There are two more attributes other than spellcheck="false" for iOS (probably Android too) that you might need to add to your text inputs to avoid OS interferer with text content: autocorrect="off" for avoiding to complete or suggest a word autocapitalize="off" for avoiding OS transforming