• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best approach for selective spell-checking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best approach for selective spell-checking...


  • Subject: Re: Best approach for selective spell-checking...
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 20 Jul 2009 19:43:41 -0700

Daniel Jalkut wrote:

For context, the situation I'm in is my application, MarsEdit, allows users to edit HTML source code in a regular NSTextView. In a nutshell, I want to spell-check the users plain-text "content" but avoid triggering spell-check false positives inside the HTML markup.

I'm already colorizing the markup text, so it would be reasonably easy for me to "do something" in that colorizing pass that identifies the off-limits nature of the markup text. I could for instance easily maintain an array of ranges for a document that should not be spell- checked.

Maybe add the colorized words to a dynamic dictionary, which you then pass to the spell-checker. Since the markup words are in the dictionary, they won't be considered misspelled.


  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Cocoa Graphics Parsing
  • Next by Date: Core Data, NSArraycontrollers and secondary to-many relationships.
  • Previous by thread: Re: Best approach for selective spell-checking...
  • Next by thread: Core Data, NSArraycontrollers and secondary to-many relationships.
  • Index(es):
    • Date
    • Thread