[ABSTRACT] Styled Text to HTML (or RTF, or...)
[ABSTRACT] Styled Text to HTML (or RTF, or...)
- Subject: [ABSTRACT] Styled Text to HTML (or RTF, or...)
- From: julifos <email@hidden>
- Date: Thu, 23 Oct 2003 11:29:30 +0200
Hi all.
I've been investigating this topic, following some "old" threads whose main
character was Mr. Knapp.
As long as there was not a definitive "public" solution, I ellaborated my
own code following Arthur's directives, and shipped a fairly simple handler
which translates styled text to a record of style info.
You can pick a copy here:
<
http://scriptbuilders.net/category.php?id=1527>
It includes a rustic sample which uses such handler to transform styled text
to basic html.
Credits to M. Fitzgerald for his help and his handler to determine
styles-run.
The only problem is the font-name, which will not be returned. For instance,
the info included in the "styl" data only includes the "font family id",
which is not allways the same (eg, id 521 is not allways "Abscissa").
Theorically, you should ask the user system: "What is here the name of the
font whose family id is x?"
Which is not possible (or easy) in plain applescript. It would be possible
through "FontSyncScripting", but we are talking about learning the
fontsync-profile spec, rough code and blah...
If you know a vanilla method to guess the font name, given a font ID...
Cheers!
jj
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.