Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 25A3D6361CF for ; Sat, 11 Sep 2010 10:56:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 91855-04-5 for ; Sat, 11 Sep 2010 13:55:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 28899636232 for ; Sat, 11 Sep 2010 10:55:42 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o8BDtcF02733; Sat, 11 Sep 2010 09:55:38 -0400 (EDT) From: Bruce Momjian Message-Id: <201009111355.o8BDtcF02733@momjian.us> Subject: Re: [DOCS] Doc fixes and improvements In-Reply-To: To: Thom Brown Date: Sat, 11 Sep 2010 09:55:38 -0400 (EDT) CC: Magnus Hagander , Tom Lane , PostgreSQL www X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01, WEIRD_PORT=0.001 X-Spam-Level: X-Archive-Number: 201009/55 X-Sequence-Number: 19142 Thom Brown wrote: > On 11 September 2010 14:41, Bruce Momjian wrote: > > Thom Brown wrote: > >> I came up with something very similar last night but I hadn't finished > >> playing with it: > >> http://pgweb.darkixion.com:8081/media/js/monospacefix.js > >> > >> But yes, I really didn't like the idea of having individual CSS files > >> for varying differences of font type when it could just be calculated. > >> ?I'll try to get time to test it properly this weekend. > > > > Nice. ?Do you need those paragraphs with "x"? > > I could probably get away with non-breaking spaces, but the purpose is > to prevent some browsers from throwing the element away as an empty > one, thereby preventing us having a sample to test against. IE tends > to do this in some scenarios. OK, I never tested if this would work (no text): document.write(''); document.write(''); Ah, I see your 'display: none' now that prevents it from appearing --- good idea. > > Do they show up in the document? > > The x's would if the user had javascript enabled and CSS disabled. Seems they would have even worse problem than a few X's if they turned off CSS, so it seems fine. > > Does it work if they have no text node? > > Hmm... I don't know what this means. Could you explain? See above, and you already thought of that. > > If fixed with is larger then proportional, we leave it alone? > > Yes, this needs to be worked on too which is why I hadn't finished > with it. The script doesn't yield text sizes in Opera, so the > calculation won't fall into the "if" statement anyway, but yes, in > theory someone might actually have their monospace default set higher > than proportional... although that would be weird. Yep, odd, but seems worth fixing if it is just a simple != change. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +