cvs: peardoc /fr/package/console console-color.xml /fr/package/console/console-color colorcodes.xml intro.xml

From: Date: Sat, 09 Jun 2007 08:33:43 +0000
Subject: cvs: peardoc /fr/package/console console-color.xml /fr/package/console/console-color colorcodes.xml intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9764@lists.php.net to get a copy of this message
moosh Sat Jun 9 08:33:43 2007 UTC Added files: /peardoc/fr/package/console/console-color colorcodes.xml intro.xml /peardoc/fr/package/console console-color.xml Log: - initial translation http://cvs.php.net/viewvc.cgi/peardoc/fr/package/console/console-color/colorcodes.xml?view=markup&rev=1.1 Index: peardoc/fr/package/console/console-color/colorcodes.xml +++ peardoc/fr/package/console/console-color/colorcodes.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: moosh Status: ready --> <refentry id="package.console.console-couleur.couleurcodes"> <refnamediv> <refname>Codes couleur</refname> <refpurpose>Table de référence</refpurpose> </refnamediv> <refsect1 id="package.console.console-couleur.couleurcodes.description"> <title>Description</title> <table> <title>Codes couleur</title> <tgroup cols="4"> <thead> <row> <entry>Couleur</entry> <entry>Texte normal</entry> <entry>Texte à fonte grasse</entry> <entry>Arrière-plan</entry> </row> </thead> <tbody> <row> <entry>Noir</entry> <entry><literal>%k</literal></entry> <entry><literal>%K</literal></entry> <entry><literal>%0</literal></entry> </row> <row> <entry>Rouge</entry> <entry><literal>%r</literal></entry> <entry><literal>%R</literal></entry> <entry><literal>%1</literal></entry> </row> <row> <entry>Vert</entry> <entry><literal>%g</literal></entry> <entry><literal>%G</literal></entry> <entry><literal>%2</literal></entry> </row> <row> <entry>Jaune</entry> <entry><literal>%y</literal></entry> <entry><literal>%Y</literal></entry> <entry><literal>%3</literal></entry> </row> <row> <entry>Bleu</entry> <entry><literal>%b</literal></entry> <entry><literal>%B</literal></entry> <entry><literal>%4</literal></entry> </row> <row> <entry>Magenta</entry> <entry><literal>%m</literal></entry> <entry><literal>%m</literal></entry> <entry><literal>%5</literal></entry> </row> <row> <entry>Pourpre</entry> <entry><literal>%p</literal></entry> <entry><literal>%P</literal></entry> <entry></entry> </row> <row> <entry>Cyan</entry> <entry><literal>%c</literal></entry> <entry><literal>%C</literal></entry> <entry><literal>%6</literal></entry> </row> <row> <entry>Blanc</entry> <entry><literal>%w</literal></entry> <entry><literal>%W</literal></entry> <entry><literal>%7</literal></entry> </row> </tbody> </tgroup> </table> <table> <title>Codes de style</title> <tgroup cols="2"> <thead> <row> <entry>Style</entry> <entry>Code</entry> </row> </thead> <tbody> <row> <entry>Clignotant</entry> <entry><literal>%F</literal></entry> </row> <row> <entry>Souligné</entry> <entry><literal>%U</literal></entry> </row> <row> <entry>Négatif</entry> <entry><literal>%8</literal></entry> </row> <row> <entry>Fonte grasse</entry> <entry><literal>%_</literal>, <literal>%9</literal></entry> </row> <row> <entry>Couleur initiale</entry> <entry><literal>%n</literal></entry> </row> <row> <entry>Simple %</entry> <entry><literal>%%</literal></entry> </row> </tbody> </tgroup> </table> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/console/console-color/intro.xml?view=markup&rev=1.1 Index: peardoc/fr/package/console/console-color/intro.xml +++ peardoc/fr/package/console/console-color/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: moosh Status: ready --> <refentry id="package.console.console-color.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Comment utiliser Console_Color</refpurpose> </refnamediv> <refsect1 id="package.console.console-color.intro.basics"> <title>Eléments de base</title> <para> <classname>Console_Color</classname> fournit de méthodes pour convertir des chaînes taguées avec des marqueurs simplifiés en chaines avec les marqueurs couleur compatibles ANSI, et des méthode pour retourner directement ces codes pour certaines couleurs. </para> <para> La méthode la plus utilisée est <function>convert</function>. Elle recoit une chaîne comme par exemple <screen><![CDATA[%bHello World!%n\n]]></screen> ou <screen><![CDATA[3 out of 4 people make up about %r75%% %n]]></screen> et retourne la representation ANSI. Les caractères suivant un signe pourcentage (%) ont une signification spéciale. Regardez les <link linkend="package.console.console-color.colorcodes">codes couleur</link> pour en voir le panel. </para> <para> Pour revenir à la couleur normale il faut utiliser <literal>%n</literal>. </para> <para> De plus, il y a une méthode d'échappement (<function>escape</function>) qui empêche les caractères spéciaux d'être traités comme marqueurs.. </para> <para> Les méthodes <function>bgcolor</function>, <function>color</function>, <function>fgcolor</function> et <function>style</function> retournent directement un code ANSI pour la couleur ou le style demandé en paramètre. </para> </refsect1> <refsect1 id="package.console.console-color.intro.example"> <title>Exemple</title> <programlisting role="php"><![CDATA[ <?php require 'Console/Color.php'; //Voyons ca en bleu print Console_Color::convert("%bHello World!%n\n"); //ou en plus coloré print Console_Color::convert("%rred%n, %ggreen%n, %yyellow%n\n"); ?> ]]></programlisting> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/fr/package/console/console-color.xml?view=markup&rev=1.1 Index: peardoc/fr/package/console/console-color.xml +++ peardoc/fr/package/console/console-color.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: moosh Status: ready --> <sect1 id="package.console.console-color"> <title>Console_Color</title> <para> <classname>Console_Color</classname> vous permet d'utiliser facilement les couleurs ANSI dans vous applications console. </para> &package.console.console-color.intro; &package.console.console-color.colorcodes; </sect1> <!-- 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 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 -->

« previous php.pear.doc (#9764) next »