Re: Cognitive dissonance

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Cognitive dissonance
Дата
Msg-id 201006121601.o5CG1wL21141@momjian.us
обсуждение исходный текст
Ответ на Re: Cognitive dissonance  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Cognitive dissonance  (John Gage <jsmgage@numericable.fr>)
Список pgsql-general
Peter Eisentraut wrote:
> On l?r, 2010-06-12 at 09:10 -0400, Tom Lane wrote:
> > Peter Eisentraut <peter_e@gmx.net> writes:
> > > On l?r, 2010-06-12 at 11:18 +0200, John Gage wrote:
> > >> A one file html version would be a godsend.
> >
> > > I've committed a build target for that now.  Use 'make postgres.html' in
> > > doc/src/sgml/.
> >
> > Huh, is that actually worth anything?  How many browsers will open it
> > without crashing, or will navigate the page with decent performance
> > if they do manage to open it?
>
> Text output is generated by going through HTML.  I haven't figured out
> the best way to do the second step yet.  We use lynx for INSTALL and
> HISTORY, but the results for this big file aren't very clean.
>
> Browsers seem to handle the file OK, btw.

Well, I tried lynx and the output looked fine to me, so I applied the
attached patch to allow single-page text output.  You can see the HTML
and text file results here:

    http://momjian.us/expire/

The new rule name is postgres.txt.  The file size are:

    7,789,730  postgres.html
    5,155,672  postgres.txt

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +
Index: doc/src/sgml/Makefile
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v
retrieving revision 1.145
diff -c -c -r1.145 Makefile
*** doc/src/sgml/Makefile    12 Jun 2010 15:42:44 -0000    1.145
--- doc/src/sgml/Makefile    12 Jun 2010 15:57:31 -0000
***************
*** 108,113 ****
--- 108,117 ----
  postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl
      $(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i
include-index$< 

+ # single-page text
+ postgres.txt: postgres.html
+     $(LYNX) -force_html -dump -nolist -stdin $< > $@
+
  HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl
      @$(MKDIR_P) html
      $(JADE.html.call) -V html-index $<

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Cognitive dissonance
Следующее
От: Merlin Moncure
Дата:
Сообщение: 2010 eclipse community survey