File: aspell.xml

package info (click to toggle)
phpdoc 20020310-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 35,272 kB
  • ctags: 354
  • sloc: xml: 799,767; php: 1,395; cpp: 500; makefile: 200; sh: 140; awk: 51
file content (182 lines) | stat: -rw-r--r-- 6,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.14 $ -->
<reference id="ref.aspell">
 <title>Aspell</title>
 <titleabbrev>aspell</titleabbrev>
 <partintro>
  <simpara>
   Les fonctions Aspell vous permettent de v&eacute;rifier l'orthographe d'un mot,
   et d'offrir des suggestions de corrections. Plusieurs langues sont disponibles,
   comme le fran&ccedil;ais, l'anglais, l'allemand, le su&eacute;dois ou le danois.
  </simpara>
  <note>
   <simpara>
    Aspell fonctionne avec de tr&egrave;s vielles versions (jusqu'&agrave; la
    version .27.* ou presque) de la librairie Aspell. Ce module, et ces versions
    d'Aspell ne sont plus support&eacute;es. Si vous voulez exploiter des
    capacit&eacute;s de v&eacute;rifications orthographiques en PHP,
    utilisez plut&ocirc;t  <link linkend="ref.pspell">pspell</link>.
    Ce module utilise la librairie pspell qui fonctionne avec les
    nouvelles versions de Aspell.
   </simpara>
  </note>
  <simpara>
   Vous avez besoin de la librairie Aspell, disponible &agrave; :
   <ulink url="&url.aspell;">&url.aspell;</ulink>.
  </simpara>
 </partintro>
 <refentry id="function.aspell-new">
  <refnamediv>
   <refname>aspell_new</refname>
   <refpurpose>Charge un nouveau dictionnaire [Obsol&egrave;te]</refpurpose>
  </refnamediv>
  <refsect1>
   <title>Description</title>
    <methodsynopsis>
     <type>resource</type><methodname>aspell_new</methodname>
     <methodparam><type>string</type><parameter>master</parameter></methodparam>
     <methodparam><type>string</type><parameter>personal</parameter></methodparam>
    </methodsynopsis>
   <simpara>
    <function>aspell_new</function> ouvre un nouveau dictionaire, et
    retourne un identifiant de dictionnaire pour utilisation ult&eacute;rieure
    dans les fonctions aspell. <function>aspell_new</function> retourne &false; 
    en cas d'erreur.
   </simpara>
   <para>
    <example>
     <title>Exemple avec <function>aspell_new</function></title>
     <programlisting role="php">
&lt;?php
  $aspell_link = aspell_new("english");
?&gt;
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>
  <refentry id="function.aspell-check">
   <refnamediv>
    <refname>aspell_check</refname>
    <refpurpose>V&eacute;rifie un mot [Obsol&egrave;te]</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>boolean</type><methodname>aspell_check</methodname>
      <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam>
      <methodparam><type>string</type><parameter>word</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     <function>aspell_check</function> v&eacute;rifie l'orthographe d'un mot
     et retourne &true; si l'orthographe est correcte,
     et &false; sinon.
    </simpara>
    <para>
     <example>
      <title>Exemple avec <function>aspell_check</function></title>
      <programlisting role="php">
&lt;?php
  $aspell_link = aspell_new("english");
  if (aspell_check($aspell_link,"testt")) {
    echo "L'orthographe est correcte.";
  } else {
    echo "D&eacute;sol&eacute;, l'orthographe est incorrecte.";
  }
?&gt;
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>
  <refentry id="function.aspell-check-raw">
   <refnamediv>
    <refname>aspell_check_raw</refname>
    <refpurpose>
     V&eacute;rifie un mot sans en changer la casse et sans essayer de supprimer
     les espaces aux extr&eacute;mit&eacute;s. [Obsol&egrave;te]
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>boolean</type><methodname>aspell_check_raw</methodname>
      <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam>
      <methodparam><type>string</type><parameter>word</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     <function>aspell_check_raw</function> v&eacute;rifie l'orthographe
     d'un mot sans en changer la casse, et sans essayer de supprimer les
     espaces aux extr&eacute;mit&eacute;s. Elle retourne &true;
     si l'orthographe est bonne, et &false; sinon.
    </simpara>
    <para>
     <example>
      <title>Exemple avec <function>aspell_check_raw</function></title>
      <programlisting role="php">
&lt;?php
  $aspell_link = aspell_new("french");
  if (aspell_check_raw($aspell_link,"testt")) {
    echo "L'orthographe est OK";
  } else {
    echo "Attention : faute d'orthographe";
  }
?&gt;
     </programlisting>
    </example>
   </para>
  </refsect1>
 </refentry>
 <refentry id="function.aspell-suggest">
  <refnamediv>
   <refname>aspell_suggest</refname>
   <refpurpose>Sugg&egrave;re l'orthographe d'un mot [Obsol&egrave;te]</refpurpose>
  </refnamediv>
  <refsect1>
   <title>Description</title>
    <methodsynopsis>
     <type>array</type><methodname>aspell_suggest</methodname>
     <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam>
     <methodparam><type>string</type><parameter>word</parameter></methodparam>
    </methodsynopsis>
   <simpara>
    <function>aspell_suggest</function> retourne un tableau contenant
    les orthographes possibles d'un mot mal form&eacute;.
   </simpara>
   <para>
    <example>
     <title>Exemple avec <function>aspell_suggest</function></title>
     <programlisting role="php">
&lt;?php
  $aspell_link = aspell_new("french");
  if (!aspell_check($aspell_link,"testt")) {
    $suggestions=aspell_suggest($aspell_link,"testt");
    for($i=0; $i &lt; count($suggestions); $i++) {
       echo "Orthographes envisageables : " . $suggestions[$i] . "&lt;br&gt;";
    }
  }
?&gt;
     </programlisting>
    </example>
   </para>
  </refsect1>
 </refentry>
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->