To translate a HTML file to a .mac (CPP macro) file,

1) replace all "," with " _V " (beware with ""s) when used between macros() like _I(), _U() etc.
2) replace all "'" with "&#39;"
3) replace all "/*" with ???          /* C comments are discarded by CPP ! */
4) replace all "//" with &#47;&#47;   /* unfortunately, C++-style comments can be found in URLs ! */

N times : (as necessary)
5) replace all "&nbsp;" with " _S "
6) replace all "<BR>" with " _BR "
7) replace all "<P>" with " _P "
8) replace all "<A NAME=" with " _A("
9) replace all "></A>" with ")"
10) replace all "  " with " "
11) replace all regexp " $" with ""
12) replace all regexp "^ " with ""
13) replace all "_S _S _S" with "_TAB"

14) replace ") _" with ")_" (carefully)
15) replace "( _" with "(_" (carefully)

Not all HTML tags are supported, modify cleanhtml.l
if you need to extend its scope. Texts between
<PRE>s & </PRE>s are preserved.
read macros.def to know which macros are available or
add yours, and don't forget to include it in the macro file ;-)
If there is a problem with CPP, use HTML escape codes "&#XX;"
like with 2) or mail me : whygee@f-cpu.org
