From owner-freebsd-doc Wed Oct 13 15:45: 5 1999 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 520E81580B; Wed, 13 Oct 1999 15:43:16 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.9.3/8.9.3) id UAA44147; Wed, 13 Oct 1999 20:28:41 +0100 (BST) (envelope-from nik) Date: Wed, 13 Oct 1999 20:28:41 +0100 From: Nik Clayton To: Tom Hukins Cc: Chung-Kie Tung , freebsd-doc@FreeBSD.ORG Subject: Re: Would you please add ftp4.tw.freebsd.org to mirror list? Message-ID: <19991013202841.A41361@catkin.nothing-going-on.org> References: <19991005204727.A36456@turtle.ee.ncku.edu.tw> <19991012214821.C21865@hukins.freeserve.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19991012214821.C21865@hukins.freeserve.co.uk>; from Tom Hukins on Tue, Oct 12, 1999 at 09:48:21PM +0100 Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Oct 12, 1999 at 09:48:21PM +0100, Tom Hukins wrote: > On Tue, Oct 05, 1999 at 08:47:27PM +0800, Chung-Kie Tung wrote: > > By the way, the first page of www.freebsd.org will show some strange tags > > like '?TD>' on my browser, I guess this is caused of using some non-english > > character in the html source. It is at about line 96. > > > > > > > > > > Well spotted! > > This is a tricky problem to solve. I've had a quick look into it but > had no luck. Perhaps someone else on the list can help? > > The problem is that there is a   ( ) in the SGML source. > When the SGML gets converted to HTML, the escaping is lost. I've > tried putting &160# in the SGML source, but that doesn't produce > the desired result either. > > This problem appears to be manifesting itself throughout the site. > The © used in page footers is being converted to an un-escaped > copyright symbol in HTML, for example. > > Can anyone on freebsd-doc figure out a solution to this? Interesting problem. What's odd is that   is translated in the .sgml -> .html conversion (carried out by sgmlnorm) but & isn't (it appears as a literal "&" in the HTML output, as it should). I think this is hardcoded in sgmlnorm. If you look at /usr/ports/textproc/jade/work/jade-1.2.1/sgmlnorm/SGMLGenerator.cxx you'll see (at the bottom of the file) SP_NAMESPACE_SCOPE, which seems to special case lt, gt, amp, and quot for processing. This might be something that's fixed in OpenJade, which is at http://jade-cvs.avionitek.com/ if anyone can take a look. N To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message