HTML bettering?

Matej Cepl Cepl at fpm.cz
Fri Jun 18 03:33:26 EDT 1999


> From: KAnton at gmx.de (Konrad Anton)
> Date: Thu, 17 Jun 1999 18:53:36 +0159
> 
> Does it have to be a selfmade Python solution? If you just want to
> number your headlines (and if you speak Perl), have a look at WML[1]
> which combines embedded Perl, m4, MetaHTML, an HTML optimizer and five
> other passes your input script is fed into. It's under GPL and fairly
> well documented.
> 
	[MCepl]   Well, it is not the biggest support of Python's
goodwill, is it? But, to make Pythonians more happy, the story is as
follows: I am writing some stuff in Amaya, which has beautiful heading
numberings, but its priting abilities are rather questionable (it fails
three times from four attempts -- on WinNT) so I would rather use
html2ps which has much better output, but it numbers headings in
different way (still unresolved issue, what it the top level -- H2 or
H1?). So I needed some simple tool to make numbering in the text (BTW,
it would be usefull for latter presentation in, say, widely spread
browsers).

	I sent a notice to amaya list and I have got small script in
Perl in about quarter of hour. It works, it is beautiful, but it is
totally incomprehensible for me, how it works (my knowledge of Perl is
fairly limited -- what is push and pop?). Therefore, I ask again, if
there is some simple way, how to show power of Python's libraries system
(htmllib.py, I guess).

					Have a nice day and sorry for
slightly off-topic


Matthew




More information about the Python-list mailing list