source: www/manuals/PHP_manual/function.pspell-new.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 5.3 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>pspell_new</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Pspell Functions"
13HREF="ref.pspell.html"><LINK
14REL="PREVIOUS"
15TITLE="pspell_new_personal"
16HREF="function.pspell-new-personal.html"><LINK
17REL="NEXT"
18TITLE="pspell_save_wordlist"
19HREF="function.pspell-save-wordlist.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.pspell-new-personal.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.pspell-save-wordlist.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.pspell-new"
75></A
76>pspell_new</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN73990"
81></A
82><P
83> (PHP 4 &#62;= 4.0.2)</P
84>pspell_new&nbsp;--&nbsp;Load a new dictionary</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN73993"
89></A
90><H2
91>Description</H2
92>int <B
93CLASS="methodname"
94>pspell_new</B
95> ( string language [, string spelling [, string jargon [, string encoding [, int mode]]]])<BR
96></BR
97><P
98>&#13; <B
99CLASS="function"
100>pspell_new()</B
101> opens up a new dictionary and
102 returns the dictionary link identifier for use in other pspell
103 functions.
104 </P
105><P
106>&#13; The language parameter is the language code which consists of the
107 two letter ISO 639 language code and an optional two letter ISO
108 3166 country code after a dash or underscore.
109 </P
110><P
111>&#13; The spelling parameter is the requested spelling for languages
112 with more than one spelling such as English. Known values are
113 'american', 'british', and 'canadian'.
114 </P
115><P
116>&#13; The jargon parameter contains extra information to distinguish
117 two different words lists that have the same language and
118 spelling parameters.
119 </P
120><P
121>&#13; The encoding parameter is the encoding that words are expected to
122 be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r',
123 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned
124 32'. This parameter is largely untested, so be careful when
125 using.
126 </P
127><P
128>&#13; The mode parameter is the mode in which spellchecker will work.
129 There are several modes available:
130 <P
131></P
132><UL
133><LI
134><P
135>&#13; <TT
136CLASS="constant"
137><B
138>PSPELL_FAST</B
139></TT
140> - Fast mode (least number of
141 suggestions)
142 </P
143></LI
144><LI
145><P
146>&#13; <TT
147CLASS="constant"
148><B
149>PSPELL_NORMAL</B
150></TT
151> - Normal mode (more suggestions)
152 </P
153></LI
154><LI
155><P
156>&#13; <TT
157CLASS="constant"
158><B
159>PSPELL_BAD_SPELLERS</B
160></TT
161> - Slow mode (a lot of
162 suggestions)
163 </P
164></LI
165><LI
166><P
167>&#13; <TT
168CLASS="constant"
169><B
170>PSPELL_RUN_TOGETHER</B
171></TT
172> - Consider run-together words
173 as legal compounds. That is, "thecat" will be a legal compound,
174 athough there should be a space between the two words. Changing this
175 setting only affects the results returned by
176 <A
177HREF="function.pspell-check.html"
178><B
179CLASS="function"
180>pspell_check()</B
181></A
182>; <A
183HREF="function.pspell-suggest.html"
184><B
185CLASS="function"
186>pspell_suggest()</B
187></A
188>
189 will still return suggestions.
190 </P
191></LI
192></UL
193>
194 Mode is a bitmask constructed from different constants listed above.
195 However, <TT
196CLASS="constant"
197><B
198>PSPELL_FAST</B
199></TT
200>,
201 <TT
202CLASS="constant"
203><B
204>PSPELL_NORMAL</B
205></TT
206> and
207 <TT
208CLASS="constant"
209><B
210>PSPELL_BAD_SPELLERS</B
211></TT
212> are mutually exclusive, so you
213 should select only one of them.
214 </P
215><P
216>&#13; For more information and examples, check out inline manual pspell
217 website:<A
218HREF="http://aspell.net/"
219TARGET="_top"
220>http://aspell.net/</A
221>.
222 </P
223><P
224>&#13; <TABLE
225WIDTH="100%"
226BORDER="0"
227CELLPADDING="0"
228CELLSPACING="0"
229CLASS="EXAMPLE"
230><TR
231><TD
232><DIV
233CLASS="example"
234><A
235NAME="AEN74041"
236></A
237><P
238><B
239>Pøíklad 1. <B
240CLASS="function"
241>pspell_new()</B
242></B
243></P
244><TABLE
245BORDER="0"
246BGCOLOR="#E0E0E0"
247CELLPADDING="5"
248><TR
249><TD
250><PRE
251CLASS="php"
252>$pspell_link = pspell_new ("en", "", "", "",
253 (PSPELL_FAST|PSPELL_RUN_TOGETHER));</PRE
254></TD
255></TR
256></TABLE
257></DIV
258></TD
259></TR
260></TABLE
261>
262 </P
263></DIV
264><DIV
265CLASS="NAVFOOTER"
266><HR
267ALIGN="LEFT"
268WIDTH="100%"><TABLE
269SUMMARY="Footer navigation table"
270WIDTH="100%"
271BORDER="0"
272CELLPADDING="0"
273CELLSPACING="0"
274><TR
275><TD
276WIDTH="33%"
277ALIGN="left"
278VALIGN="top"
279><A
280HREF="function.pspell-new-personal.html"
281ACCESSKEY="P"
282>Pøedcházející</A
283></TD
284><TD
285WIDTH="34%"
286ALIGN="center"
287VALIGN="top"
288><A
289HREF="index.html"
290ACCESSKEY="H"
291>Domù</A
292></TD
293><TD
294WIDTH="33%"
295ALIGN="right"
296VALIGN="top"
297><A
298HREF="function.pspell-save-wordlist.html"
299ACCESSKEY="N"
300>Dal¹í</A
301></TD
302></TR
303><TR
304><TD
305WIDTH="33%"
306ALIGN="left"
307VALIGN="top"
308>pspell_new_personal</TD
309><TD
310WIDTH="34%"
311ALIGN="center"
312VALIGN="top"
313><A
314HREF="ref.pspell.html"
315ACCESSKEY="U"
316>Nahoru</A
317></TD
318><TD
319WIDTH="33%"
320ALIGN="right"
321VALIGN="top"
322>pspell_save_wordlist</TD
323></TR
324></TABLE
325></DIV
326></BODY
327></HTML
328>
Note: See TracBrowser for help on using the repository browser.