reference/pspell/functions/pspell-store-replacement.xml
81b23db050ac0627b056585c16bfe95445ae174e
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>pspell_store_replacement</methodname>
13
-
<methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam>
13
+
<methodparam><type>PSpell\Dictionary</type><parameter>dictionary</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>misspelled</parameter></methodparam>
15
15
<methodparam><type>string</type><parameter>correct</parameter></methodparam>
16
16
</methodsynopsis>
...
...
@@ -33,12 +33,9 @@
33
33
<para>
34
34
<variablelist>
35
35
<varlistentry>
36
-
<term><parameter>dictionary_link</parameter></term>
36
+
<term><parameter>dictionary</parameter></term>
37
37
<listitem>
38
-
<para>
39
-
A dictionary link identifier, opened with
40
-
<function>pspell_new_personal</function>
41
-
</para>
38
+
&pspell.parameter.pspell-dictionary;
42
39
</listitem>
43
40
</varlistentry>
44
41
<varlistentry>
...
...
@@ -68,6 +65,23 @@
68
65
</para>
69
66
</refsect1>
70
67

68
+
<refsect1 role="changelog">
69
+
&reftitle.changelog;
70
+
<informaltable>
71
+
<tgroup cols="2">
72
+
<thead>
73
+
<row>
74
+
<entry>&Version;</entry>
75
+
<entry>&Description;</entry>
76
+
</row>
77
+
</thead>
78
+
<tbody>
79
+
&pspell.changelog.pspell-dictionary;
80
+
</tbody>
81
+
</tgroup>
82
+
</informaltable>
83
+
</refsect1>
84
+

71
85
<refsect1 role="examples">
72
86
&reftitle.examples;
73
87
<para>
...
...
@@ -79,10 +93,10 @@
79
93
$pspell_config = pspell_config_create("en");
80
94
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
81
95
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
82
-
$pspell_link = pspell_new_config($pspell_config);
96
+
$pspell = pspell_new_config($pspell_config);
83
97

84
-
pspell_store_replacement($pspell_link, $misspelled, $correct);
85
-
pspell_save_wordlist($pspell_link);
98
+
pspell_store_replacement($pspell, $misspelled, $correct);
99
+
pspell_save_wordlist($pspell);
86
100
?>
87
101
]]>
88
102
</programlisting>
...
...
@@ -101,7 +115,6 @@ pspell_save_wordlist($pspell_link);
101
115
</refsect1>
102
116

103
117
</refentry>
104
-

105
118
<!-- Keep this comment at the end of the file
106
119
Local variables:
107
120
mode: sgml
108
121