From 5545b69ae65f27ba1f4ceaf24486e98c186e9412 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 4 May 2020 16:16:42 -0400 Subject: [PATCH] Doc: improve PDF presentation of some tables by adjusting column widths. The PDF toolchain defaults to laying out all columns of a table with equal widths, in contrast to the HTML rendering which automatically varies the column widths to fit the data. In many places, this results in very badly laid-out tables, with lots of useless whitespace in some places and text that overruns its cell in other places. For tables that have reasonably static content, we can improve matters by adding entries to hand-assign the column widths. This commit does that for a few of the tables that were worst off; it eliminates close to 200 "contents ... exceed the available area" warnings in an A4 PDF build. I also forced align="left" in these tables, overriding the PDF toolchain's default which is evidently "justify". (The HTML toolchain seems to default to that already.) Anyplace where things are tight enough that we need to worry about this, forced justification tends to look truly awful. --- doc/src/sgml/charset.sgml | 16 +++++++++++++++- doc/src/sgml/errcodes.sgml | 4 ++-- doc/src/sgml/features.sgml | 8 ++++++++ doc/src/sgml/generate-keywords-table.pl | 5 +++++ 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/charset.sgml b/doc/src/sgml/charset.sgml index b6023fa459..04e71f17d3 100644 --- a/doc/src/sgml/charset.sgml +++ b/doc/src/sgml/charset.sgml @@ -95,6 +95,8 @@ initdb --locale=sv_SE + + LC_COLLATE @@ -993,6 +995,13 @@ CREATE COLLATION ignore_accents (provider = icu, locale = 'und-u-ks-level1-kc-tr <productname>PostgreSQL</productname> Character Sets + + + + + + + Name @@ -1004,7 +1013,7 @@ CREATE COLLATION ignore_accents (provider = icu, locale = 'und-u-ks-level1-kc-tr The Bytes/Char field is populated by looking at the values returned by pg_wchar_table.mblen function for each encoding. --> - Bytes/Char + Bytes/&zwsp;Char Aliases @@ -1635,6 +1644,8 @@ RESET client_encoding;
Built-in Client/Server Character Set Conversions + + Server Character Set @@ -1933,6 +1944,9 @@ RESET client_encoding;
All Built-in Character Set Conversions + + + Conversion Name diff --git a/doc/src/sgml/errcodes.sgml b/doc/src/sgml/errcodes.sgml index 6fd16f643e..f0ef050033 100644 --- a/doc/src/sgml/errcodes.sgml +++ b/doc/src/sgml/errcodes.sgml @@ -66,8 +66,8 @@ <productname>PostgreSQL</productname> Error Codes - - + + diff --git a/doc/src/sgml/features.sgml b/doc/src/sgml/features.sgml index b4596a9eb2..330481ff6a 100644 --- a/doc/src/sgml/features.sgml +++ b/doc/src/sgml/features.sgml @@ -111,6 +111,10 @@ + + + + Identifier @@ -138,6 +142,10 @@ + + + + Identifier diff --git a/doc/src/sgml/generate-keywords-table.pl b/doc/src/sgml/generate-keywords-table.pl index 086a158e79..a975b058d8 100644 --- a/doc/src/sgml/generate-keywords-table.pl +++ b/doc/src/sgml/generate-keywords-table.pl @@ -56,6 +56,11 @@ print <SQL Key Words + + + + + Key Word