• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[ABSTRACT] Styled Text to HTML (or RTF, or...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Prev by Date: Indesign make book
  • Next by Date: Re: Quark 5.01 scripting syntax
  • Previous by thread: Indesign make book
  • Next by thread: Address Book: add element to existing record
  • Index(es):
    • Date
    • Thread