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

From: Date: Sun, 03 Dec 2006 08:36:53 +0000
Subject: cvs: peardoc /ja/package/html html-tagcloud.xml /ja/package/html/html-tagcloud examples.xml intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8981@lists.php.net to get a copy of this message
shomas Sun Dec 3 08:36:53 2006 UTC Added files: /peardoc/ja/package/html html-tagcloud.xml /peardoc/ja/package/html/html-tagcloud examples.xml intro.xml Log: sync with en

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-tagcloud.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-tagcloud.xml +++ peardoc/ja/package/html/html-tagcloud.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shomas Status: ready --> <sect1 id="package.html.html-tagcloud"> <title>HTML_TagCloud</title> <para> HTML_TagCloud </para> &package.html.html-tagcloud.intro; &package.html.html-tagcloud.examples; </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 vim600: fenc=utf8 enc=utf8 vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-tagcloud/examples.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-tagcloud/examples.xml +++ peardoc/ja/package/html/html-tagcloud/examples.xml <?xml version="1.0" encoding="UTF-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shomas Status: ready --> <refentry id="package.html.html-tagcloud.examples"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>使用例</refname> <refpurpose>HTML_TagCloud の利用</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.examples.separately"> <title>HTML と CSS 別々に作成する</title> <para> このパッケージは HTML と CSS を出力します。HTML は単純なリストで CSS によって 装飾されます。 HTML と CSS は別々に取り出すことができます。 </para> <example> <title>HTML と CSS を別々に取り出す</title> <programlisting role="php"> <![CDATA[ // CSS part only $css = $tags->buildCSS(); // html part only $taghtml = $tags->buildHTML(); ]]> </programlisting> </example> <para> HTML の出力は入力されたデータによります。しかし、CSS のアプトプットは 一定です。 CSS のアウトプットを静的に利用してこのパッケージを利用することができます。 </para> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.decoration"> <title>タグの装飾を修正する</title> <para> 色とサイズのプロパティをオーバーライドするクラスを定義することによってタグの 装飾を修正することができます。 </para> <example> <title>装飾の例</title> <programlisting role="php"> <![CDATA[ class MyTags extends HTML_TagCloud{ protected $epoc_level = array( array( 'earliest' => array( 'link' => 'ffdfdf', 'visited' => 'ffdfdf', 'hover' => 'ffdfdf', 'active' => 'ffdfdf', ), ), array( 'earlier' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'previous' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'recent' => array( 'link' => 'ff4f4f', 'visited' => 'ff4f4f', 'hover' => 'ff4f4f', 'active' => 'ff4f4f', ), ), array( 'later' => array( 'link' => 'ff1f1f', 'visited' => 'ff1f1f', 'hover' => 'ff1f1f', 'active' => 'ff1f1f', ), ), array( 'latest' => array( 'link' => 'ff0000', 'visited' => 'ff0000', 'hover' => 'ff0000', 'active' => 'ff0000', ), ), ); protected $size_suffix = 'pt'; protected $fontsizerange = 0; protected $basefontsize = 12; } ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.omittimeline"> <title>時間要素を省略する</title> <para> 時間の引数を省略することで、時間軸によって色が変更される機能を使用しないことができます。 この引数が省略された場合、現時刻が適用されます。 </para> <example> <title>時間軸の省略</title> <programlisting role="php"> <![CDATA[ $tags->addElement('PHP','http://www.php.net', 39); ]]> </programlisting> </example> </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 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 vim600: enc=utf8 fenc=utf8 vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-tagcloud/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-tagcloud/intro.xml +++ peardoc/ja/package/html/html-tagcloud/intro.xml <?xml version="1.0" encoding="UTF-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shomas Status: ready --> <refentry id="package.html.html-tagcloud.intro"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>導入</refname> <refpurpose><classname>HTML_TagCloud</classname> の導入</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.intro.overview"> <title>概要</title> <para> このパッケージはタグクラウドを <acronym>HTML</acronym> と <acronym>CSS</acronym> で作成します。 タグクラウドはリストの表現で、リストの要素の頻度によってフォントサイズが 変更されます。 タグクラウドについての詳細は <ulink lang="en-EN" url="http://en.wikipedia.org/wiki/Tagcloud"> WikiPedia</ulink> を参考にしてください。 このパッケージは頻度だけでなく、時間経過の情報も使用します。 新しいタグは濃い色で、古いタグは薄い色で表現することができます。 </para> </refsect1> <refsect1 id="package.html.html-tagcloud.intro.whatis.example"> <title>簡単な使用例</title> <example> <title>簡単な例</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')); // output HTML and CSS print $tags->buildALL(); ?> ]]> </programlisting> </example> <para> 上のサンプルコードは5つの要素を持つタグクラウドを作成します。 最も多く使用された <quote>PHP</quote> というタグが最も大きい 文字になります。 最も新しい <quote>PEAR</quote> というタグが最も濃い色になります。 タグはアルファベット順にソートされ、HTMLエスケープされます。 </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 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 vim600: enc=utf8 fenc=utf8 vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#8981) next »