HTTX AWeb ARexx Interface

by AmiTrix Development and Gabriele Favrin

Version 1.1


THE AUTHORS ARE IN NO WAY RESPONSIBLE FOR ANY DAMAGE THAT THESE PROGRAMS MAY CAUSE.

These files are included in HTTX distribution with explicit AmiTrix permission. Redistribution or modification are forbidden. If you improve these scripts just send me the new version.


With HTTX AWeb ARexx Interface you can use HTTX from AWeb to save (or print) HTML pages as text. You need at least AWeb 1.2b (demo). AWeb 1.4 (registered) or 2.0 (commercial) are recommended. You also need "requestfile" (standard system 3.x command, also works on 2.04) in C: directory. AWeb 2.1demo doesn't offer ARexx support.


How to install

Copy:

HTTX.awebrx
HTTXConfig.awebrx
HTTXprt.awebrx
HTTX <-- yes, also the HTTX executable!
httxrx.readme.html (for online help)

ALL to the AWeb/Plugins/HTTX directory.

AWeb 1.2b / 1.4 / 2.0

Load AWeb, go to the "Program 1: General" settings requester and set the "Allow Shell commands in links" option. This is required for HTTXConfig.awebrx.

AWeb 1.5 / 1.6 / 2.1 or better

Load AWeb, open "Network settings/Options" requester and set the "Allow Shell commands in links" option. This is required for HTTXConfig.awebrx.

Assign HTTX.awebrx, HTTXConfig.awebrx and HTTXprt.awebrx to three entries in the ARexx menu. You need registered or commercial version of AWeb to do this operation. With AWeb 1.2b you have to call any script via file requester (right Amiga key + shift + 1)


How to use

First you have to setup configuration.
Load HTTXConfig.awebrx and set the various options:

Default Directory
default dir for save of converted files

Line length
Maximum length for every line.
Equals to option LEN

Indentation
Number of spaces for indentation (re-enter to the right) of the <UL> and <DL> lists.
Equals to option IN

Print URL in Header
Adds the specified URL to output file.
Equals to option SITE

ANSI convert Styles and links
ANSI conversion of HTML styles and LINKS.
Equals to option AN

Convert to 7 bit ascii
Conversion of HTML entities (accent letters, and so) to ASCII codes lower than 128.
Equals to option 7BIT

Print Horizontal Rules
If set to OFF doesn't draw lines <HR>.
Equals to option NOHR

Save Title as Filenote
Saves the document title (<TITLE>) as output file comment.
Equals to option FILENOTE

Suppress Title/URL
Suppress display of document Title (<TITLE>) and URL.
Equals to option NOHEADER

Print Image Alternate Texts
Adds the ALT-text of images <IMG> to output file.
Equals to option IMG

Support badly written HTML
Partial support for badly written HTML documents. Use with caution!
Equals to option BADHTML

Force conversion of data
Forces conversion of input file without checking if it is an HTML document.
Equals to option FORCE

Refer to HTTX documentation for full explanation of options.

When you have finished press "Save" button to save the configuration. Files HTTX.config and HTTXprt.config will be created in the same directory. Note that HTTX uses these configurations only via the ARexx script.

For converting a page just load (via file requester or menu) HTTX.awebrx and choose destination name.

For printing load HTTXprt.awebrx.