CHPOK (1) - *ix HTML-utility


NAME

chpok - insert some HTML marks

SYNOPSIS

chpok [-d] [-t tab] file ...

DESCRIPTION

chpok reads each file in sequence, inserts HTML tags specified in tab and writes modified files back.

If no input file is given chpok reads from the standard nput file and writes to the standard output.

The following options apply to chpok:

Format of url.tab markup table is:

	< beginning tag in angle brackets > context  < endtag >
chpok searches input file for context matches. Context could consist of the several words separated by spaces or/and tabs. Comparisons are being done on word per word basis, case- insensitive. For example,
	"Apple" (text) matches "appl", but not otherwise;
	"some thoughts" matches "som though".

EXAMPLES

Let url.tab contents be
          < I >  BTC < /I > 
          < B >  Suvorov < /B > 
          < STRIKE >  Suvorov < /STRIKE > 
          < A HREF="http://www/" >  morozov < /A > 
          < U >  Lidia < /U > 
and we're processing file containing the following text:
	This Morozov BTC
	was created on the basis of
	Business School in Angarsk.
	BTC Manager - Lidia Suvorova.
Output will be
	This < A HREF="http://www/" > Morozov< /A >  < I > BTC< /I > 
	was created on the basis of
	Business School in Angarsk.
	< I > BTC< /I >  Manager - < U > Lidia< /U >  < B > < STRIKE > Suvorova< /STRIKE > < /B > .
chpok is immune to sequential runs on the same datafiles (HTML docs) with the same markup rules. It means that you could safely process aforementioned example yet another time and result will be as for the 1-st time.

Case insensitive comparison routine is adjusted to handle standard russian encoding (koi8-r, RFC1489). For ASCII texts it makes no difference.

The following markup is understood:

	< A >  < B >  < I >  < U >  < EM >  < STRONG >  < TT >  < STRIKE > 
This list could be extended easily.

FILES

url.tab - default markup rules

SOURCE

chpok.tar.z - gzipped tar file

AUTHOR

Constantin Ocrainets, ocr@ok.ru