• 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
NSSpellServer & period
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSpellServer & period


  • Subject: NSSpellServer & period
  • From: Steingrímur Árnason <email@hidden>
  • Date: Tue, 6 Jan 2004 01:22:36 +0000

Hello.

I just created a NSSpellServer and it's working pretty much as advertised. The only major problem I've run into is the fact that the spelling system seems to handle text in small bits and pieces rather than in context.

This causes a slight problem as I need to be able to get the text in front of some word to determine if the word should be capitalized or not. In my language, Icelandic, we use a period after numbers to indicate that they should be read as 2nd 3rd etc. This of course, can happen in the middle of the sentence and does not trigger a requirement for a capitalized word. In fact, names of months should be written in lowercase.

For the obvious requirement of the standard usage of periods and question marks this is also a problem. It is very difficult to know if a word is the first one of a sentence or not. The spell server just gets activated and is asked to return the NSRange of the first error it encounters within a given NSString. Where does the request come from? Is it the first part of the document (requiring a capitalized first character)? Is it a second half of some sentence you spell checked half an hour ago?

FYI Apple's own English spell server doesn't seem to take sentences into account and doesn't claim that this is wrong: "this is some text. some". In this case I imagine that the first word in the string should be wrong as is isn't capitalized and the same goes for "some" being the first word after a period. But when I type this into TextEdit and run the built-in English spell checking - no errors are reported. (It doesn't even seem to be case sensitive at all)

If anyone here has some helpful info on the subject, I'd appreciate it very much.

Regards,

Steingrmmur Arnason
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSSpellServer & period
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Testing NSLineBreakByTruncatingTail
  • Next by Date: Re: New to cocoa/database
  • Previous by thread: Re: Changing the cell for a control
  • Next by thread: Re: NSSpellServer & period
  • Index(es):
    • Date
    • Thread