@@ -23,7 +23,7 @@ ____________________________________________________________________________-->
23
23
hard-coded list of prefixes; this list of prefixes is also used to hyphenate
24
24
numbers on output. Since new prefixes are assigned from time to time, the
25
25
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
27
27
can be easily updated by users as needed; however, at present, the
28
28
list can only be updated by modifying the source code and recompiling.
29
29
Alternatively, prefix validation and hyphenation support may be
@@ -34,6 +34,17 @@ ____________________________________________________________________________-->
34
34
<filename>isn</filename>模块为下列国际产品编号标准提供数据类型:EAN13、UPC、ISBN(图书)、ISMN(音乐)以及 ISSN(期刊)。在输入时会按照一个硬编码的前缀列表对输入进行验证,这个前缀的列表也被用来在输出时连接号码。因为新的前缀总是不时地出现,这个前缀列表可能会过时。这个模块的一个未来版本有希望得到一个来自于一个或多个表的前缀列表,这样用户可以根据需要来方便地更新前缀列表。不过,在当前该列表只能通过修改源代码并且重新编译来更新。另外一种方案是,在这个模块的未来版本中可能会直接移除掉前缀验证和连接支持。
35
35
</para>
36
36
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
+
37
48
<sect2>
38
49
<!--==========================orignal english content==========================
39
50
<title>Data Types</title>
@@ -56,6 +67,8 @@ ____________________________________________________________________________-->
56
67
____________________________________________________________________________-->
57
68
<title><filename>isn</filename> 数据类型</title>
58
69
<tgroup cols="2">
70
+ <colspec colname="col1" colwidth="1*"/>
71
+ <colspec colname="col2" colwidth="2*"/>
59
72
<thead>
60
73
<!--==========================orignal english content==========================
61
74
<row>
@@ -433,73 +446,117 @@ ____________________________________________________________________________-->
433
446
<title><filename>isn</filename> Functions</title>
434
447
____________________________________________________________________________-->
435
448
<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>
503
560
</table>
504
561
505
562
<!--==========================orignal english content==========================
@@ -667,7 +724,7 @@ ____________________________________________________________________________-->
667
724
several sites, including:
668
725
<itemizedlist>
669
726
<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>
671
728
<listitem><para><ulink url="https://www.ismn-international.org/"></ulink></para></listitem>
672
729
<listitem><para><ulink url="https://www.wikipedia.org/"></ulink></para></listitem>
673
730
</itemizedlist>
@@ -690,7 +747,7 @@ ____________________________________________________________________________-->
690
747
实现这个模块的信息可以从下列网站收集到:
691
748
<itemizedlist>
692
749
<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>
694
751
<listitem><para><ulink url="https://www.ismn-international.org/"></ulink></para></listitem>
695
752
<listitem><para><ulink url="https://www.wikipedia.org/"></ulink></para></listitem>
696
753
</itemizedlist>
@@ -715,11 +772,11 @@ ____________________________________________________________________________-->
715
772
<title>作者</title>
716
773
<!--==========================orignal english content==========================
717
774
<para>
718
- Germán Méndez Bravo (Kronuz), 2004 - 2006
775
+ Germán Méndez Bravo (Kronuz), 2004– 2006
719
776
</para>
720
777
____________________________________________________________________________-->
721
778
<para>
722
- Germán Méndez Bravo (Kronuz), 2004 - 2006
779
+ Germán Méndez Bravo (Kronuz), 2004– 2006
723
780
</para>
724
781
725
782
<!--==========================orignal english content==========================
0 commit comments