Skip to content

Commit fba90ee

Browse files
committed
把sgml文件编码从GBK改为UTF8。因为github在线编辑时会自动改成UTF8编码保存。
1 parent 8026de8 commit fba90ee

File tree

326 files changed

+64720
-64690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+64720
-64690
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/build/
2+
13
# Windows image file caches
24
Thumbs.db
35
ehthumbs.db

README.md

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PostgreSQL中文手册翻译计划
22
PostgreSQL官方手册对广大PostgreSQL用户来说是非常重要的学习和参考资料。
3-
因此在2013年底PostgreSQL中国用户会成立了新的PG中文手册翻译小组,旨在将最新的PG手册翻译成中文
4-
当前翻译中的PG手册版本是PostgreSQL9.3.1,翻译工作主要通过下面的翻译平台和QQ群进行管理,并且已完成了大部分的翻译工作
3+
因此在2013年底PostgreSQL中国用户会成立了新的PG中文手册翻译小组,在第一代功勋laser所翻译的8.2.3的基础上开启了9.3.1版本的手册翻译工作
4+
翻译工作主要通过下面的翻译平台和QQ群进行管理,并且目前已完成了大部分的翻译工作
55
但翻译中难免会有不准确的地方,希望读者发现问题后及时帮忙纠正,不断完善PG的中文手册。
66

77
## 翻译平台 & 文档翻译QQ群
@@ -15,38 +15,31 @@ QQ:309292849
1515
https://github.com/postgres-cn/pgdoc-cn
1616

1717
本Github仓库存放已翻译好的sgml文件,通过这些sgml文件可编译成html和pdf等各种格式的文档。
18-
同时,本Github仓库接受读者的反馈和修正(通过Issues和Pull requests)。
18+
本Github仓库接受对已翻译好的文档的质量改善,欢迎读者的反馈和修正(通过Issues和Pull requests),尚未翻译的十几个sgml文件的翻译工作目前仍在“翻译平台”上管理。
19+
1920

2021
## 文档的编译
2122
### Windows上的编译
22-
1 . 下载本Github仓库
23+
1 . 安装Perl
24+
25+
http://www.activestate.com/activeperl/downloads
26+
27+
2 . 下载本Github仓库
2328
```shell
2429
git clone https://github.com/postgres-cn/pgdoc-cn.git
2530
```
2631

27-
2 . 进入pgdoc-cn目录执行builddocWithoutPerl.bat或builddoc.bat
32+
3 . 进入pgdoc-cn目录双击执行builddoc.bat
2833
```shell
2934
cd pgdoc-cn
30-
builddocWithoutPerl.bat
35+
builddoc.bat
3136
```
3237

33-
注1:builddocWithoutPerl.bat和builddoc.bat的区别在于
34-
35-
1) builddoc.bat需要机器上安装有perl才能执行,builddocWithoutPerl.bat不需要。
36-
37-
2) builddocWithoutPerl.bat不会生成下面几个中间sgml,即最后生成的PG文档中没有SQL支持表,errcode,版本号和索引(如果用于预览翻译结果,没有什么影响)。
38-
39-
- features-supported.sgml
40-
- features-unsupported.sgml
41-
- errcodes-table.sgml
42-
- version.sgml
43-
- bookindex.sgml
38+
4 . 查看编译效果
4439

45-
3 . 查看编译效果
40+
打开以下html文件查看编译效果
4641

47-
打开以下html看编译效果
48-
49-
pgdoc-cn/postgresql/doc/src/sgml/html/index.html
42+
pgdoc-cn/build/doc/src/sgml/html/index.html
5043

5144
### LINUX/UNIX上的编译
5245
1 . 下载本Github仓库
@@ -60,33 +53,39 @@ wget https://ftp.postgresql.org/pub/source/v9.3.1/postgresql-9.3.1.tar.gz
6053
tar xzf postgresql-9.3.1.tar.gz
6154
```
6255

63-
3 . 用本Github仓库中的sgml覆盖PostgreSQL源码中的
56+
3 . 对Github仓库中的sgml文件进行转码(UTF8->GBK)
6457
```shell
65-
cp -rf pgdoc-cn/postgresql/doc/src/sgml postgresql-9.3.1/doc/src/
58+
cd pgdoc-cn
59+
perl tools/encoding_convert.pl
6660
```
6761

68-
4 . 下载编译PG手册所必需的工具集
62+
4 . 用转码后的sgml文件覆盖PostgreSQL源码中的
63+
```shell
64+
cp -rf build/doc/src/sgml ../postgresql-9.3.1/doc/src/
65+
```
66+
67+
5 . 下载编译PG手册所必需的工具集
6968

7069
参考:http://www.postgresql.org/docs/9.3/static/docguide-toolsets.html
7170

72-
5 . 编译PG手册
71+
6 . 编译PG手册
7372
```shell
74-
cd postgresql-9.3.1
75-
cd doc/src/sgml
73+
cd ../postgresql-9.3.1/doc/src/sgml
7674
gmake html
7775
```
7876
参考:http://www.postgresql.org/docs/9.3/static/docguide-build.html
7977

80-
6 . 查看编译效果
81-
打开以下html看编译效果
78+
7 . 查看编译效果
79+
打开以下html查看编译效果
8280

83-
pgdoc-cn/postgresql/doc/src/sgml/html/index.html
81+
pgdoc-cn/build/doc/src/sgml/html/index.html
8482

8583

8684
## 在线阅读
8785
http://www.postgres.cn/docs/9.3
8886

89-
注2:通过在线中文手册上每个页面右上角的“问题报告”和“纠错本页面”链接可直接跳转到Github仓库中的相应位置报告问题或在线修改。
87+
通过在线中文手册上每个页面右上角的“问题报告”和“纠错本页面”链接可直接跳转到Github仓库中的相应位置报告问题或在线修改。
88+
9089

9190

9291
## 离线文档
@@ -108,16 +107,18 @@ http://www.postgres.cn/docs/9.3
108107
关于html页面和sgml文件的对应关系,可通过点击“在线阅读”web页面右上角的“纠错本页面”链接跳转到Github仓库中的相应sgml文件的编辑页面。
109108

110109
### 3. 文档翻译
111-
如果要对尚未翻译的文档进行翻译,请先注册并登录到“翻译平台”上申请“翻译”,防止和其他人的工作重复。
112-
翻译好的文档在“翻译平台”上提交,之后由系统管理员进行从“翻译平台”到Github仓库的数据同步。
110+
目前仅剩余10几个sgml文件尚未翻译,其中还没有被认领的只有几个。当前这些剩余sgml的翻译工作仍在“翻译平台”上进行。
111+
如果要对这些尚未翻译的文档进行翻译,请先注册并登录到“翻译平台”上申请“翻译”,翻译好的文档在“翻译平台”上提交。
112+
系统管理员会定期将“翻译平台”上的更新同步到Github仓库(但Github仓库上发生的更新不会反馈到“翻译平台”) 。
113+
114+
### 4. 文档校对
115+
文档校对工作准备通过Github + wiki的方式进行,具体待定。
113116

114-
但是,建议把修改后的sgml也同时以Pull Request的方式提交到Github仓库,方便系统管理员进行同步。
115117

116-
### 4. 文档校对(审核)
117-
如果要对整个的sgml文件进行校对(审核),请先注册并登录到“翻译平台”上申请“审核”,防止和其他人的工作重复。
118-
校对(审核)时,如果对文档进行了修改,把修改后的sgml更新到“翻译平台”上,之后由系统管理员进行从“翻译平台”到Github仓库的数据同步
118+
## 其它
119+
1. Github仓库中的sgml文件编码是UTF8(“翻译平台”上的是GBK)
120+
2. 系统管理员会定期将最新的Github仓库修正反映到在线中文手册,这一工作目前是手动做的,以后会自动化
119121

120-
但是,建议把修改后的sgml也同时以Pull Request的方式提交到Github仓库,方便系统管理员进行同步。
121122

122123

123124

builddoc.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
cd postgresql\src\tools\msvc
2-
.\builddoc.bat
1+
rmdir /s /q build
2+
perl .\tools\encoding_convert.pl
3+
cd build\src\tools\msvc
4+
.\builddoc.bat

builddocWithoutPerl.bat

Lines changed: 0 additions & 19 deletions
This file was deleted.

postgresql/doc/src/sgml/acronyms.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
<!--
55
<title>Acronyms</title>
66
-->
7-
<title>����ĸ���Դ�</title>
7+
<title>首字母缩略词</title>
88

99

1010
<para>
1111
<!--
1212
This is a list of acronyms commonly used in the <productname>PostgreSQL</>
1313
documentation and in discussions about <productname>PostgreSQL</>.
1414
-->
15-
����һ����<productname>PostgreSQL</>ʹ��˵��
16-
��<productname>PostgreSQL</>�����о����õ�������ĸ����ͼ��
15+
这是一个在<productname>PostgreSQL</>使用说明
16+
<productname>PostgreSQL</>讨论中经常用到的首字母缩略图。
1717

1818
<variablelist>
1919

@@ -196,7 +196,7 @@
196196
<para>
197197
<ulink
198198
url="http://en.wikipedia.org/wiki/Data_Definition_Language">Data
199-
Definition Language</ulink>,SQL�������<command>CREATE
199+
Definition Language</ulink>,SQL命令比如<command>CREATE
200200
TABLE</>, <command>ALTER USER</>
201201
</para>
202202
</listitem>
@@ -216,7 +216,7 @@
216216
<para>
217217
<ulink
218218
url="http://en.wikipedia.org/wiki/Data_Manipulation_Language">Data
219-
Manipulation Language</ulink>, SQL�������<command>INSERT</>,
219+
Manipulation Language</ulink>, SQL命令比如<command>INSERT</>,
220220
<command>UPDATE</>, <command>DELETE</>
221221
</para>
222222
</listitem>
@@ -361,7 +361,7 @@
361361
-->
362362
<para>
363363
<link linkend="config-setting">Grand Unified Configuration</link>,
364-
�������������õ�<productname>PostgreSQL</>��ϵͳ��
364+
处理服务器配置的<productname>PostgreSQL</>子系统。
365365
</para>
366366
</listitem>
367367
</varlistentry>
@@ -633,7 +633,7 @@
633633
-->
634634
<para>
635635
<link linkend="continuous-archiving">Point-In-Time
636-
Recovery</link> (�����鵵)
636+
Recovery</link> (连续归档)
637637
</para>
638638

639639
</listitem>

postgresql/doc/src/sgml/adminpack.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
</para>
1717
-->
1818
<para>
19-
<filename>adminpack</>�ṩ��һЩ<application>pgAdmin</>������������֧�ֺ���
20-
�����ҹ������߿���
21-
�����ṩ����Ĺ��ܣ�����Զ�̹�������������־�ļ���
19+
<filename>adminpack</>提供了一些<application>pgAdmin</>与其他管理的支持函数
20+
,并且管理工具可以
21+
用于提供额外的功能,比如远程管理服务器的日志文件。
2222
</para>
2323

2424
<sect2>
2525
<!--
2626
<title>Functions Implemented</title>
2727
-->
28-
<title>����ʵ��</title>
28+
<title>函数实现</title>
2929

3030

3131
<para>
3232
<!--
3333
The functions implemented by <filename>adminpack</> can only be run by a
3434
superuser. Here's a list of these functions:
3535
-->
36-
ͨ��<filename>adminpack</>ʵ�ֵĸú���ֻ���ɳ����û����С������г�����Щ������
36+
通过<filename>adminpack</>实现的该函数只能由超级用户运行。这里列出了这些函数:
3737
<programlisting>
3838
int8 pg_catalog.pg_file_write(fname text, data text, append bool)
3939
bool pg_catalog.pg_file_rename(oldname text, newname text, archivename text)
@@ -43,7 +43,7 @@ setof record pg_catalog.pg_logdir_ls()
4343
<!--
4444
/* Renaming of existing backend functions for pgAdmin compatibility */
4545
-->
46-
/* Ϊ��pgAdmin�������������Ѿ����ڵĺ�˺���*/
46+
/* 为了pgAdmin兼容性重命名已经存在的后端函数*/
4747
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
4848
bigint pg_catalog.pg_file_length(text)
4949
int4 pg_catalog.pg_logfile_rotate()

0 commit comments

Comments
 (0)