Re: styled text
Re: styled text
- Subject: Re: styled text
- From: Arthur J Knapp <email@hidden>
- Date: Mon, 21 Jan 2002 11:32:34 -0500
>
Date: Sun, 20 Jan 2002 01:12:06 -0600
>
From: ehsan saffari <email@hidden>
>
Subject: Re: styled text
>
QuoEdit ($10 shareware available from version tracker) has a little gem
>
called "Text Jobs". An OSAX that makes styled text from text.
>
create styled text of: Make styled text of the specified text...
>
create styled text of string -- the original text
>
[with properties record] -- the style information for the new text
>
Result: styled text
>
but then there is a catch. AS 1.3.7 has these style runs defined:
>
plain/bold/italic/outline/shadow/underline/superscript/subscript/strikethro
>
ugh/small caps/all caps/all lowercase/condensed/expanded/hidden
>
but these styles seem to be inaccessible (why?):
>
superscript/subscript/strikethrough/small caps/all caps/all
>
lowercase/hidden
(Chris Nebel recently pointed me in the right direction to some great
documentation on the styled text datatype).
Styled text is a relatively older data type. It can record only
these "face" styles:
bold, italic, underline, outline, shadow, condensed, and expanded.
The reason is because these were the original face styles of the
earliest Macs. Things like strikethrough and hidden came later, and
were implemented by individual word processing and publishing
applications, not by the system software itself.
The styled text data type wasn't intended for retaining the very
complex font and styling information that an application like
QuarkXPress or MS Word uses. However, some of these applications
do place styled text versions of text onto the clipboard when
the user copies or cuts text, but the more "advanced" style
information is lost.
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.VivaLaData.com/>
on error number -128
end try
}