Copyright ©2001-2007 by OCSoftware. All Rights Reserved.
Save Formatted Texts as HTML
Overview
Whilst TextEdit understands RTF and DOC nicely, it does not support HTML that well: HTML texts can be opened and saved to, but you cannot save a RTFD into HTML with image links.
OCSmart Hacks fills the gap by adding a "Save As HTML" command into any application, which uses the standard text object with a formatted text and allows the user to edit it. (For plain RTF without images you would probably want rather to use the standard TextEdit HTML save support: the Hacks one comes from the days TextEdit did not save HTML at all, and is not as flexible as the current TextEdit.)
User Interface
Find the command "Save As HTML..." in the menu: normally it would be just beside the standard "Save As..." command, but in some applications it may be moved into a different place, including a separate "OCSmart Hacks" menu–it depends on what commands and menus the application has:

Select the command. If the active window happens to contain a text object whose contents you normally would not save–like the text fields in the Find panel –, OCSmart Hacks asks whether you really want to:

Presumed you answered Yes, or the current text object contains a normal document, a standard Save As sheet is shown. It allows you to select the destination:

Note that there is an accessory view installed into the panel, which allows you to select a preset (or to open the Preferences to change presets using the "Presets..." button); the presets control the way HTML is generated, and we shall discuss them in the "Customization" chapter below.
When "Save" is clicked, the document contents is saved into HTML. Note that if the document contains images or other attachments, the selected name would be used as a folder name; the generated HTML and all the attachments would be stored into the folder. In case the document does not contain any attachments, the selected name would be used directly for the generated HTML file. Note also that for this reason the folder of the former case would have a ".html" suffix.
Customization
The conversion from the formatted text into HTML is controlled by presets. To set and edit them, open the OCSmart Hacks window selecting the "OCSmart Hacks..." item from the application menu, and choose its "HTML" tab. The list of current presets is displayed in the lower part of the window:

Use the buttons below to add, duplicate, edit, and remove presets. The presets are stored on disk (namely, in the ~/Library/Application Support/cz.ocs.OCSAttributedStringHTMLExtension/Presets folder): if there is a possibility they were changed manually or by another application, use the "Rescan" button to read them in again.
A preset is a plain list of attributes, which the HTML generator uses. At this release, the attribute list is quite short: clicking the "Edit..." button you can open a sheet, which contains a preset editor:

The preset name and comment you can use to keep presets organized. The meanings of the other widgets are following:
Default Rules
The default set of rules converts RTF(D) to HTML this way:
*A font is considered fixed pitch if its 'i' and 'm' are of the same width.