didou Wed Jul 16 13:16:43 2003 EDT Modified files: /phpdoc/en/reference/mnogosearch/functions udm-load-ispell-data.xml Log: adding PHP tags in the examples Index: phpdoc/en/reference/mnogosearch/functions/udm-load-ispell-data.xml diff -u phpdoc/en/reference/mnogosearch/functions/udm-load-ispell-data.xml:1.3 phpdoc/en/reference/mnogosearch/functions/udm-load-ispell-data.xml:1.4 --- phpdoc/en/reference/mnogosearch/functions/udm-load-ispell-data.xml:1.3 Sun Jun 29 15:51:33 2003 +++ phpdoc/en/reference/mnogosearch/functions/udm-load-ispell-data.xml Wed Jul 16 13:16:43 2003 @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mnogosearch.xml, last change in rev 1.18 --> <refentry id="function.udm-load-ispell-data"> <refnamediv> <refname>udm_load_ispell_data</refname> <refpurpose>Load ispell data</refpurpose> </refnamediv> - <refsect1> <title>Description</title> <methodsynopsis> @@ -17,34 +16,28 @@ <methodparam><type>string</type><parameter>val2</parameter></methodparam> <methodparam><type>int</type><parameter>flag</parameter></methodparam> </methodsynopsis> - <para> <function>udm_load_ispell_data</function> loads ispell data. &return.success; </para> - <para> <parameter>agent</parameter> - agent link identifier, received after call to <function>udm_alloc_agent</function>. </para> - <para> <parameter>var</parameter> - parameter, indicating the source for ispell data. May have the following values: </para> - <para> After using this function to free memory allocated for ispell data, please use <function>udm_free_ispell_data</function>, even if you use UDM_ISPELL_TYPE_SERVER mode. </para> - <para> The fastest mode is UDM_ISPELL_TYPE_SERVER. UDM_ISPELL_TYPE_TEXT is slower and UDM_ISPELL_TYPE_DB is the slowest. The above pattern is &true; for mnoGoSearch 3.1.10 - 3.1.11. It is planned to speed up DB mode in future versions and it is going to be faster than TEXT mode. </para> - <itemizedlist> <listitem> <simpara> @@ -53,7 +46,6 @@ are ignored and should be left blank. <parameter>flag</parameter> should be equal to <literal>1</literal>. </simpara> - <note> <para> <parameter>flag</parameter> indicates that after loading ispell data @@ -68,6 +60,7 @@ <function>udm_error</function> and <function>udm_errno</function>. </para> </note> + <para> <example> <title><function>udm_load_ispell_data</function>example</title> <programlisting role="php"> @@ -81,6 +74,7 @@ ]]> </programlisting> </example> + </para> </listitem> <listitem> <para> @@ -138,16 +132,17 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php if ((! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_AFFIX,'en','/opt/ispell/en.aff',0)) || (! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_AFFIX,'ru','/opt/ispell/ru.aff',0)) || (! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_SPELL,'en','/opt/ispell/en.dict',0)) || (! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_SPELL,'ru','/opt/ispell/ru.dict',1))) { exit; } +?> ]]> </programlisting> </informalexample> - <note> <para> <parameter>flag</parameter> is equal to <literal>1</literal> only in the last call. @@ -181,21 +176,21 @@ is not running or invalid host indicated, there are no messages returned and ispell conversion does not work. </para> - <note> <para> This function is available in mnoGoSearch 3.1.12 or later. </para> </note> - <simpara>Example:</simpara> <informalexample> <programlisting role="php"> <![CDATA[ +<?php if (!udm_load_ispell_data($udm,UDM_ISPELL_TYPE_SERVER,'','',1)) { printf("Error loading ispell data from server<br>\n"); exit; } +?> ]]> </programlisting> </informalexample>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php