php-doc-en/reference/pspell/functions/pspell-config-save-repl.xml
Yoshinari Takaoka 81b23db050
[PHP 8.1] Use an Pspell\[Dictionary|Config] instance instead of a resource (#976)
* add pspell related object class.
* changed resource list description.
* changes pspell function signature and parameters, changelog.
* use pspell.parameter.pspell-dictionary snippet.
2021-10-07 01:00:37 +09:00

108 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.pspell-config-save-repl" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>pspell_config_save_repl</refname>
<refpurpose>Determine whether to save a replacement pairs list
along with the wordlist</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>pspell_config_save_repl</methodname>
<methodparam><type>PSpell\Config</type><parameter>config</parameter></methodparam>
<methodparam><type>bool</type><parameter>save</parameter></methodparam>
</methodsynopsis>
<para>
<function>pspell_config_save_repl</function> determines whether
<function>pspell_save_wordlist</function> will save the replacement pairs
along with the wordlist. Usually there is no need to use this function
because if <function>pspell_config_repl</function> is used, the
replacement pairs will be saved by
<function>pspell_save_wordlist</function> anyway, and if it is not,
the replacement pairs will not be saved.
</para>
<para>
<function>pspell_config_save_repl</function> should be used on a config
before calling <function>pspell_new_config</function>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>config</parameter></term>
<listitem>
&pspell.parameter.pspell-config;
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>save</parameter></term>
<listitem>
<para>
&true; if replacement pairs should be saved, &false; otherwise.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&pspell.changelog.pspell-config;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
This function will not work unless you have pspell .11.2 and aspell .32.5
or later.
</para>
</note>
</refsect1>
</refentry>
<!-- 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:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->