cvs: peardoc /en/package/html html-tagcloud.xml /en/package/html/html-tagcloud examples.xml intro.xml

From: Date: Sun, 26 Nov 2006 07:03:39 +0000
Subject: cvs: peardoc /en/package/html html-tagcloud.xml /en/package/html/html-tagcloud examples.xml intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8899@lists.php.net to get a copy of this message
cweiske Sun Nov 26 07:03:39 2006 UTC Modified files: /peardoc/en/package/html html-tagcloud.xml /peardoc/en/package/html/html-tagcloud examples.xml intro.xml Log: - Indenting HTML_TagCloud docs nicely - Converting text to correcter and more understandable english

http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/html/html-tagcloud.xml diff -u peardoc/en/package/html/html-tagcloud.xml:1.1 peardoc/en/package/html/html-tagcloud.xml:1.2 --- peardoc/en/package/html/html-tagcloud.xml:1.1 Sun Nov 26 00:46:14 2006 +++ peardoc/en/package/html/html-tagcloud.xml Sun Nov 26 07:03:39 2006 @@ -1,8 +1,9 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1." encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> <sect1 id="package.html.html-tagcloud"> <title>HTML_TagCloud</title> <para> - HTML_TagCloud + Create and display defined "tags" (words) in a "tag cloud". </para> &package.html.html-tagcloud.intro; @@ -27,4 +28,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/html/html-tagcloud/examples.xml diff -u peardoc/en/package/html/html-tagcloud/examples.xml:1.1 peardoc/en/package/html/html-tagcloud/examples.xml:1.2 --- peardoc/en/package/html/html-tagcloud/examples.xml:1.1 Sun Nov 26 00:46:14 2006 +++ peardoc/en/package/html/html-tagcloud/examples.xml Sun Nov 26 07:03:39 2006 @@ -1,5 +1,5 @@ -<?xml version="1.0" encoding="ascii" ?> -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <refentry id="package.html.html-tagcloud.examples"> <refentryinfo> <author> @@ -14,38 +14,41 @@ </refnamediv> <refsect1 id="package.html.html-tagcloud.examples.separately"> - <title>Generate HTML and CSS separately</title> - <para> - This package output HTML and CSS. The HTML is simple list, decorated by CSS. - It is able to output HTML and CSS separately. - </para> - <example> + <title>Generate HTML and CSS separately</title> + <para> + <classname>HTML_TagCloud</classname> creates HTML and CSS. + The HTML is a simple list, decorated by CSS. + You are able to output HTML and CSS separately. + </para> + <example> <title>output HTML and CSS separately</title> - <programlisting role="php"> -<![CDATA[ + <programlisting role="php"><![CDATA[ // CSS part only $css = $tags->buildCSS(); // html part only $taghtml = $tags->buildHTML(); -]]> - </programlisting> - </example> -<para> - The HTML Output is according with tag data input, but the CSS output is static. - You can use this package CSS output statically. -</para> +]]></programlisting> + </example> + <para> + The HTML output depends on the tag data that have been added + via <function>addElement</function>, but the CSS output is static. + You can use this package's CSS output statically. + </para> </refsect1> + + <refsect1 id="package.html.html-tagcloud.examples.decoration"> - <title>modify decoration of the tag</title> - <para> - It is possible to modify, by defined the class which overrides color and size - property. - </para> - <example> - <title>decoration example</title> - <programlisting role="php"> -<![CDATA[ -class MyTags extends HTML_TagCloud{ + <title>Modify the decoration of the tag</title> + <para> + It is possible to modify the colors used by the CSS. + You need to define your own class which extends HTML_TagCloud and + override color and size properties. + </para> + <example> + <title>Decoration example</title> + <programlisting role="php"><![CDATA[ +class MyTags extends HTML_TagCloud +{ protected $epoc_level = array( array( 'earliest' => array( @@ -100,25 +103,25 @@ protected $fontsizerange = 0; protected $basefontsize = 12; } -]]> - </programlisting> - </example> +]]></programlisting> + </example> </refsect1> + + <refsect1 id="package.html.html-tagcloud.examples.omittimeline"> - <title>Omit timeline feature</title> - <para> - It can not use the function which changes color with the time line, - by time of argument is omitted. - When it omits, current time is set. - </para> - <example> - <title>omit timeline</title> - <programlisting role="php"> -<![CDATA[ + <title>Omit timeline feature</title> + <para> + If you don't want to add timeline information and have the color + changing accordingly, just omit the fourth parameter to + <function>addElement</function>. + When doing this, the current time is set. + </para> + <example> + <title>Omitting the timeline</title> + <programlisting role="php"><![CDATA[ $tags->addElement('PHP','http://www.php.net', 39); -]]> - </programlisting> - </example> +]]></programlisting> + </example> </refsect1> </refentry> @@ -140,5 +143,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/intro.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/html/html-tagcloud/intro.xml diff -u peardoc/en/package/html/html-tagcloud/intro.xml:1.1 peardoc/en/package/html/html-tagcloud/intro.xml:1.2 --- peardoc/en/package/html/html-tagcloud/intro.xml:1.1 Sun Nov 26 00:46:14 2006 +++ peardoc/en/package/html/html-tagcloud/intro.xml Sun Nov 26 07:03:39 2006 @@ -1,5 +1,5 @@ -<?xml version="1.0" encoding="ascii" ?> -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <refentry id="package.html.html-tagcloud.intro"> <refentryinfo> <author> @@ -8,57 +8,58 @@ </author> </refentryinfo> - <refnamediv> - <refname>Introduction</refname> - <refpurpose>Introduction to <classname>HTML_TagCloud</classname>.</refpurpose> - </refnamediv> + <refnamediv> + <refname>Introduction</refname> + <refpurpose>Introduction to <classname>HTML_TagCloud</classname>.</refpurpose> + </refnamediv> - <refsect1 id="package.html.html-tagcloud.intro.overview"> - <title>Overview</title> + <refsect1 id="package.html.html-tagcloud.intro.overview"> + <title>Overview</title> <para> - This Package generate TagCloud in <acronym>HTML</acronym> and - <acronym>CSS</acronym>. - TagCloud is an expression of list, that changing font size by frequency of - list item. - - More information of TagCloud is available in - <ulink lang="en-EN" url="http://en.wikipedia.org/wiki/Tagcloud"> - WikiPedia</ulink>. - - This package is not only frequency, but also timeline infomation. - the newer tag is deep color, the older is light color. + This package can be used to generate <emphasis>tag coulds</emphasis> + in <acronym>HTML</acronym> and <acronym>CSS</acronym>. + A tag cloud is an visual representation of list of so-called "tags" + or keywords, that do have a different font size depending on how often they + occur on the page/blog. </para> - </refsect1> - <refsect1 id="package.html.html-tagcloud.intro.whatis.example"> - <title>Simple usage example</title> - <example> - <title>Basic example</title> + <para> + More information on tag clouds is available in + <ulink lang="en-EN" url="http://en.wikipedia.org/wiki/Tag_cloud">Wikipedia</ulink>. + </para> + <para> + This package does not only visualize frequency, but also timeline infomation. + The newer the tag is, the deeper its color will be; older tags will have + a lighter color. + </para> + </refsect1> - <programlisting role="php"> -<![CDATA[ + <refsect1 id="package.html.html-tagcloud.intro.whatis.example"> + <title>Simple usage example</title> + <example> + <title>Basic example</title> + <programlisting role="php"><![CDATA[ <?php - require_once 'HTML/TagCloud.php'; $tags = new HTML_TagCloud(); -// add Element -$tags->addElement('PHP','http://www.php.net', 39, strtotime('-1 day')); -$tags->addElement('XML','http://www.xml.org', 21, strtotime('-2 week')); -$tags->addElement('Perl','http://www.xml.org', 15, strtotime('-1 month')); -$tags->addElement('PEAR','http://pear.php.net', 32, time()); -$tags->addElement('MySQL','http://www.mysql.com', 10, strtotime('-2 day')); -$tags->addElement('PostgreSQL','http://pgsql.com', 6, strtotime('-3 week')); +// add Elements +$tags->addElement('PHP' ,'http://www.php.net' , 39, strtotime('-1 day')); +$tags->addElement('XML' ,'http://www.xml.org' , 21, strtotime('-2 week')); +$tags->addElement('Perl' ,'http://www.xml.org' , 15, strtotime('-1 month')); +$tags->addElement('PEAR' ,'http://pear.php.net' , 32, time()); +$tags->addElement('MySQL' ,'http://www.mysql.com', 10, strtotime('-2 day')); +$tags->addElement('PostgreSQL','http://pgsql.com' , 6, strtotime('-3 week')); // output HTML and CSS print $tags->buildALL(); ?> -]]> - </programlisting> - </example> - <para> - The above example code creates TagCloud contains five item. - The most tag <quote>PHP</quote> is in largest font. - The latest tag <quote>PEAR</quote> is in deepest color. - Tags is sorted by alphabetically, escaped in HTML. +]]></programlisting> + </example> + <para> + The above example code creates a tag cloud containing five items. + The tag used most often is <quote>PHP</quote>; it will appear in + the largest font. + The tag used latest is<quote>PEAR</quote>, it is in the deepest color. + Tags are sorted by alphabetically, and escaped in HTML. </para> </refsect1> @@ -81,5 +82,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file
« previous php.pear.doc (#8899) next »