svn: /phpdoc/ru/trunk/reference/pspell/functions/ pspell-config-mode.xml pspell-new-config.xml

From: Date: Fri, 09 Dec 2011 16:05:48 +0000
Subject: svn: /phpdoc/ru/trunk/reference/pspell/functions/ pspell-config-mode.xml pspell-new-config.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-3390@lists.php.net to get a copy of this message
northcat Fri, 09 Dec 2011 16:05:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320793 Log: Added unreviewed translation. Changed paths: A phpdoc/ru/trunk/reference/pspell/functions/pspell-config-mode.xml A phpdoc/ru/trunk/reference/pspell/functions/pspell-new-config.xml Added: phpdoc/ru/trunk/reference/pspell/functions/pspell-config-mode.xml =================================================================== --- phpdoc/ru/trunk/reference/pspell/functions/pspell-config-mode.xml (rev 0) +++ phpdoc/ru/trunk/reference/pspell/functions/pspell-config-mode.xml 2011-12-09 16:05:48 UTC (rev 320793) @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 297028 Maintainer: northcat Status: ready --> +<!-- Reviewed: no --> +<refentry xml:id="function.pspell-config-mode" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pspell_config_mode</refname> + <refpurpose>Изменяет режим количества возвращаемых вариантов исправления</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>pspell_config_mode</methodname> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <simpara> + <function>pspell_config_mode</function> должна быть использована для конфигурации + до вызова <function>pspell_new_config</function>. Эта функция + определяет, сколько вариантов исправления будет возвращать функция + <function>pspell_suggest</function>. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>dictionary_link</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>mode</parameter></term> + <listitem> + <para> + Параметр mode - это режим, в котором будет работать проверка орфографии. + Доступно несколько режимов: + <itemizedlist> + <listitem> + <simpara> + <constant>PSPELL_FAST</constant> - Быстрый режим (наименьшее число + вариантов исправления) + </simpara> + </listitem> + <listitem> + <simpara> + <constant>PSPELL_NORMAL</constant> - Нормальный режим (больше вариантов исправления) + </simpara> + </listitem> + <listitem> + <simpara> + <constant>PSPELL_BAD_SPELLERS</constant> - Медленный режим (много + вариантов исправления) + </simpara> + </listitem> + </itemizedlist> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Пример использования <function>pspell_config_mode</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$pspell_config = pspell_config_create("en"); +pspell_config_mode($pspell_config, PSPELL_FAST); +$pspell_link = pspell_new_config($pspell_config); +pspell_check($pspell_link, "thecat"); +?> +]]> + </programlisting> + </example> + </para> + </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 +--> Property changes on: phpdoc/ru/trunk/reference/pspell/functions/pspell-config-mode.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native Added: phpdoc/ru/trunk/reference/pspell/functions/pspell-new-config.xml =================================================================== --- phpdoc/ru/trunk/reference/pspell/functions/pspell-new-config.xml (rev 0) +++ phpdoc/ru/trunk/reference/pspell/functions/pspell-new-config.xml 2011-12-09 16:05:48 UTC (rev 320793) @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 297028 Maintainer: northcat Status: ready --> +<!-- Reviewed: no --> + +<refentry xml:id="function.pspell-new-config" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pspell_new_config</refname> + <refpurpose>Загружает новый словарь с установками на основе заданной конфигурации + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>pspell_new_config</methodname> + <methodparam><type>int</type><parameter>config</parameter></methodparam> + </methodsynopsis> + <simpara> + <function>pspell_new_config</function> открывает новый словарь с + параметрами, заданными в конфигурации, созданной с помощью + <function>pspell_config_create</function> и модифицированной с помощью функций + <function>pspell_config_*</function>. Этот метод дает + наибольшую гибкость и имеет все функциональные возможности, предоставляемые + <function>pspell_new</function> и + <function>pspell_new_personal</function>. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>config</parameter></term> + <listitem> + <para> + Параметр <parameter>config</parameter> - это параметр возвращённый функцией + <function>pspell_config_create</function> после того, как конфигурация была создана. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + В случае успеха возвращает ссылку на словарь. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pspell_new_config</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$pspell_config = pspell_config_create("en"); +pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws"); +pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl"); +$pspell_link = pspell_new_config($pspell_config); +?> +]]> + </programlisting> + </example> + </para> + </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 +--> Property changes on: phpdoc/ru/trunk/reference/pspell/functions/pspell-new-config.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.ru (#3390) next »