Re: [DOCS] Doc fixes and improvements

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL www <pgsql-www(at)postgresql(dot)org>
Subject: Re: [DOCS] Doc fixes and improvements
Date: 2010-09-11 13:55:38
Message-ID: 201009111355.o8BDtcF02733@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-www

Thom Brown wrote:
> On 11 September 2010 14:41, Bruce Momjian <bruce(at)momjian(dot)us> 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('<pre id="monotest" style="display: none;"></pre>');
document.write('<p id="paratest" style="display: none;"></p>');

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 <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Robert Haas 2010-09-11 19:21:46 Re: [DOCS] Doc fixes and improvements
Previous Message Thom Brown 2010-09-11 13:49:23 Re: [DOCS] Doc fixes and improvements

Browse pgsql-www by date

  From Date Subject
Next Message Robert Haas 2010-09-11 19:21:46 Re: [DOCS] Doc fixes and improvements
Previous Message Thom Brown 2010-09-11 13:49:23 Re: [DOCS] Doc fixes and improvements