Re: Non-standard Cocoa RTF Unicode encoding?
Re: Non-standard Cocoa RTF Unicode encoding?
- Subject: Re: Non-standard Cocoa RTF Unicode encoding?
- From: Charles Jolley <email@hidden>
- Date: Tue, 09 Jul 2002 11:05:20 -0500
I promised to send some information about how /fcharset maps to the Mac OS X
encodings. Unfortunately I seem to have lost the code to do this, but I
have the raw data so here it goes:
Get the RTFDEFS.H file from the MS RTF SDK, I have put it on my web-server
at:
http://www.okito.net/charles/rtfdefs.h
This will list most of the mappings generated by MS-RTF readers along with a
human readable constant. You will need to create your own mapping with this
by checking each constant against the Mac OS X constants to determine the
equivalent. It really is not that hard, it will just take a little time.
You will notice the only two mac-format encodings are listed. In fact, the
mac format encodings are mapped in directly starting with mac roman at an
offset of 77. In other words, the Mac OS X encoding constant for MacOSRoman
is 0 (I think). For fcharset it is 77. The encoding fcharset 80 is
equivalent to the Mac OS X encoding constant 3. It's a one-to-one mapping.
Very easy. When you look at the constants declared in rtfdefs you will see
a hole in the constant listings precisely where the mac encodings belong.
That's what I have. Good luck!
-C
_______________________________________________
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.