bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small document and sample HTML and DocBook


From: Patrice Dumas
Subject: Re: Small document and sample HTML and DocBook
Date: Tue, 6 Jan 2009 14:10:31 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Jan 06, 2009 at 12:22:36PM +0000, Noah Slater wrote:
> 
>   http://hsivonen.iki.fi/doctype/ (Activating Browser Modes with Doctype)
> 
> The most commonly applicable DOCTYPE from that list is:
> 
>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
> "http://www.w3.org/TR/html4/strict.dtd";>

I found that it was hard to have valid html with the strict dtd, instead
in texi2html Transitional is used:
$DOCTYPE = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html401/loose.dtd";>';

In texi2html had a plan to do an init file for strict xhtml (or maybe 
strict html) but never got around to do it. It would need much more
css. That being said this would certainly be trivial to do on a coding
point of view, but a css knowledge is needed. Also I would like to 
rework the css support in texi2html, to be more compatible with what 
makeinfo currently do, and to enhance (and fix) css, but after the 
merge. Currently info output is way higher on my list (and progressing 
rather neatly).

> Sure, but pretty printing HTML is *really* hard.
> 
> It's probably best to leave that to a tool like HTMLTidy if it becomes an 
> issue.

Agreed. I think that the texinfo to html software should keep output
as much as possible like the .texi document was written, and let pretty 
printing to other tools.

--
Pat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]