Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5545b69

Browse files
committed
Doc: improve PDF presentation of some tables by adjusting column widths.
The PDF toolchain defaults to laying out all columns of a table withequal widths, in contrast to the HTML rendering which automaticallyvaries the column widths to fit the data. In many places, thisresults in very badly laid-out tables, with lots of useless whitespacein some places and text that overruns its cell in other places.For tables that have reasonably static content, we can improvematters by adding <colspec> 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 PDFtoolchain's default which is evidently "justify". (The HTML toolchainseems to default to that already.) Anyplace where things are tightenough that we need to worry about this, forced justification tends tolook truly awful.
1 parent20c6905 commit5545b69

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

‎doc/src/sgml/charset.sgml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ initdb --locale=sv_SE
9595

9696
<informaltable>
9797
<tgroup cols="2">
98+
<colspec colname="col1" align="left" colwidth="1*"/>
99+
<colspec colname="col2" align="left" colwidth="3*"/>
98100
<tbody>
99101
<row>
100102
<entry><envar>LC_COLLATE</envar></entry>
@@ -993,6 +995,13 @@ CREATE COLLATION ignore_accents (provider = icu, locale = 'und-u-ks-level1-kc-tr
993995
<table id="charset-table">
994996
<title><productname>PostgreSQL</productname> Character Sets</title>
995997
<tgroup cols="7">
998+
<colspec colname="col1" align="left" colwidth="3*"/>
999+
<colspec colname="col2" align="left" colwidth="2*"/>
1000+
<colspec colname="col3" align="left" colwidth="2*"/>
1001+
<colspec colname="col4" align="left" colwidth="1.25*"/>
1002+
<colspec colname="col5" align="left" colwidth="1*"/>
1003+
<colspec colname="col6" align="left" colwidth="1*"/>
1004+
<colspec colname="col7" align="left" colwidth="2*"/>
9961005
<thead>
9971006
<row>
9981007
<entry>Name</entry>
@@ -1004,7 +1013,7 @@ CREATE COLLATION ignore_accents (provider = icu, locale = 'und-u-ks-level1-kc-tr
10041013
The Bytes/Char field is populated by looking at the values returned
10051014
by pg_wchar_table.mblen function for each encoding.
10061015
-->
1007-
<entry>Bytes/Char</entry>
1016+
<entry>Bytes/&zwsp;Char</entry>
10081017
<entry>Aliases</entry>
10091018
</row>
10101019
</thead>
@@ -1635,6 +1644,8 @@ RESET client_encoding;
16351644
<table id="multibyte-translation-table">
16361645
<title>Built-in Client/Server Character Set Conversions</title>
16371646
<tgroup cols="2">
1647+
<colspec colname="col1" align="left" colwidth="1*"/>
1648+
<colspec colname="col2" align="left" colwidth="3*"/>
16381649
<thead>
16391650
<row>
16401651
<entry>Server Character Set</entry>
@@ -1933,6 +1944,9 @@ RESET client_encoding;
19331944
<table id="builtin-conversions-table">
19341945
<title>All Built-in Character Set Conversions</title>
19351946
<tgroup cols="3">
1947+
<colspec colname="col1" align="left" colwidth="2*"/>
1948+
<colspec colname="col2" align="left" colwidth="1*"/>
1949+
<colspec colname="col3" align="left" colwidth="1*"/>
19361950
<thead>
19371951
<row>
19381952
<entry>Conversion Name

‎doc/src/sgml/errcodes.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
<title><productname>PostgreSQL</productname> Error Codes</title>
6767

6868
<tgroup cols="2">
69-
<colspec colnum="1" colname="errorcode"/>
70-
<colspec colnum="2" colname="condname"/>
69+
<colspec colnum="1" colname="errorcode" align="left" colwidth="1*"/>
70+
<colspec colnum="2" colname="condname" align="left" colwidth="8*"/>
7171
<spanspec namest="errorcode" nameend="condname" spanname="span12"/>
7272

7373
<thead>

‎doc/src/sgml/features.sgml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@
111111
<para>
112112
<informaltable>
113113
<tgroup cols="4">
114+
<colspec colname="col1" align="left" colwidth="1.5*"/>
115+
<colspec colname="col2" align="left" colwidth="1*"/>
116+
<colspec colname="col3" align="left" colwidth="7*"/>
117+
<colspec colname="col4" align="left" colwidth="3*"/>
114118
<thead>
115119
<row>
116120
<entry>Identifier</entry>
@@ -138,6 +142,10 @@
138142

139143
<informaltable>
140144
<tgroup cols="4">
145+
<colspec colname="col1" align="left" colwidth="1.5*"/>
146+
<colspec colname="col2" align="left" colwidth="1*"/>
147+
<colspec colname="col3" align="left" colwidth="7*"/>
148+
<colspec colname="col4" align="left" colwidth="3*"/>
141149
<thead>
142150
<row>
143151
<entry>Identifier</entry>

‎doc/src/sgml/generate-keywords-table.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
<title><acronym>SQL</acronym> Key Words</title>
5757
5858
<tgroup cols="5">
59+
<colspec colname="col1" align="left" colwidth="5*"/>
60+
<colspec colname="col2" align="left" colwidth="3*"/>
61+
<colspec colname="col3" align="left" colwidth="2*"/>
62+
<colspec colname="col4" align="left" colwidth="2*"/>
63+
<colspec colname="col5" align="left" colwidth="2*"/>
5964
<thead>
6065
<row>
6166
<entry>Key Word</entry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp