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

Re: povray-manual/lynx/slang problem



"E.L. Meijer \(Eric\)" <tgakem@sg10.chem.tue.nl> writes:

[snip - POVRay manual]

> So it seems that the html pages aren't fully confirming at least (I
> don't know much about html), 

Yes.  <a name="..."> must be followed by a </a> in most cases.  I
corrected this with a Perl one-liner:

    perl -pi~ -e 's:<a *name[^>]*>:$& </a>:g' *.htm

There are other problems once this is fixed, assuming HTML 3.2:

/usr/bin/nsgmls:povray.htm:9:16:E: document type does not allow element "H1" here
/usr/bin/nsgmls:povray.htm:17:6:E: end tag for element "HEAD" which is not open
/usr/bin/nsgmls:povray.htm:18:64:E: document type does not allow element "BODY" here
/usr/bin/nsgmls:povray.htm:529:3:E: document type does not allow element "HR" here
/usr/bin/nsgmls:povray.htm:530:7:E: document type does not allow element "CENTER" here

(Could we have a policy that HTML docs must be HTML 3.2 or have a
DOCTYPE and match that?)

Unfortunately the current version of Lynx seems to remove spaces from
references like <a href="pov30000.htm#section 2.1">
                                             ^

I'm not sure whether this is permitted or not, but I don't think there
_should_ be a space anywhere in a URL.  This can be fixed with a bit
more Perl removing all the spaces from all the URLs:

    perl -pi~ -e 's:(<a +\w+=")([^"]*)("):($a=$2)=~tr/ //d,"$1$a$3":eg' *.htm

I haven't tested it extensively though.

Go ahead and submit a bug report or "feature request" against both
Lynx and POVRay.  Ask me to explain that Perl later.

-- 
		Carey Evans  <*>  c.evans@clear.net.nz

"these are not inherent flaws in [NT] -- they don't happen by accident.
 They are the result of deliberate and well-thought-out efforts." - MS


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: