Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
- Subject: Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
- From: j o a r <email@hidden>
- Date: Mon, 4 Jul 2005 19:08:56 +0200
On 4 jul 2005, at 18.37, Vince Ackerman wrote:
I need to parse lengthy MS Word 97 documents. I have read the file
in as an NSString but need to filter out all the extraneous
characters except the actual text. I need to see all the standard
keyboard characters and (hopefully/eventually) parse out the
information into a Core Data database. I can achieve this using
Word to save the file as straight Text, but don't want the end user
to have to do this to each document every time. I was hoping
there was a way to do it programmatically without a lot of work.
Is there a way to copy this string to another string with
NSCharacterSet or NSScanner? Or perhaps a better way to open and
read the file into a NSString without the MSWord encoding? I don't
fully understand what NSCharacterSet will filter, and I don't want
to alter the actual visible text in the file.
Any ideas would be greatly appreciated! Perhaps someone's got a
snippet of code so I don't have to re-invent this wheel?
I'm a total amateur, so go easy on me.... : )
This might be of a big help to you:
-[NSAttributedString initWithDocFormat:documentAttributes:]
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSAttributedString.html#//
apple_ref/doc/uid/20000167-BAJJHABH>
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden