Skip to content

Commit 236a502

Browse files
authored
Merge pull request #418 from chegong18/master
update docguide.sgml , ecpg.sgml and extend.sgml
2 parents 7dd3ab6 + c34a5c3 commit 236a502

File tree

3 files changed

+622
-168
lines changed

3 files changed

+622
-168
lines changed

postgresql/doc/src/sgml/docguide.sgml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ ____________________________________________________________________________-->
283283
</para>
284284
____________________________________________________________________________-->
285285
<para>
286-
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。如果你的操作系统包仅提供这些文件的旧版本,或者根本没有可用的包,则这实际上可能是首选解决方案。
286+
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。
287+
如果你的操作系统包仅提供这些文件的旧版本,或者根本没有可用的包,则这实际上可能是首选解决方案。
287288
如果你想在构建文档时阻止任何访问Internet的尝试,你需要将<option>--nonet</option>选项传递给<command>xmllint</command>和<command>xsltproc</command>;参见下面的示例。
288289
</para>
289290

@@ -448,29 +449,55 @@ checking for dbtoepub... dbtoepub
448449
</para>
449450
____________________________________________________________________________-->
450451
<para>
451-
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。检查运行末尾附近的输出;它应该看起来像这样:
452+
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。
453+
检查运行末尾附近的输出;它应该看起来像这样:
452454
<screen>
453455
checking for xmllint... xmllint
454456
checking for xsltproc... xsltproc
455457
checking for fop... fop
456458
checking for dbtoepub... dbtoepub
457459
</screen>
458-
如果未找到<filename>xmllint</filename><filename>xsltproc</filename>,你将无法构建任何文档<filename>fop</filename>仅用于在中构建文档
459-
PDF格式
460-
<filename>dbtoepub</filename>仅用于以EPUB格式构建文档
460+
如果没有找到<filename>xmllint</filename><filename>xsltproc</filename>,你将不能构建任何文档。
461+
<filename>fop</filename>仅在构建PDF格式的文档时需要
462+
<filename>dbtoepub</filename>仅在构建EPUB格式的文档时需要
461463
</para>
462464

463465
<para>
464466
如果需要,你可以告诉<filename>configure</filename>到哪里去找这些程序,例如
465467
<screen>
466468
./configure ... XMLLINT=/opt/local/bin/xmllint ...
467469
</screen>
468-
另外,如果你想确认<filename>xmllint</filename>和<filename>xsltproc</filename>不会执行任何网络访问,你可以如下操作
470+
另外,如果你想确保<filename>xmllint</filename>和<filename>xsltproc</filename>不会执行任何网络访问,你可以如下操作
469471
<screen>
470472
./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
471473
</screen>
472474
</para>
473475

476+
<!--==========================orignal english content==========================
477+
<para>
478+
If necessary, you can tell <filename>configure</filename> where to find
479+
these programs, for example
480+
<screen>
481+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
482+
</screen>
483+
Also, if you want to ensure that <filename>xmllint</filename>
484+
and <filename>xsltproc</filename> will not perform any network access,
485+
you can do something like
486+
<screen>
487+
./configure ... XMLLINT="xmllint -&minus;nonet" XSLTPROC="xsltproc -&minus;nonet" ...
488+
</screen>
489+
</para>
490+
____________________________________________________________________________-->
491+
<para>
492+
如果需要,你可以告知 <filename>configure</filename> 在哪里发现这些程序,例如
493+
<screen>
494+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
495+
</screen>
496+
此外,如果你想要确保 <filename>xmllint</filename> 和 <filename>xsltproc</filename> 将不会执行任何网络访问,你可以像这样做
497+
<screen>
498+
./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
499+
</screen>
500+
</para>
474501
</sect2>
475502
</sect1>
476503

0 commit comments

Comments
 (0)