Skip to content

Commit cd396eb

Browse files
committed
intro.sgml & isn.sgml
1 parent 8f6c2f4 commit cd396eb

File tree

2 files changed

+130
-73
lines changed

2 files changed

+130
-73
lines changed

postgresql/doc/src/sgml/intro.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ ____________________________________________________________________________-->
157157
</para>
158158
____________________________________________________________________________-->
159159
<para>
160-
<productname>PostgreSQL</productname>是以加州大学伯克利分校计算机系开发的<ulink url="http://db.cs.berkeley.edu/postgres.html"><productname>POSTGRES, 版本 4.2</productname></ulink>为基础的对象关系型数据库管理系统(<acronym>ORDBMS</acronym>)。POSTGRES 领先的许多概念在很久以后才出现在一些商业数据库系统中。
160+
<productname>PostgreSQL</productname>是以加州大学伯克利分校计算机系开发的<ulink url="https://dsf.berkeley.edu/postgres.html"><productname>POSTGRES, 版本 4.2</productname></ulink>为基础的对象关系型数据库管理系统(<acronym>ORDBMS</acronym>)。POSTGRES 领先的许多概念在很久以后才出现在一些商业数据库系统中。
161161
</para>
162162

163163
<!--==========================orignal english content==========================

postgresql/doc/src/sgml/isn.sgml

Lines changed: 129 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ____________________________________________________________________________-->
2323
hard-coded list of prefixes; this list of prefixes is also used to hyphenate
2424
numbers on output. Since new prefixes are assigned from time to time, the
2525
list of prefixes may be out of date. It is hoped that a future version of
26-
this module will obtained the prefix list from one or more tables that
26+
this module will obtain the prefix list from one or more tables that
2727
can be easily updated by users as needed; however, at present, the
2828
list can only be updated by modifying the source code and recompiling.
2929
Alternatively, prefix validation and hyphenation support may be
@@ -34,6 +34,17 @@ ____________________________________________________________________________-->
3434
<filename>isn</filename>模块为下列国际产品编号标准提供数据类型:EAN13、UPC、ISBN(图书)、ISMN(音乐)以及 ISSN(期刊)。在输入时会按照一个硬编码的前缀列表对输入进行验证,这个前缀的列表也被用来在输出时连接号码。因为新的前缀总是不时地出现,这个前缀列表可能会过时。这个模块的一个未来版本有希望得到一个来自于一个或多个表的前缀列表,这样用户可以根据需要来方便地更新前缀列表。不过,在当前该列表只能通过修改源代码并且重新编译来更新。另外一种方案是,在这个模块的未来版本中可能会直接移除掉前缀验证和连接支持。
3535
</para>
3636

37+
<!--==========================orignal english content==========================
38+
<para>
39+
This module is considered <quote>trusted</quote>, that is, it can be
40+
installed by non-superusers who have <literal>CREATE</literal> privilege
41+
on the current database.
42+
</para>
43+
____________________________________________________________________________-->
44+
<para>
45+
该模块被认为是<quote>trusted</quote>,也就是说,它可以由对当前数据库具有<literal>CREATE</literal>权限的非超级用户安装。
46+
</para>
47+
3748
<sect2>
3849
<!--==========================orignal english content==========================
3950
<title>Data Types</title>
@@ -56,6 +67,8 @@ ____________________________________________________________________________-->
5667
____________________________________________________________________________-->
5768
<title><filename>isn</filename> 数据类型</title>
5869
<tgroup cols="2">
70+
<colspec colname="col1" colwidth="1*"/>
71+
<colspec colname="col2" colwidth="2*"/>
5972
<thead>
6073
<!--==========================orignal english content==========================
6174
<row>
@@ -433,73 +446,117 @@ ____________________________________________________________________________-->
433446
<title><filename>isn</filename> Functions</title>
434447
____________________________________________________________________________-->
435448
<title><filename>isn</filename> 函数</title>
436-
<tgroup cols="3">
437-
<thead>
438-
<!--==========================orignal english content==========================
439-
<row>
440-
<entry>Function</entry>
441-
<entry>Returns</entry>
442-
<entry>Description</entry>
443-
</row>
444-
____________________________________________________________________________-->
445-
<row>
446-
<entry>函数</entry>
447-
<entry>返回</entry>
448-
<entry>描述</entry>
449-
</row>
450-
</thead>
451-
452-
<tbody>
453-
<!--==========================orignal english content==========================
454-
<row>
455-
<entry><function>isn_weak(boolean)</function><indexterm><primary>isn_weak</primary></indexterm></entry>
456-
<entry><type>boolean</type></entry>
457-
<entry>Sets the weak input mode (returns new setting)</entry>
458-
</row>
459-
____________________________________________________________________________-->
460-
<row>
461-
<entry><function>isn_weak(boolean)</function><indexterm><primary>isn_weak</primary></indexterm></entry>
462-
<entry><type>boolean</type></entry>
463-
<entry>设置弱输入模式(返回新设置)</entry>
464-
</row>
465-
<!--==========================orignal english content==========================
466-
<row>
467-
<entry><function>isn_weak()</function></entry>
468-
<entry><type>boolean</type></entry>
469-
<entry>Gets the current status of the weak mode</entry>
470-
</row>
471-
____________________________________________________________________________-->
472-
<row>
473-
<entry><function>isn_weak()</function></entry>
474-
<entry><type>boolean</type></entry>
475-
<entry>得到弱模式的当前状态</entry>
476-
</row>
477-
<!--==========================orignal english content==========================
478-
<row>
479-
<entry><function>make_valid(isn)</function><indexterm><primary>make_valid</primary></indexterm></entry>
480-
<entry><type>isn</type></entry>
481-
<entry>Validates an invalid number (clears the invalid flag)</entry>
482-
</row>
483-
____________________________________________________________________________-->
484-
<row>
485-
<entry><function>make_valid(isn)</function><indexterm><primary>make_valid</primary></indexterm></entry>
486-
<entry><type>isn</type></entry>
487-
<entry>验证一个非法号码(清除非法标志)</entry>
488-
</row>
489-
<!--==========================orignal english content==========================
490-
<row>
491-
<entry><function>is_valid(isn)</function><indexterm><primary>is_valid</primary></indexterm></entry>
492-
<entry><type>boolean</type></entry>
493-
<entry>Checks for the presence of the invalid flag</entry>
494-
</row>
495-
____________________________________________________________________________-->
496-
<row>
497-
<entry><function>is_valid(isn)</function><indexterm><primary>is_valid</primary></indexterm></entry>
498-
<entry><type>boolean</type></entry>
499-
<entry>检查非法标志的存在</entry>
500-
</row>
501-
</tbody>
502-
</tgroup>
449+
<tgroup cols="1">
450+
<thead>
451+
<!--==========================orignal english content==========================
452+
<row>
453+
<entry role="func_table_entry"><para role="func_signature">
454+
Function
455+
</para>
456+
<para>
457+
Description
458+
</para></entry>
459+
</row>
460+
____________________________________________________________________________-->
461+
<row>
462+
<entry role="func_table_entry"><para role="func_signature">
463+
函数
464+
</para>
465+
<para>
466+
描述
467+
</para></entry>
468+
</row>
469+
</thead>
470+
471+
<tbody>
472+
<!--==========================orignal english content==========================
473+
<row>
474+
<entry role="func_table_entry"><para role="func_signature">
475+
<indexterm><primary>isn_weak</primary></indexterm>
476+
<function>isn_weak</function> ( <type>boolean</type> )
477+
<returnvalue>boolean</returnvalue>
478+
</para>
479+
<para>
480+
Sets the weak input mode, and returns new setting.
481+
</para></entry>
482+
</row>
483+
____________________________________________________________________________-->
484+
<row>
485+
<entry role="func_table_entry"><para role="func_signature">
486+
<indexterm><primary>isn_weak</primary></indexterm>
487+
<function>isn_weak</function> ( <type>boolean</type> )
488+
<returnvalue>boolean</returnvalue>
489+
</para>
490+
<para>
491+
设置弱输入模式(返回新设置)
492+
</para></entry>
493+
</row>
494+
<!--==========================orignal english content==========================
495+
<row>
496+
<entry role="func_table_entry"><para role="func_signature">
497+
<function>isn_weak</function> ()
498+
<returnvalue>boolean</returnvalue>
499+
</para>
500+
<para>
501+
Returns the current status of the weak mode.
502+
</para></entry>
503+
</row>
504+
____________________________________________________________________________-->
505+
<row>
506+
<entry role="func_table_entry"><para role="func_signature">
507+
<function>isn_weak</function> ()
508+
<returnvalue>boolean</returnvalue>
509+
</para>
510+
<para>
511+
返回弱模式的当前状态
512+
</para></entry>
513+
</row>
514+
<!--==========================orignal english content==========================
515+
<row>
516+
<entry role="func_table_entry"><para role="func_signature">
517+
<indexterm><primary>make_valid</primary></indexterm>
518+
<function>make_valid</function> ( <type>isn</type> )
519+
<returnvalue>isn</returnvalue>
520+
</para>
521+
<para>
522+
Validates an invalid number (clears the invalid flag).
523+
</para></entry>
524+
</row>
525+
____________________________________________________________________________-->
526+
<row>
527+
<entry role="func_table_entry"><para role="func_signature">
528+
<indexterm><primary>make_valid</primary></indexterm>
529+
<function>make_valid</function> ( <type>isn</type> )
530+
<returnvalue>isn</returnvalue>
531+
</para>
532+
<para>
533+
验证一个非法号码(清除非法标志)
534+
</para></entry>
535+
</row>
536+
<!--==========================orignal english content==========================
537+
<row>
538+
<entry role="func_table_entry"><para role="func_signature">
539+
<indexterm><primary>is_valid</primary></indexterm>
540+
<function>is_valid</function> ( <type>isn</type> )
541+
<returnvalue>boolean</returnvalue>
542+
</para>
543+
<para>
544+
Checks for the presence of the invalid flag.
545+
</para></entry>
546+
</row>
547+
____________________________________________________________________________-->
548+
<row>
549+
<entry role="func_table_entry"><para role="func_signature">
550+
<indexterm><primary>is_valid</primary></indexterm>
551+
<function>is_valid</function> ( <type>isn</type> )
552+
<returnvalue>boolean</returnvalue>
553+
</para>
554+
<para>
555+
检查非法标志的存在
556+
</para></entry>
557+
</row>
558+
</tbody>
559+
</tgroup>
503560
</table>
504561

505562
<!--==========================orignal english content==========================
@@ -667,7 +724,7 @@ ____________________________________________________________________________-->
667724
several sites, including:
668725
<itemizedlist>
669726
<listitem><para><ulink url="https://www.isbn-international.org/"></ulink></para></listitem>
670-
<listitem><para><ulink url="http://www.issn.org/"></ulink></para></listitem>
727+
<listitem><para><ulink url="https://www.issn.org/"></ulink></para></listitem>
671728
<listitem><para><ulink url="https://www.ismn-international.org/"></ulink></para></listitem>
672729
<listitem><para><ulink url="https://www.wikipedia.org/"></ulink></para></listitem>
673730
</itemizedlist>
@@ -690,7 +747,7 @@ ____________________________________________________________________________-->
690747
实现这个模块的信息可以从下列网站收集到:
691748
<itemizedlist>
692749
<listitem><para><ulink url="https://www.isbn-international.org/"></ulink></para></listitem>
693-
<listitem><para><ulink url="http://www.issn.org/"></ulink></para></listitem>
750+
<listitem><para><ulink url="https://www.issn.org/"></ulink></para></listitem>
694751
<listitem><para><ulink url="https://www.ismn-international.org/"></ulink></para></listitem>
695752
<listitem><para><ulink url="https://www.wikipedia.org/"></ulink></para></listitem>
696753
</itemizedlist>
@@ -715,11 +772,11 @@ ____________________________________________________________________________-->
715772
<title>作者</title>
716773
<!--==========================orignal english content==========================
717774
<para>
718-
Germ&aacute;n M&eacute;ndez Bravo (Kronuz), 2004 - 2006
775+
Germ&aacute;n M&eacute;ndez Bravo (Kronuz), 2004&ndash;2006
719776
</para>
720777
____________________________________________________________________________-->
721778
<para>
722-
Germ&aacute;n M&eacute;ndez Bravo (Kronuz), 2004 - 2006
779+
Germ&aacute;n M&eacute;ndez Bravo (Kronuz), 2004&ndash;2006
723780
</para>
724781

725782
<!--==========================orignal english content==========================

0 commit comments

Comments
 (0)