cvs: phpdoc /en/reference/enchant book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Fri, 21 Dec 2007 23:52:48 +0000
Subject: cvs: phpdoc /en/reference/enchant book.xml constants.xml examples.xml reference.xml setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-703@lists.php.net to get a copy of this message
bjori Fri Dec 21 23:52:48 2007 UTC Modified files: /phpdoc/en/reference/enchant book.xml constants.xml examples.xml setup.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - Moved from reference.xml to book.xml: - The intro text (partintro), and link to various pages - Moved from reference.xml to setup.xml: - The requirements, installation, configuration & resources sections - Moved from reference.xml to examples.xml: - The examples chapter - Created a constants appendix - Changed the intro ID from <extname>.intro to intro.<extname>

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/enchant/book.xml diff -u /dev/null phpdoc/en/reference/enchant/book.xml:1.2 --- /dev/null Fri Dec 21 23:52:47 2007 +++ phpdoc/en/reference/enchant/book.xml Fri Dec 21 23:52:47 2007 @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: international --> +<!-- Membership: pecl, external --> + +<book xml:id="book.enchant" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>enchant</title> + + <!-- {{{ preface --> + <preface xml:id="intro.enchant"> + &reftitle.intro; + <para> + Enchant is the PHP binding for the + <link xlink:href="&url.enchant;">Enchant library</link>. Enchant steps + in to provide uniformity and conformity on top of all spelling + libraries, and implement certain features that may be lacking in + any individual provider library. Everything should "just work" + for any and every definition of "just working." + </para> + <para> + Enchat supports the following backends: + <itemizedlist> + <listitem> + <para> + <literal>Aspell/Pspell (intends to replace Ispell)</literal> + </para> + </listitem> + <listitem> + <para> + <literal>Ispell (old as sin, could be interpreted as a defacto standard)</literal> + </para> + </listitem> + <listitem> + <para> + <literal>MySpell/Hunspell (an OOo projects, also used by Mozilla)</literal> + </para> + </listitem> + <listitem> + <para> + <literal>Uspell (primarily Yiddish, Hebrew, and Eastern European languages - hosted in AbiWord's CVS under the module "uspell")</literal> + </para> + </listitem> + <listitem> + <para> + <literal>Hspell (Hebrew)</literal> + </para> + </listitem> + <listitem> + <para> + <literal>AppleSpell (Mac OSX)</literal> + </para> + </listitem> + </itemizedlist> + </para> + </preface> + <!-- }}} --> + + &reference.enchant.setup; + &reference.enchant.constants; + &reference.enchant.examples; + &reference.enchant.reference; + +</book> + +<!-- 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:"../../../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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/enchant/constants.xml diff -u /dev/null phpdoc/en/reference/enchant/constants.xml:1.2 --- /dev/null Fri Dec 21 23:52:47 2007 +++ phpdoc/en/reference/enchant/constants.xml Fri Dec 21 23:52:47 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="enchant.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- 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:"../../../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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/enchant/examples.xml diff -u /dev/null phpdoc/en/reference/enchant/examples.xml:1.2 --- /dev/null Fri Dec 21 23:52:47 2007 +++ phpdoc/en/reference/enchant/examples.xml Fri Dec 21 23:52:47 2007 @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> +<appendix xml:id="enchant.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <example> + <title>Enchant Usage Example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$tag = 'en_US'; +$r = enchant_broker_init(); +$bprovides = enchant_broker_describe($r); +echo "Current broker provides the following backend(s):\n"; +print_r($bprovides); + +$dicts = enchant_broker_list_dicts($r); +print_r($dicts); +if (enchant_broker_dict_exists($r,$tag)) { + $d = enchant_broker_request_dict($r, $tag); + $dprovides = enchant_dict_describe($d); + echo "dictionary $tag provides:\n"; + $spellerrors = enchant_dict_check($d, "soong"); + print_r($dprovides); + echo "found $spellerrors spell errors\n"; + if ($spellerrors) { + $suggs = enchant_dict_suggest($d, "soong"); + echo "Suggestions for 'soong':"; + print_r($suggs); + } + enchant_broker_free_dict($d); +} else { +} +enchant_broker_free($r); +?> +]]> + </programlisting> + </example> +</appendix> + +<!-- 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:"../../../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 +--> + + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/enchant/setup.xml diff -u /dev/null phpdoc/en/reference/enchant/setup.xml:1.2 --- /dev/null Fri Dec 21 23:52:48 2007 +++ phpdoc/en/reference/enchant/setup.xml Fri Dec 21 23:52:47 2007 @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="enchant.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="enchant.requirements"> + &reftitle.required; + <para> + This version uses the functions of the + <link xlink:href="&url.enchant;">Enchant library</link> by + Dom Lachowicz. You need Enchant 1.2.4 or later. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + <section xml:id="enchant.installation"> + &reftitle.install; + <para> + &pecl.info; + <link xlink:href="&url.pecl.package;enchant">&url.pecl.package;enchant</link>. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="enchant.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="enchant.resources"> + &reftitle.resources; + <para> + There are two types of resources in this extension. The first + one is the broker (backends manager) and the second is for the + dictionary. + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- 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:"../../../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 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/reference.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/enchant/reference.xml diff -u phpdoc/en/reference/enchant/reference.xml:1.5 phpdoc/en/reference/enchant/reference.xml:1.6 --- phpdoc/en/reference/enchant/reference.xml:1.5 Mon Dec 10 17:06:02 2007 +++ phpdoc/en/reference/enchant/reference.xml Fri Dec 21 23:52:47 2007 @@ -1,128 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- Purpose: international --> -<!-- Membership: pecl, external --> -<reference xml:id="ref.enchant" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>enchant Functions</title> - <titleabbrev>enchant</titleabbrev> - - <partintro> - <section xml:id="enchant.intro"> - &reftitle.intro; - <para> - Enchant is the PHP binding for the - <link xlink:href="&url.enchant;">Enchant library</link>. Enchant steps - in to provide uniformity and conformity on top of all spelling - libraries, and implement certain features that may be lacking in - any individual provider library. Everything should "just work" - for any and every definition of "just working." - </para> - <para> - Enchat supports the following backends: - <itemizedlist> - <listitem> - <para> - <literal>Aspell/Pspell (intends to replace Ispell)</literal> - </para> - </listitem> - <listitem> - <para> - <literal>Ispell (old as sin, could be interpreted as a defacto standard)</literal> - </para> - </listitem> - <listitem> - <para> - <literal>MySpell/Hunspell (an OOo projects, also used by Mozilla)</literal> - </para> - </listitem> - <listitem> - <para> - <literal>Uspell (primarily Yiddish, Hebrew, and Eastern European languages - hosted in AbiWord's CVS under the module "uspell")</literal> - </para> - </listitem> - <listitem> - <para> - <literal>Hspell (Hebrew)</literal> - </para> - </listitem> - <listitem> - <para> - <literal>AppleSpell (Mac OSX)</literal> - </para> - </listitem> - </itemizedlist> - </para> - </section> - <section xml:id="enchant.requirements"> - &reftitle.required; - <para> - This version uses the functions of the - <link xlink:href="&url.enchant;">Enchant library</link> by - Dom Lachowicz. You need Enchant 1.2.4 or later. - </para> - </section> - <section xml:id="enchant.installation"> - &reftitle.install; - <para> - &pecl.info; - <link xlink:href="&url.pecl.package;enchant">&url.pecl.package;enchant</link>. - </para> - </section> - <!-- Information found in configure.xml --> - <!-- reference.enchant.configure; --> - <!-- Information found in ini.xml --> - <!-- reference.enchant.ini; --> - - <section xml:id="enchant.configuration"> - &reftitle.runtime; - &no.config; - </section> - <section xml:id="enchant.resources"> - &reftitle.resources; - <para> - There are two types of resources in this extension. The first - one is the broker (backends manager) and the second is for the - dictionary. - </para> - </section> +<!-- $Revision: 1.6 $ --> - <section xml:id="enchant.examples"> - &reftitle.examples; - <example> - <title>Enchant Usage Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -$tag = 'en_US'; -$r = enchant_broker_init(); -$bprovides = enchant_broker_describe($r); -echo "Current broker provides the following backend(s):\n"; -print_r($bprovides); +<reference xml:id="ref.enchant" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>enchant &Functions;</title> -$dicts = enchant_broker_list_dicts($r); -print_r($dicts); -if (enchant_broker_dict_exists($r,$tag)) { - $d = enchant_broker_request_dict($r, $tag); - $dprovides = enchant_dict_describe($d); - echo "dictionary $tag provides:\n"; - $spellerrors = enchant_dict_check($d, "soong"); - print_r($dprovides); - echo "found $spellerrors spell errors\n"; - if ($spellerrors) { - $suggs = enchant_dict_suggest($d, "soong"); - echo "Suggestions for 'soong':"; - print_r($suggs); - } - enchant_broker_free_dict($d); -} else { -} -enchant_broker_free($r); -?> -]]> - </programlisting> - </example> - </section> - </partintro> &reference.enchant.entities.functions; </reference> @@ -146,3 +27,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +
« previous php.doc.cvs (#703) next »