Re: styled text
Re: styled text
- Subject: Re: styled text
- From: Brennan <email@hidden>
- Date: Sat, 19 Jan 2002 17:25:15 +0100
Arthur J Knapp wrote
>
I have a plan for a vanilla script that will perform simple
>
html formatting from a styled text. I'll keep you posted.
I'm very interested in this topic and am waiting with bated breath for any further details!
Thanks for sharing your discoveries.
Just a FYI, while I'm a Tex-Edit man myself, I notice that its competitor 'Style' also stores styled text in the clipboard as RTF, which, being a plain ascii format, can be more readily converted to (say) html. Of course, both 'Style' and 'Tex-Edit' offer a 'style run' class, which makes a lot of cool things possible.
What we really need is an OSAX which would operate on styled text, exposing the 'style run' class to application-indpendent manipulation, but your script appears to offer a neat loophole, and the option to perform all manner of funky style transformations in a wider range of applications. Great!
Item 7, the mystery double bytes: You say it changes from day to day? Just a wild stab in the dark, but this is *clipboard* text, right? Could this have something to do with the system clipboard in memory while the machine is booted. What happens if you leave your Mac on overnight, or if you reboot more than once in the same day? Seems odd that this would be sandwiched between the style informations and the point size, but what else could it be?
As far as your questions about color are concerned, I'm not absolutely sure, but I think what you're seeing is something known as a 'million color', that is with resolution from 0-65535 instead of the more common 0-255.
This explains why primary blue is 0000 0000 FFFF. Does that make sense? This structure is seen widely within Quicktime, for example. It's probably a central part of Quickdraw and Quartz too, but I don't know them so well.
-Brennan