hirokawa Thu Apr 19 07:08:54 2001 EDT Modified files: /phpdoc/ja/appendices resources.xml /phpdoc/ja/functions array.xml datetime.xml dbx.xml image.xml ming.xml strings.xml Log: update translation.
Index: phpdoc/ja/appendices/resources.xml diff -u phpdoc/ja/appendices/resources.xml:1.1 phpdoc/ja/appendices/resources.xml:1.2 --- phpdoc/ja/appendices/resources.xml:1.1 Wed Mar 28 05:45:34 2001 +++ phpdoc/ja/appendices/resources.xml Thu Apr 19 07:08:53 2001 @@ -286,7 +286,8 @@ <function>imagecreatefromjpeg</function>, <function>imagecreatefrompng</function>, <function>imagecreatefromwbmp</function>, - <function>imagecreatefromstring</function> + <function>imagecreatefromstring</function>, + <function>imagecreatetruecolor</function> </entry> <entry> <function>imagearc</function>, @@ -324,7 +325,20 @@ <function>imagestringup</function>, <function>imagesx</function>, <function>imagesy</function>, - <function>imagettftext</function> + <function>imagettftext</function>, + <function>imagefilledarc</function>, + <function>imageellipse</function>, + <function>imagefilledellipse</function>, + <function>imagecolorclosestalpha</function>, + <function>imagecolorexactalpha</function>, + <function>imagecolorresolvealpha</function>, + <function>imagecopymerge</function>, + <function>imagecopymergegray</function>, + <function>imagecopyresampled</function>, + <function>imagetruecolortopalette</function>, + <function>imagesetbrush</function>, + <function>imagesettile</function>, + <function>imagesetthickness</function> </entry> <entry>imagedestroy</entry> <entry>GD Image</entry> Index: phpdoc/ja/functions/array.xml diff -u phpdoc/ja/functions/array.xml:1.24 phpdoc/ja/functions/array.xml:1.25 --- phpdoc/ja/functions/array.xml:1.24 Fri Apr 13 07:03:33 2001 +++ phpdoc/ja/functions/array.xml Thu Apr 19 07:08:53 2001 @@ -314,16 +314,36 @@ $array = array ("blue", "red", "green", "blue", "blue"); array_keys ($array, "blue"); // 配列 (0, 3, 4) を返します + +$array = array ("color" => array("blue", "red", "green"), "size" => +array("small", "medium", "large")); +array_keys ($array); // 配列("color", "size") を返します </programlisting> </example> </para> + <note> + <para> + この関数は、PHP 4で追加されました。以下は、まだPHP +3を使用してい + る場合の実装です。 + <example> + <title> + PHP 3ユーザ用の<function>array_keys</function>の実装 + </title> + <programlisting role="php"> +function array_keys ($arr, $term="") { + $t = array(); + while (list($k,$v) = each($arr)) { + if ($term && $v != $term) + continue; + $t[] = $k; + } + return $t; +} + </programlisting> + </example> + </para> + </note> <para> <function>array_values</function>も参照下さい。 - <note> - <para> - この関数は、PHP 4.0で追加されました。 - </para> - </note> </para> </refsect1> </refentry> Index: phpdoc/ja/functions/datetime.xml diff -u phpdoc/ja/functions/datetime.xml:1.23 phpdoc/ja/functions/datetime.xml:1.24 --- phpdoc/ja/functions/datetime.xml:1.23 Sun Apr 8 16:07:41 2001 +++ phpdoc/ja/functions/datetime.xml Thu Apr 19 07:08:53 2001 @@ -348,9 +348,9 @@ <title><function>getdate</function> の例</title> <programlisting> $today = getdate(); -$month = $today[month]; -$mday = $today[mday]; -$year = $today[year]; +$month = $today['month']; +$mday = $today['mday']; +$year = $today['year']; echo "$month $mday, $year"; </programlisting> </example> Index: phpdoc/ja/functions/dbx.xml diff -u phpdoc/ja/functions/dbx.xml:1.1 phpdoc/ja/functions/dbx.xml:1.2 --- phpdoc/ja/functions/dbx.xml:1.1 Sat Apr 14 03:39:45 2001 +++ phpdoc/ja/functions/dbx.xml Thu Apr 19 07:08:53 2001 @@ -386,7 +386,7 @@ <programlisting role="php"> <?php function user_re_order ($a, $b) { - $rv = dbx_cmp_asc ($a, $b, "parentid"); + $rv = dbx_cmp_desc ($a, $b, "parentid"); if (!$rv) $rv = dbx_cmp_asc ($a, $b, "id"); return $rv; } @@ -395,8 +395,8 @@ or die ("接続できません"); $result = dbx_query ($link, "SELECT id, parentid, description FROM tbl ORDER BY id"); echo "結果は、idでソートされています<br>"; -dbx_query ($result, "user_re_order"); -echo "結果はparentidでソートされ、続いて、idでソートされます<br>"; +dbx_sort ($result, "user_re_order"); +echo +"結果はparentidで(降順に)ソートされ、続いて、idでソートされます<br>"; dbx_close ($link); ?> </programlisting> @@ -423,18 +423,27 @@ <paramdef>array <parameter>row_a</parameter></paramdef> <paramdef>array <parameter>row_b</parameter></paramdef> <paramdef>string <parameter>columnname_or_index</parameter></paramdef> + <paramdef>int + <parameter><optional>comparison_type</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> row_a[$columnname_or_index] が row_b[$columnname_or_index] に等し い場合に 0、より大きい場合に 1、より小さい場合に -1 を返します。 </para> + <para> + パラメータ <parameter>comparison_type</parameter> は、 + +(DBX_CMP_NUMBERに設定することにより、)強制的に数値として比較を行 + +うために使用されます。デフォルトの比較は、テキストとして行われま + す。(例えば、"20"は、"100"よりも大きくなります。) + </para> <example> <title><function>dbx_cmp_asc</function>の例</title> <programlisting role="php"> <?php function user_re_order ($a, $b) { - $rv = dbx_cmp_asc ($a, $b, "parentid"); + $rv = dbx_cmp_desc ($a, $b, "parentid"); if (!$rv) { $rv = dbx_cmp_asc ($a, $b, "id"); return $rv; @@ -445,8 +454,8 @@ or die ("接続できません"); $result = dbx_query ($link, "SELECT id, parentid, description FROM tbl ORDER BY id"); echo "結果はidでソートされました<br>"; -dbx_query ($result, "user_re_order"); -echo "結果はparentidそしてidでソートされました<br>"; +dbx_sort ($result, "user_re_order"); +echo +"結果はparentidで(降順に)ソートされた後、idでソートされました<br>"; dbx_close ($link); ?> </programlisting> Index: phpdoc/ja/functions/image.xml diff -u phpdoc/ja/functions/image.xml:1.22 phpdoc/ja/functions/image.xml:1.23 --- phpdoc/ja/functions/image.xml:1.22 Sat Apr 14 03:39:45 2001 +++ phpdoc/ja/functions/image.xml Thu Apr 19 07:08:53 2001 @@ -184,6 +184,125 @@ </refsect1> </refentry> + <refentry id="function.imagefilledarc"> + <refnamediv> + <refname>ImageFilledArc</refname> + <refpurpose>部分楕円を描画し、塗りつぶす</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagefilledarc</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>int <parameter>cx</parameter></paramdef> + <paramdef>int <parameter>cy</parameter></paramdef> + <paramdef>int <parameter>w</parameter></paramdef> + <paramdef>int <parameter>h</parameter></paramdef> + <paramdef>int <parameter>s</parameter></paramdef> + <paramdef>int <parameter>e</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + <paramdef>int <parameter>style</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageFilledArc</function> は、 + <parameter>im</parameter>で表したイメージに + <parameter>cx</parameter>,<parameter>cy</parameter> (左上が0,0)を + 中心とした部分楕円を描画します。<parameter>w</parameter> と + <parameter>h</parameter> +はそれぞれ楕円の幅と高さを指定します。 + また、開始点と終点は、引数<parameter>s</parameter>および + <parameter>e</parameter>で度単位で指定されます。 + <parameter>style</parameter> は次の選択肢のビット和です。 + <orderedlist> + <listitem><simpara>IMG_ARC_PIE</simpara></listitem> + <listitem><simpara>IMG_ARC_CHORD</simpara></listitem> + <listitem><simpara>IMG_ARC_NOFILL</simpara></listitem> + <listitem><simpara>IMG_ARC_EDGED</simpara></listitem> + </orderedlist> + IMG_ARC_PIE および IMG_ARC_CHORD は相反します。IMG_ARC_CHORD は、 + +開始角と終了角を直線で結ぶだけですが、IMG_ARC_PIEは、角を丸めます。 + IMG_ARC_NOFILL +は、弧と弦が縁どられ塗りつぶされないことを指定しま + す。IMG_ARC_EDGEDは、IMG_ARC_NOFILLと共に指定することにより、 + +開始角と終端角は中心と結ばれます。これは、(塗りつぶすよりも)「パ + イの切れ端」を縁どる良い方法です。 + </para> + <note> + <para> + この関数はPHP 4.0.6で追加され、GD 2.0.1を必要とします。 + </para> + </note> + </refsect1> + </refentry> + + <refentry id="function.imageellipse"> + <refnamediv> + <refname>ImageEllipse</refname> + <refpurpose>楕円を描画する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imageellipse</function></funcdef> + <paramdef>resource <parameter>im</parameter></paramdef> + <paramdef>int <parameter>cx</parameter></paramdef> + <paramdef>int <parameter>cy</parameter></paramdef> + <paramdef>int <parameter>w</parameter></paramdef> + <paramdef>int <parameter>h</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageEllipse</function> は、<parameter>im</parameter>で + 表したイメージに + <parameter>cx</parameter>,<parameter>cy</parameter> (左上が0,0)を + 中心とした楕円を描画します。<parameter>w</parameter> と + <parameter>h</parameter> +は、それぞれ楕円の幅と高さを指定します。 + 楕円の色を<parameter>col</parameter>で指定します。 + </para> + <note> + <para> + この関数はPHP 4.0.6で追加され、GD 2.0.1以降を必要とします。 + </para> + </note> + </refsect1> + </refentry> + + <refentry id="function.imagefilledellipse"> + <refnamediv> + <refname>ImageFilledEllipse</refname> + <refpurpose>塗りつぶされた楕円を描画する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagefilledellipse</function></funcdef> + <paramdef>resource <parameter>im</parameter></paramdef> + <paramdef>int <parameter>cx</parameter></paramdef> + <paramdef>int <parameter>cy</parameter></paramdef> + <paramdef>int <parameter>w</parameter></paramdef> + <paramdef>int <parameter>h</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageFilledEllipse</function> は、 + <parameter>im</parameter>で表したイメージに + <parameter>cx</parameter>, <parameter>cy</parameter> (左上が0, 0) + を中心とした楕円を描画します。<parameter>w</parameter> および + <parameter>h</parameter> +で楕円の幅と高さをそれぞれ指定します。楕 + 円は、<parameter>col</parameter>で塗りつぶされます。 + </para> + <note> + <para> + この関数はPHP 4.0.6で追加され、GD 2.0.1以降を必要とします。 + </para> + </note> + </refsect1> + </refentry> + <refentry id="function.imagechar"> <refnamediv> <refname>ImageChar</refname> @@ -376,7 +495,7 @@ <refnamediv> <refname>ImageColorClosestAlpha</refname> <refpurpose> - Get the index of the closest color to the specified color + alpha + 指定した色+アルファ値に最も近い色のIDを取得 </refpurpose> </refnamediv> <refsect1> @@ -400,7 +519,7 @@ </para> <note> <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 + この関数はPHP 4.0.6で追加され、GD 2.0.1を必要とします。 </para> </note> </refsect1> @@ -437,7 +556,7 @@ <refentry id="function.imagecolorexactalpha"> <refnamediv> <refname>ImageColorExactAlpha</refname> - <refpurpose>Get the index of the specified color + alpha</refpurpose> + <refpurpose>指定した色+アルファ値のIDを取得</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -452,20 +571,17 @@ </funcprototype> </funcsynopsis> <para> - Returns the index of the specified color+alpha in the palette of the - image. + +イメージのパレットで指定した色+アルファ値のIDを返します。 </para> <para> - If the color does not exist in the image's palette, -1 is - returned. + +指定した色がイメージのパレットに存在しない場合、-1が返されます。 </para> <para> - See also <function>imagecolorclosestalpha</function>. + <function>imagecolorclosestalpha</function>も参照下さい。 </para> <note> <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 or - later + この関数はPHP 4.0.6で追加され、GD 2.0.1以降を必要とします。 </para> </note> </refsect1> @@ -499,134 +615,11 @@ </refsect1> </refentry> - <refentry id="function.imageellipse"> - <refnamediv> - <refname>ImageEllipse</refname> - <refpurpose>Draw an ellipse</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>imageellipse</function></funcdef> - <paramdef>resource <parameter>im</parameter></paramdef> - <paramdef>int <parameter>cx</parameter></paramdef> - <paramdef>int <parameter>cy</parameter></paramdef> - <paramdef>int <parameter>w</parameter></paramdef> - <paramdef>int <parameter>h</parameter></paramdef> - <paramdef>int <parameter>col</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>ImageEllipse</function> draws an ellipse centered at - <parameter>cx</parameter>, <parameter>cy</parameter> (top left is - 0, 0) in the image represented by <parameter>im</parameter>. - <parameter>W</parameter> and <parameter>h</parameter> specifies the - ellipse's width and height respectively. The color of the ellipse is - specified by <parameter>color</parameter>. - </para> - <note> - <para> - This function was added in PHP 4.0.6 and requires GD 2.0.2 or - later - </para> - </note> - </refsect1> - </refentry> - - <refentry id="function.imagefilledarc"> - <refnamediv> - <refname>ImageFilledArc</refname> - <refpurpose>Draw a partial ellipse and fill it</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>imagefilledarc</function></funcdef> - <paramdef>int <parameter>im</parameter></paramdef> - <paramdef>int <parameter>cx</parameter></paramdef> - <paramdef>int <parameter>cy</parameter></paramdef> - <paramdef>int <parameter>w</parameter></paramdef> - <paramdef>int <parameter>h</parameter></paramdef> - <paramdef>int <parameter>s</parameter></paramdef> - <paramdef>int <parameter>e</parameter></paramdef> - <paramdef>int <parameter>col</parameter></paramdef> - <paramdef>int <parameter>style</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>ImageFilledArc</function> draws a partial ellipse centered at - <parameter>cx</parameter>, <parameter>cy</parameter> (top left is - 0, 0) in the image represented by im. <parameter>W</parameter> - and <parameter>h</parameter> specifies the ellipse's width and - height respectively while the start and end points are specified - in degrees indicated by the <parameter>s</parameter> and - <parameter>e</parameter>. arguments. - <parameter>style</parameter> is a bitwise OR of the following possibilities: - <orderedlist> - <listitem><simpara>IMG_ARC_PIE</simpara></listitem> - <listitem><simpara>IMG_ARC_CHORD</simpara></listitem> - <listitem><simpara>IMG_ARC_NOFILL</simpara></listitem> - <listitem><simpara>IMG_ARC_EDGED</simpara></listitem> - </orderedlist> - IMG_ARC_PIE and IMG_ARC_CHORD are mutually exclusive; IMG_ARC_CHORD just - connects the starting and ending angles with a straight line, while - IMG_ARC_PIE produces a rounded edge. IMG_ARC_NOFILL indicates that the arc - or chord should be outlined, not filled. IMG_ARC_EDGED, used together with - IMG_ARC_NOFILL, indicates that the beginning and ending angles should be - connected to the center - this is a good way to outline (rather than fill) - a 'pie slice'. - </para> - <note> - <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 - </para> - </note> - </refsect1> - </refentry> - - <refentry id="function.imagefilledellipse"> - <refnamediv> - <refname>ImageFilledEllipse</refname> - <refpurpose>Draw a filled ellipse</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>imagefilledellipse</function></funcdef> - <paramdef>resource <parameter>im</parameter></paramdef> - <paramdef>int <parameter>cx</parameter></paramdef> - <paramdef>int <parameter>cy</parameter></paramdef> - <paramdef>int <parameter>w</parameter></paramdef> - <paramdef>int <parameter>h</parameter></paramdef> - <paramdef>int <parameter>col</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>ImageFilledEllipse</function> draws an ellipse centered at - <parameter>cx</parameter>, <parameter>cy</parameter> (top left is - 0, 0) in the image represented by <parameter>im</parameter>. - <parameter>W</parameter> and <parameter>h</parameter> specifies the - ellipse's width and height respectively. The ellipse is filled using - <parameter>color</parameter> - </para> - <note> - <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 or - later - </para> - </note> - </refsect1> - </refentry> - <refentry id="function.imagecolorresolvealpha"> <refnamediv> <refname>ImageColorResolveAlpha</refname> <refpurpose> - Get the index of the specified color + alpha or its closest possible - alternative + 指定した色+アルファ値または最も近い色のIDを取得する </refpurpose> </refnamediv> <refsect1> @@ -642,16 +635,15 @@ </funcprototype> </funcsynopsis> <para> - This function is guaranteed to return a color index for a - requested color, either the exact color or the closest possible - alternative. + +この関数は、指定した色の色IDを必ず返します。そうでない場合、正確 + な色または最も近い別の色のどちらかを返します。 </para> <para> - See also <function>imagecolorclosestalpha</function>. + <function>imagecolorclosestalpha</function>も参照下さい。 </para> <note> <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 + この関数はPHP 4.0.6で追加され、GD 2.0.1を必要とします。 </para> </note> </refsect1> @@ -668,26 +660,18 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int - <function>imagegammacorrect</function> - </funcdef> - <paramdef>int - <parameter>im</parameter> - </paramdef> - <paramdef>double - <parameter>inputgamma</parameter> - </paramdef> - <paramdef>double - <parameter>outputgamma</parameter> - </paramdef> + <funcdef>int <function>imagegammacorrect</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>double <parameter>inputgamma</parameter></paramdef> + <paramdef>double <parameter>outputgamma</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - 関数<function>ImageGammaCorrect</function>は、 - gdイメージストリーム(<parameter>im</parameter>)にガンマ補正を適用します。 - この関数には、 - 入力ガンマ値、パラメータ<parameter>inputgamma</parameter>および - 出力ガンマ値、パラメータ<parameter>outputgamma</parameter>を指定します。 + 関数<function>ImageGammaCorrect</function>は、gdイメージストリー + +ム(<parameter>im</parameter>)にガンマ補正を適用します。この関数に + は、入力ガンマ値、パラメータ<parameter>inputgamma</parameter>およ + び出力ガンマ値、パラメータ<parameter>outputgamma</parameter>を指 + 定します。 </para> </refsect1> </refentry> @@ -761,11 +745,11 @@ </funcprototype> </funcsynopsis> <para> - 指定した画像パレットの色散?返します。 + 指定した画像パレットの色数を返します。 </para> <para> <function>imagecolorat</function>および - <function>imagecolorsforindex</function>も参考にしてください。 + <function>imagecolorsforindex</function>も参考にしてください。 </para> </refsect1> </refentry> @@ -789,14 +773,15 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageColorTransparent</function>は、画像<parameter>im</parameter> - 上の透明色を<parameter>col</parameter>に設定します。 - <parameter>im</parameter>は<function>imagecreate</function>によって返された - 画像IDで、<parameter>col</parameter>は<function>imagecolorallocate</function> - によって返された色IDです。 + <function>ImageColorTransparent</function>は、イメージ + <parameter>im</parameter>上の透明色を<parameter>col</parameter>に + 設定します。<parameter>im</parameter>は + <function>imagecreate</function>によって返されたイメージIDで、 + <parameter>col</parameter>は + <function>imagecolorallocate</function>によって返された色IDです。 </para> <para> - 新しい(指定されない場合は現在の)透明色の ID が返されます。 + +新しい(指定されない場合は現在の)透明色のIDが返されます。 </para> </refsect1> </refentry> @@ -812,42 +797,25 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int - <function>ImageCopy</function> - </funcdef> - <paramdef>int - <parameter>dst_im</parameter> - </paramdef> - <paramdef>int - <parameter>src_im</parameter> - </paramdef> - <paramdef>int - <parameter>dst_x</parameter> - </paramdef> - <paramdef>int - <parameter>dst_y</parameter> - </paramdef> - <paramdef>int - <parameter>src_x</parameter> - </paramdef> - <paramdef>int - <parameter>src_y</parameter> - </paramdef> - <paramdef>int - <parameter>src_w</parameter> - </paramdef> - <paramdef>int - <parameter>src_h</parameter> - </paramdef> + <funcdef>int <function>ImageCopy</function></funcdef> + <paramdef>int <parameter>dst_im</parameter></paramdef> + <paramdef>int <parameter>src_im</parameter></paramdef> + <paramdef>int <parameter>dst_x</parameter></paramdef> + <paramdef>int <parameter>dst_y</parameter></paramdef> + <paramdef>int <parameter>src_x</parameter></paramdef> + <paramdef>int <parameter>src_y</parameter></paramdef> + <paramdef>int <parameter>src_w</parameter></paramdef> + <paramdef>int <parameter>src_h</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <parameter>src_im</parameter>の一部、つまり、 - x,y座標<parameter>src_x</parameter>, <parameter>src_y</parameter> - を基準として幅<parameter>src_w</parameter>、高さ<parameter>src_h</parameter> - の領域を<parameter>dst_im</parameter>にコピーします。 - 指定された領域は、x,y座標<parameter>dst_x</parameter>, - <parameter>dst_y</parameter>にコピーされます。 + <parameter>src_im</parameter>の一部、つまり、x,y座標 + <parameter>src_x</parameter>, <parameter>src_y</parameter> + を基準として幅<parameter>src_w</parameter>、高さ + <parameter>src_h</parameter>の領域を<parameter>dst_im</parameter> + にコピーします。指定された領域は、x,y座標 + <parameter>dst_x</parameter>,<parameter>dst_y</parameter>にコピー + されます。 </para> </refsect1> </refentry> @@ -856,7 +824,7 @@ <refnamediv> <refname>ImageCopyMerge</refname> <refpurpose> - Copy and merge part of an image + イメージの一部をコピー、マージする </refpurpose> </refnamediv> <refsect1> @@ -876,17 +844,16 @@ </funcprototype> </funcsynopsis> <para> - Copy a part of <parameter>src_im</parameter> onto - <parameter>dst_im</parameter> starting at the x,y coordinates - <parameter>src_x</parameter>, <parameter>src_y </parameter> with - a width of <parameter>src_w</parameter> and a height of - <parameter>src_h</parameter>. The portion defined will be copied - onto the x,y coordinates, <parameter>dst_x</parameter> and - <parameter>dst_y</parameter>. - The two images will be merged according to <parameter>pct</parameter> - which can range from 0 to 100. When <parameter>pct</parameter> = 0, - no action is taken, when 100 this function behaves identically - to <function>ImageCopy</function>. + <parameter>src_im</parameter>の<parameter>src_x</parameter>, + <parameter>src_y </parameter> で始まる幅 + <parameter>src_w</parameter>、高さ<parameter>src_h</parameter>の + 領域をx,y座標で指定した <parameter>dst_im</parameter>にコピーしま + す。定義された部分は、x,y座標、<parameter>dst_x</parameter>、 + +<parameter>dst_y</parameter>にコピーされます。二つのイメージは、 + 0から100の範囲で指定した +<parameter>pct</parameter>に基づきマージ + されます。<parameter>pct</parameter> = 0 +の時は、何も行われません。 + 100の場合、この関数の動作は、<function>ImageCopy</function>と同じ + となります。 </para> </refsect1> </refentry> @@ -895,7 +862,7 @@ <refnamediv> <refname>ImageCopyMergeGray</refname> <refpurpose> - Copy and merge part of an image with gray scale + グレースケールでイメージの一部をコピー、マージする </refpurpose> </refnamediv> <refsect1> @@ -915,29 +882,35 @@ </funcprototype> </funcsynopsis> <para> - This function is identical to <function>ImageCopyMerge</function> except - that when merging it preservese the hue of the source by converting - the destination pixels to gray scale before the copy operation. - </para> - <para> - Copy a part of <parameter>src_im</parameter> onto - <parameter>dst_im</parameter> starting at the x,y coordinates - <parameter>src_x</parameter>, <parameter>src_y </parameter> with - a width of <parameter>src_w</parameter> and a height of - <parameter>src_h</parameter>. The portion defined will be copied - onto the x,y coordinates, <parameter>dst_x</parameter> and - <parameter>dst_y</parameter>. - The two images will be merged according to <parameter>pct</parameter> - which can range from 0 to 100. When <parameter>pct</parameter> = 0, - no action is taken, when 100 this function behaves identically - to <function>ImageCopy</function>. - </para> - <para> - This function is identical to <function>ImageCopyMerge</function> except - that when merging it preservese the hue of the source by converting - the destination pixels to gray scale before the copy operation. + この関数は <function>ImageCopyMerge</function> と同じですが、マー + +ジをする際に、コピー前にコピー先のピクセルをグレースケールに変換 + +することにより、コピー先のピクセルをコピー元の色相を維持するとこ + ろが異なります。 + </para> + <para> + <parameter>src_im</parameter> の X,Y座標 + <parameter>src_x</parameter>, <parameter>src_y </parameter> から + 始まる幅<parameter>src_w</parameter>、高さ + <parameter>src_h</parameter> の領域を + <parameter>dst_im</parameter>にコピーします。 + 定義された部分は、x、y座標<parameter>dst_x</parameter>、 + +<parameter>dst_y</parameter>にコピーされます。二つのイメージは、 + <parameter>pct</parameter> +に基づきマージされます。この値の範囲は + 0から100までです。<parameter>pct</parameter> = 0の場合、何も処理 + は行われません。100の場合、この関数は、 + <function>ImageCopy</function>と同じ処理を行います。 + </para> + <para> + この関数は、<function>ImageCopyMerge</function>と同じですが、 + +マージを行う際、コピー処理を行う前にコピー先の画素をグレースケー + +ルに変換することにより、コピー元の色彩を維持するところが異なりま + す。 </para> - <note><para>This function was added in PHP 4.0.6</para></note> + <note> + <para> + この関数は、PHP 4.0.6で追加されました。 + </para> + </note> </refsect1> </refentry> @@ -964,14 +937,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageCopyResized</function>は指定した画像の矩形部分を別の画像 - へコピーします。<parameter>dst_im</parameter>はコピー先の画像ID、 - <parameter>src_im</parameter>はコピー元の画像IDです。 - コピー先とコピー元の座標、幅そして高さが異なれば、画像の一部が適当に - 伸縮されます。座標の原点は左上です。(仮に、 - <parameter>dst_im</parameter>と<parameter>src_im</parameter>が - 同一であれば)関数は領域のコピーに使うことができますが、 - 領域が重なったときの結果は予測できません。 + <function>ImageCopyResized</function>は指定した画像の矩形部分を別 + +の画像へコピーします。<parameter>dst_im</parameter>はコピー先のイ + +メージID、<parameter>src_im</parameter>はコピー元のイメージIDです。 + +コピー先とコピー元の座標、幅、高さが異なった場合、画像の一部が適 + 当に伸縮されます。座標の原点は左上です。(仮に、 + <parameter>dst_im</parameter>と<parameter>src_im</parameter>が同 + +一であれば)関数は領域のコピーに使うことができますが、領域が重なっ + たときの結果は予測できません。 </para> <para> <function>ImageCopyResampled</function>も参照下さい。 @@ -982,7 +955,9 @@ <refentry id="function.imagecopyresampled"> <refnamediv> <refname>ImageCopyResampled</refname> - <refpurpose>Copy and resize part of an image with resampling</refpurpose> + <refpurpose> + 再サンプリングを行いイメージの一部をコピー、伸縮する + </refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1002,27 +977,23 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageCopyResampled</function> copies a rectangular - portion of one image to another image, smoothly interpolating pixel - values so that, in particular, reducing the size of an image still - retains a great deal of clarity. - <parameter>Dst_im</parameter> is the destination image, - <parameter>src_im</parameter> is the source image identifier. If - the source and destination coordinates and width and heights - differ, appropriate stretching or shrinking of the image fragment - will be performed. The coordinates refer to the upper left - corner. This function can be used to copy regions within the - same image (if <parameter>dst_im</parameter> is the same as - <parameter>src_im</parameter>) but if the regions overlap the - results will be unpredictable. + <function>ImageCopyResampled</function> は、イメージの矩形の部分 + +を別のイメージにコピーします。同時にピクセル値を滑らかに補間を行 + +い、このため、特にサイズを小さくした場合には鮮明さが維持されます。 + <parameter>dst_im</parameter> は、コピー先のイメージで、 + <parameter>src_im</parameter> はコピー元のイメージIDです。コピー + +元とコピー先の座標、幅、高さが異なる場合には、適当なイメージ伸縮 + +が行われます。座標は、左上を基準とします。この関数は、同じイメー + ジ内の領域にコピーする場合にも使用可能です。 + (<parameter>dst_im</parameter>が <parameter>src_im</parameter>と + +同じ場合。)しかし、領域が重なる場合の結果は予測できません。 </para> <para> - See also <function>ImageCopyResized</function>. + <function>ImageCopyResized</function>も参照下さい。 </para> <note> <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 or - later + この関数はPHP 4.0.6で追加され、GD 2.0.1以降を必要とします。 </para> </note> </refsect1> @@ -1043,8 +1014,8 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageCreate</function>は、<parameter>x_size</parameter>対 - <parameter>y_size</parameter>の空の画像を表わす画像IDを返します。 + <function>ImageCreate</function>は、<parameter>x_size</parameter> + +対<parameter>y_size</parameter>の空の画像を表わす画像IDを返します。 </para> <example> <title> @@ -1068,7 +1039,7 @@ <refentry id="function.imagecreatetruecolor"> <refnamediv> <refname>ImageCreateTrueColor</refname> - <refpurpose>Create a new true color image</refpurpose> + <refpurpose>TrueColorイメージを新規に作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1080,19 +1051,22 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageCreateTrueColor</function> returns an image identifier - representing a black image of size <parameter>x_size</parameter> - by <parameter>y_size</parameter>. + <function>ImageCreateTrueColor</function> は、 + <parameter>x_size</parameter>×<parameter>y_size</parameter> の大 + きさの黒のイメージを表すイメージIDを返します。 </para> - <note><para>This function was added in PHP 4.0.6</para></note> - <note><para>This function requires GD 2.0.1 or later</para></note> + <note> + <para> + この関数はPHP 4.0.6で追加され、GD 2.0.1以降を必要とします。 + </para> + </note> </refsect1> </refentry> <refentry id="function.imagetruecolortopalette"> <refnamediv> <refname>ImageTrueColorToPalette</refname> - <refpurpose>Convert a true color image to a palette image</refpurpose> + +<refpurpose>TrueColorイメージをパレットイメージに変換する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1100,20 +1074,34 @@ <funcprototype> <funcdef>void <function>imagetruecolortopalette</function></funcdef> <paramdef>resource <parameter>im</parameter></paramdef> + <paramdef>bool <parameter>dither</parameter></paramdef> + <paramdef>int <parameter>ncolors</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>ImageTrueColorToPalette</function> converts a truecolor image - to a palette image. The code for this function was originally drawn from - the Independent JPEG Group library code, which is excellent. The code - has been modified to preserve as much alpha channel information as - possible in the resulting palette, in addition to preserving colors as - well as possible. This does not work as well as might be hoped. It is - usually best to simply produce a truecolor output image instead, which - guarantees the highest output quality. + <function>ImageTrueColorToPalette</function> は、TrueColorイメー + +ジをパレットイメージに変換します。この関数のコードは、元々 + Independent JPEG +Groupライブラリ用に書かれたもので、素晴らしいも + +のです。このコードは、色をできる限り維持することに加えて、アルファ + +チャネルに関する情報を出力されるパレットにおいてできるだけ維持す + +るように修正されています。これは、期待通りにうまくいきません。通 + +常は、最高の出力品質が保障されるTrueColor出力イメージを単に出力す + るのが最良の方法です。 + </para> + <para> + <parameter>dither</parameter> は、イメージにディザーをかけること + +を指定します。これが、trueの場合、ディザーが行われ、出力はぼやけ + ますが、色の近似はより良くなります。 + </para> + <para> + <parameter>ncolors</parameter> +には、パレットに保持される最大の色 + 数を設定します。 </para> - <note><para>This function was added in PHP 4.0.6</para></note> - <note><para>This function requires GD 2.0.1 or later</para></note> + <note> + <para> + この関数はPHP 4.0.6で追加され、GD 2.0.1を必要とします。 + </para> + </note> </refsect1> </refentry> @@ -1182,14 +1170,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageCreateFromJPEG</function>は引数filenameから得られる画像 - を表す画像IDを返します。 + <function>ImageCreateFromJPEG</function>は引数filenameから得られ + る画像を表すイメージIDを返します。 </para> <para> <function>imagecreatefromjpeg</function>はエラー時に空の文字列を - 返します。エラーメッセージも出力されますが、この場合、残念なことに - ブラウザ上のリンクは壊れてしまいます。 - デバッグを簡単にするために以下の例ではエラー表示用JPEGを出力しています。 + +返します。エラーメッセージも出力されますが、この場合、残念なこと + +にブラウザ上のリンクは壊れてしまいます。デバッグを簡単にするため + に以下の例ではエラー表示用JPEGを出力しています。 <example> <title> 作成時のエラーを処理する例 ([EMAIL PROTECTED]による) @@ -1374,8 +1362,8 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageDestroy</function>は画像<parameter>im</parameter>を保持する - メモリを解放します。<parameter>im</parameter>は、 + <function>ImageDestroy</function>は画像<parameter>im</parameter> + を保持するメモリを解放します。<parameter>im</parameter>は、 <function>ImageCreate</function>関数が返す画像IDです。 </para> </refsect1> @@ -1398,9 +1386,9 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageFill</function>は、画像<parameter>im</parameter>において - 座標<parameter>x</parameter>, <parameter>y</parameter>(左上が0,0)から - 色<parameter>col</parameter>で領域を塗りつぶします。 + <function>ImageFill</function>は、画像<parameter>im</parameter>に + おいて座標<parameter>x</parameter>, <parameter>y</parameter>(左上 + が0,0)から色<parameter>col</parameter>で領域を塗りつぶします。 </para> </refsect1> </refentry> @@ -1422,10 +1410,10 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageFilledPolygon</function>は画像<parameter>im</parameter>上に - 塗りつぶした多角形を生成します。 - <parameter>points</parameter>はPHPの配列で、多角形の頂点、すなわち、 - points[0] = x0, points[1] = y0, points[2] = x1, + <function>ImageFilledPolygon</function>は画像 + <parameter>im</parameter>上に塗りつぶした多角形を生成します。 + <parameter>points</parameter>はPHPの配列で、多角形の頂点、すなわ + ち、points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1などという具合になっています。 <parameter>num_points</parameter>は頂点の総数です。 </para> @@ -1451,11 +1439,12 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageFilledRectangle</function>は、画像<parameter>im</parameter> - 上に左上の座標を(<parameter>x1</parameter>, <parameter>y1</parameter>)、 - 右下の座標を(<parameter>x2</parameter>, <parameter>y2</parameter>)とする矩形を - 描画します。左上隅が座標(0,0)となります。 - 矩形は<function>col</function>色で塗りつぶされます。 + <function>ImageFilledRectangle</function>は、画像 + <parameter>im</parameter>上に左上の座標を + (<parameter>x1</parameter>, <parameter>y1</parameter>)、右下の座 + 標を(<parameter>x2</parameter>, <parameter>y2</parameter>)とする + 矩形を描画します。左上隅が座標(0,0)となります。矩形は + <function>col</function>色で塗りつぶされます。 </para> </refsect1> </refentry> @@ -1478,10 +1467,11 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageFillToBorder</function>は、<parameter>border</parameter>で指定した - 色を境界色として塗りつぶしを行います。 - (<parameter>x</parameter>,<parameter>y</parameter>)が塗りつぶしの始点(左上が0, 0)で、 - 領域内を<parameter>col</parameter>色で塗りつぶします。 + <function>ImageFillToBorder</function>は、 + +<parameter>border</parameter>で指定した色を境界色として塗りつぶし + を行います。(<parameter>x</parameter>,<parameter>y</parameter>)が + 塗りつぶしの始点(左上が0, 0)で、領域内を + <parameter>col</parameter>色で塗りつぶします。 </para> </refsect1> </refentry> @@ -1504,7 +1494,8 @@ </para> <para> <function>imagefontwidth</function>および - <function>imageloadfont</function>も参考にしてくださいり </para> + <function>imageloadfont</function>も参考にしてください。 + </para> </refsect1> </refentry> @@ -1790,9 +1781,9 @@ </funcprototype> </funcsynopsis> <para> - ImageInterlaceは、インターレースビットのオンオフを切り替えます。 - interlaceが1の場合に画像 im はインターレースとなり、0 であればイ - ンターレースビットは消えます。 + <function>ImageInterlace</function> は、インターレースビットをon + またはoffに切り替えます。interlaceが1の場合、イメージ im +はインター + レースとなり、0 +であればインターレースビットはoffになります。 </para> <para> この関数は、その画像のインタレースビットがセットされているかどう @@ -2363,7 +2354,7 @@ <refentry id="function.imagesetbrush"> <refnamediv> <refname>ImageSetBrush</refname> - <refpurpose>Set the brush image for line drawing</refpurpose> + <refpurpose>線の描画用にブラシイメージを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2375,18 +2366,18 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageSetBrush</function> sets the brush image to be - used by all line drawing functions (such as <function>ImageLine</function> - and <function>ImagePolygon</function>) when drawing with the special - colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED. + <function>ImageSetBrush</function> は、特別な色 + IMG_COLOR_BRUSHED または IMG_COLOR_STYLEDBRUSHED で描画される際に + (<function>ImageLine</function>や + <function>ImagePolygon</function>のような) 全ての線描画関数で使用 + されるブラシイメージを設定します。 </para> <note> <para> - You need not take special action when you are finished with a - brush, but if you - destroy the brush image, you must not use the IMG_COLOR_BRUSHED - or IMG_COLOR_STYLEDBRUSHED - colors until you have set a new brush image! + +ブラシの使用が終った際には、特別な処理は不要ですが、ブラシイメー + +ジを破棄する場合には、新たにブラシイメージを設定するまでは、色 + IMG_COLOR_BRUSHED または IMG_COLOR_STYLEDBRUSHED を使用するべき + ではありません。 </para> </note> <note> @@ -2400,7 +2391,7 @@ <refentry id="function.imagesettile"> <refnamediv> <refname>ImageSetTile</refname> - <refpurpose>Set the tile image for filling</refpurpose> + <refpurpose>塗りつぶし用のイメージを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2412,30 +2403,38 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageSetTile</function> sets the tile image to be - used by all region filling functions (such as <function>ImageFill</function> - and <function>ImageFilledPolygon</function>) when filling with the special - color IMG_COLOR_TILED. + <function>ImageSetTile</function> は、特別な色 + IMG_COLOR_TILED を指定して塗りつぶされた場合に、 + (<function>ImageFill</function>や + <function>ImageFilledPolygon</function>のような) + +領域塗りつぶし関数で使用されるタイルイメージを設定します。 </para> <para> - A tile is an image used to fill an area with a repeated pattern. <emphasis>Any</emphasis> - GD image can be used as a tile, and by setting the transparent color index of the tile - image with <function>ImageColorTransparent</function>, a tile allows certain parts - of the underlying area to shine through can be created. + +タイルは、領域を塗りつぶすために繰り返し使用されるイメージです。 + 全てのGDイメージをタイルとして使用可能で、 + <function>ImageColorTransparent</function>によりタイルの透過色ID + +を設定することにより、その一部から下の部分が透けて見えるようなタ + イルを作成することが可能です。 </para> <note> - <para>You need not take special action when you are finished with a tile, but if you - destroy the tile image, you must not use the IMG_COLOR_TILED color until you have - set a new tile image!</para> + <para> + +タイルの使用が終った際には、特別な処理は不要ですが、タイルイメー + +ジを破棄する場合には、新たにタイルイメージを設定するまでは、色 + IMG_COLOR_TILEDを使用するべきません。 + </para> + </note> + <note> + <para> + この関数は、PHP 4.0.6で追加されました。 + </para> </note> - <note><para>This function was added in PHP 4.0.6</para></note> </refsect1> </refentry> <refentry id="function.imagesetthickness"> <refnamediv> <refname>ImageSetThickness</refname> - <refpurpose>Set the thickness for line drawing</refpurpose> + <refpurpose>線描画用の線幅を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2447,14 +2446,13 @@ </funcprototype> </funcsynopsis> <para> - <function>ImageSetThickness</function> sets the thickness of the lines - drawn when drawing rectangles, polygons, ellipses etc. etc. to - <parameter>thickness</parameter> pixels. + <function>ImageSetThickness</function> は、長方形、多角形、楕円等 + を描画する際の線幅を<parameter>thickness</parameter>ピクセルに設 + 定します。 </para> <note> <para> - This function was added in PHP 4.0.6 and requires GD 2.0.1 or - later + この関数は PHP 4.0.6 で追加され、GD 2.0.1 +以降を必要とします。 </para> </note> </refsect1> Index: phpdoc/ja/functions/ming.xml diff -u phpdoc/ja/functions/ming.xml:1.2 phpdoc/ja/functions/ming.xml:1.3 --- phpdoc/ja/functions/ming.xml:1.2 Sun Apr 8 16:07:42 2001 +++ phpdoc/ja/functions/ming.xml Thu Apr 19 07:08:53 2001 @@ -99,71 +99,70 @@ </simpara> <itemizedlist> <listitem> - <simpara> - <function>swfmovie</function>. + <simpara> + <function>swfmovie</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfshape</function>. + <simpara> + <function>swfshape</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfdisplayitem</function>. + <simpara> + <function>swfdisplayitem</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfgradient</function>. + <simpara> + <function>swfgradient</function>. </simpara> - </listitem> - + </listitem> <listitem> - <simpara> - <function>swfbitmap</function>. + <simpara> + <function>swfbitmap</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swffill</function>. + <simpara> + <function>swffill</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfmorph</function>. + <simpara> + <function>swfmorph</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swftext</function>. + <simpara> + <function>swftext</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swffont</function>. + <simpara> + <function>swffont</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swftextfield</function>. + <simpara> + <function>swftextfield</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfsprite</function>. + <simpara> + <function>swfsprite</function>. </simpara> - </listitem> - <listitem> - <simpara> - <function>swfbutton</function>. + </listitem> + <listitem> + <simpara> + <function>swfbutton</function>. </simpara> - </listitem> + </listitem> <listitem> - <simpara> - <function>swfaction</function>. + <simpara> + <function>swfaction</function>. </simpara> - </listitem> + </listitem> </itemizedlist> </sect1> </partintro> @@ -1493,7 +1492,7 @@ <refentry id="function.swfshape.setleftfill"> <refnamediv> <refname>SWFShape->setLeftFill</refname> - <refpurpose>Sets left rasterizing color.</refpurpose> + <refpurpose>左ラスター色を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1509,7 +1508,9 @@ <paramdef>integer <parameter>red</parameter></paramdef> <paramdef>integer <parameter>green</parameter></paramdef> <paramdef>integer <parameter>blue</parameter></paramdef> - <paramdef>integer <parameter><optional>a</optional></parameter></paramdef> + <paramdef>integer + <parameter><optional>a</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -1539,7 +1540,7 @@ <refentry id="function.swfshape.setrightfill"> <refnamediv> <refname>SWFShape->setRightFill</refname> - <refpurpose>Sets right rasterizing color.</refpurpose> + <refpurpose>右ラスター色を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1555,7 +1556,9 @@ <paramdef>integer <parameter>red</parameter></paramdef> <paramdef>integer <parameter>green</parameter></paramdef> <paramdef>integer <parameter>blue</parameter></paramdef> - <paramdef>integer <parameter><optional>a</optional></parameter></paramdef> + <paramdef>integer + <parameter><optional>a</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <simpara> @@ -2115,7 +2118,7 @@ <refentry id="function.swffill.skewxto"> <refnamediv> <refname>SWFFill->skewXTo</refname> - <refpurpose>Sets fill x-skew</refpurpose> + <refpurpose>x-skewを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2136,7 +2139,7 @@ <refentry id="function.swffill.skewyto"> <refnamediv> <refname>SWFFill->skewYTo</refname> - <refpurpose>Sets fill y-skew</refpurpose> + <refpurpose>y-skewを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2159,7 +2162,7 @@ <refentry id="function.swfmorph"> <refnamediv> <refname>SWFMorph</refname> - <refpurpose>Creates a new SWFMorph object.</refpurpose> + <refpurpose>新規にSWFMorphオブジェクトを作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2192,7 +2195,7 @@ This simple example will morph a big red square into a smaller blue black-bordered square. <example> - <title><function>swfmorph</function> example</title> + <title><function>swfmorph</function>の例</title> <programlisting role="php"> <?php $p = new SWFMorph(); @@ -2244,7 +2247,7 @@ <refentry id="function.swfmorph.getshape1"> <refnamediv> <refname>SWFMorph->getshape1</refname> - <refpurpose>Gets a handle to the starting shape</refpurpose> + <refpurpose>最初のシェープへのハンドルを得る</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2265,7 +2268,7 @@ <refentry id="function.swfmorph.getshape2"> <refnamediv> <refname>SWFMorph->getshape2</refname> - <refpurpose>Gets a handle to the ending shape</refpurpose> + <refpurpose>最後のシェープへのハンドルを得る</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2288,7 +2291,7 @@ <refentry id="function.swftext"> <refnamediv> <refname>SWFMorph</refname> - <refpurpose>Creates a new SWFText object.</refpurpose> + <refpurpose>新規にSWFTextオブジェクトを作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2312,7 +2315,7 @@ This simple example will draw a big yellow "PHP generates Flash with Ming" text, on white background. <example> - <title><function>swftext</function> example</title> + <title><function>swftext</function>の例</title> <programlisting role="php"> <?php $f = new SWFFont("Techno.fdb"); @@ -2360,7 +2363,7 @@ <refentry id="function.swftext.setheight"> <refnamediv> <refname>SWFText->setHeight</refname> - <refpurpose>Sets the current font height</refpurpose> + <refpurpose>カレントのフォントの高さを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2380,7 +2383,7 @@ <refentry id="function.swftext.setspacing"> <refnamediv> <refname>SWFText->setSpacing</refname> - <refpurpose>Sets the current font spacing</refpurpose> + <refpurpose>カレントのフォントの間隔を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2406,7 +2409,7 @@ <refentry id="function.swftext.setcolor"> <refnamediv> <refname>SWFText->setColor</refname> - <refpurpose>Sets the current font color</refpurpose> + <refpurpose>カレントのフォント色を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2429,7 +2432,7 @@ <refentry id="function.swftext.moveto"> <refnamediv> <refname>SWFText->moveTo</refname> - <refpurpose>Moves the pen</refpurpose> + <refpurpose>ペンを移動する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2452,7 +2455,7 @@ <refentry id="function.swftext.addstring"> <refnamediv> <refname>SWFText->addString</refname> - <refpurpose>Draws a string</refpurpose> + <refpurpose>文字列を画く</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2473,7 +2476,7 @@ <refentry id="function.swftext.getwidth"> <refnamediv> <refname>SWFText->getWidth</refname> - <refpurpose>Computes string's width</refpurpose> + <refpurpose>文字列の幅を計算する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2548,7 +2551,7 @@ <refentry id="function.swffont.getwidth"> <refnamediv> <refname>getwidth</refname> - <refpurpose>Returns the string's width</refpurpose> + <refpurpose>文字列の幅を返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2572,14 +2575,16 @@ <refentry id="function.swftextfield"> <refnamediv> <refname>SWFTextField</refname> - <refpurpose>Creates a text field object</refpurpose> + +<refpurpose>テキストフィールドのオブジェクトを作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>new <function>swftextfield</function></funcdef> - <paramdef>int <parameter><optional>flags</optional></parameter></paramdef> + <paramdef>int + <parameter><optional>flags</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> @@ -2647,7 +2652,7 @@ <refentry id="function.swftextfield.setfont"> <refnamediv> <refname>SWFTextField->setFont</refname> - <refpurpose>Sets the text field font</refpurpose> + <refpurpose>テキストフィールドフォントを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2667,7 +2672,7 @@ <refentry id="function.swftextfield.setbounds"> <refnamediv> <refname>SWFTextField->setbounds</refname> - <refpurpose>Sets the text field width and height</refpurpose> + <refpurpose>テキストフィールドの幅と高さを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2690,7 +2695,7 @@ <refentry id="function.swftextfield.align"> <refnamediv> <refname>SWFTextField->align</refname> - <refpurpose>Sets the text field alignment</refpurpose> + +<refpurpose>テキストフィールドのアライメントを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2713,7 +2718,9 @@ <refentry id="function.swftextfield.setheight"> <refnamediv> <refname>SWFTextField->setHeight</refname> - <refpurpose>Sets the font height of this text field font.</refpurpose> + <refpurpose> + 指定したテキストフィールドフォントの高さを設定する + </refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2733,7 +2740,7 @@ <refentry id="function.swftextfield.setleftmargin"> <refnamediv> <refname>SWFTextField->setLeftMargin</refname> - <refpurpose>Sets the left margin width of the text field.</refpurpose> + +<refpurpose>テキストフィールドの左マージン幅を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2753,7 +2760,7 @@ <refentry id="function.swftextfield.setrightmargin"> <refnamediv> <refname>SWFTextField->setrightMargin</refname> - <refpurpose>Sets the right margin width of the text field.</refpurpose> + +<refpurpose>キストフィールドの右マージン幅を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2773,7 +2780,7 @@ <refentry id="function.swftextfield.setmargins"> <refnamediv> <refname>SWFTextField->setMargins</refname> - <refpurpose>Sets the margins width of the text field.</refpurpose> + +<refpurpose>テキストフィールドのマージン幅を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2794,7 +2801,7 @@ <refentry id="function.swftextfield.setindentation"> <refnamediv> <refname>SWFTextField->setindentation</refname> - <refpurpose>Sets the indentation of the first line.</refpurpose> + <refpurpose>先頭行のインデントを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2814,7 +2821,7 @@ <refentry id="function.swftextfield.setlinespacing"> <refnamediv> <refname>SWFTextField->setLineSpacing</refname> - <refpurpose>Sets the line spacing of the text field.</refpurpose> + <refpurpose>テキストフィールドの行間を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2834,7 +2841,7 @@ <refentry id="function.swftextfield.setcolor"> <refnamediv> <refname>SWFTextField->setcolor</refname> - <refpurpose>Sets the color of the text field. </refpurpose> + <refpurpose>テキストフィールドの色を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2857,7 +2864,7 @@ <refentry id="function.swftextfield.setname"> <refnamediv> <refname>SWFTextField->setname</refname> - <refpurpose>Sets the variable name</refpurpose> + <refpurpose>変数名を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2878,7 +2885,7 @@ <refentry id="function.swftextfield.addstring"> <refnamediv> <refname>SWFTextField->addstring</refname> - <refpurpose>Concatenates the given string to the text field</refpurpose> + +<refpurpose>指定した文字列をテキストフィールドに結合する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2889,8 +2896,8 @@ </funcprototype> </funcsynopsis> <para> - <function>swftextfield->setname</function> concatenates the string - <parameter>string</parameter> to the text field. + <function>swftextfield->setname</function> は、文字列 + <parameter>string</parameter>をテキストフィールドに結合します。 </para> </refsect1> </refentry> @@ -2900,7 +2907,7 @@ <refentry id="function.swfsprite"> <refnamediv> <refname>SWFSprite</refname> - <refpurpose>Creates a movie clip (a sprite)</refpurpose> + <refpurpose>ムービークリップ(スプライト)を作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2924,7 +2931,7 @@ <para> This simple example will spin gracefully a big red square. <example> - <title><function>swfsprite</function> example</title> + <title><function>swfsprite</function> の例</title> <programlisting role="php"> <?php $s = new SWFShape(); @@ -2969,7 +2976,7 @@ <refentry id="function.swfsprite.add"> <refnamediv> <refname>SWFSprite->add</refname> - <refpurpose>Adds an object to a sprite</refpurpose> + <refpurpose>オブジェクトをスプライトに追加する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -2996,7 +3003,7 @@ <refentry id="function.swfsprite.remove"> <refnamediv> <refname>SWFSprite->remove</refname> - <refpurpose>Removes an object to a sprite</refpurpose> + <refpurpose>オブジェクトをスプライトから削除する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3018,7 +3025,7 @@ <refentry id="function.swfsprite.setframes"> <refnamediv> <refname>SWFSprite->setframes</refname> - <refpurpose>Sets the total number of frames in the animation.</refpurpose> + <refpurpose>アニメーションの総フレーム数を設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3038,7 +3045,7 @@ <refentry id="function.swfsprite.nextframe"> <refnamediv> <refname>SWFSprite->nextframe</refname> - <refpurpose>Moves to the next frame of the animation.</refpurpose> + <refpurpose>アニメーションの次のフレームに移動する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3060,7 +3067,7 @@ <refentry id="function.swfbutton"> <refnamediv> <refname>SWFbutton</refname> - <refpurpose>Creates a new Button.</refpurpose> + <refpurpose>新規ボタンを作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3222,7 +3229,7 @@ <refentry id="function.swfbutton.addshape"> <refnamediv> <refname>SWFbutton->addShape</refname> - <refpurpose>Adds a shape to a button</refpurpose> + <refpurpose>ボタンにシェープを追加する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3248,7 +3255,7 @@ <refentry id="function.swfbutton.setup"> <refnamediv> <refname>SWFbutton->setUp</refname> - <refpurpose>Alias for addShape(shape, SWFBUTTON_UP)</refpurpose> + <refpurpose>addShape(shape, SWFBUTTON_UP)へのエイリアス</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3267,7 +3274,7 @@ <refentry id="function.swfbutton.setover"> <refnamediv> <refname>SWFbutton->setOver</refname> - <refpurpose>Alias for addShape(shape, SWFBUTTON_OVER)</refpurpose> + <refpurpose>addShape(shape, SWFBUTTON_OVER)へのエイリアス</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3286,7 +3293,7 @@ <refentry id="function.swfbutton.sethit"> <refnamediv> <refname>SWFbutton->setHit</refname> - <refpurpose>Alias for addShape(shape, SWFBUTTON_HIT)</refpurpose> + <refpurpose>addShape(shape, SWFBUTTON_HIT)へのエイリアス</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3305,7 +3312,7 @@ <refentry id="function.swfbutton.setAction"> <refnamediv> <refname>SWFbutton->setAction</refname> - <refpurpose>Sets the action</refpurpose> + <refpurpose>アクションを設定する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3328,7 +3335,7 @@ <refentry id="function.swfaction"> <refnamediv> <refname>SWFAction</refname> - <refpurpose>Creates a new Action.</refpurpose> + <refpurpose>新規アクションを作成する</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -3729,7 +3736,7 @@ <para> This simple example will move the red square across the window. <example> - <title><function>swfaction</function> example</title> + <title><function>swfaction</function>の例</title> <programlisting role="php"> <?php $s = new SWFShape(); Index: phpdoc/ja/functions/strings.xml diff -u phpdoc/ja/functions/strings.xml:1.32 phpdoc/ja/functions/strings.xml:1.33 --- phpdoc/ja/functions/strings.xml:1.32 Thu Apr 12 08:30:00 2001 +++ phpdoc/ja/functions/strings.xml Thu Apr 19 07:08:53 2001 @@ -2703,8 +2703,9 @@ </example> </para> <para> - <function>substr</function>,<function>stristr</function>, - <function>strstr</function>も参照下さい。 + <function>strchr</function>, <function>substr</function>, + <function>stristr</function>, <function>strstr</function>. + も参照下さい。 </para> </refsect1> </refentry> @@ -2885,8 +2886,9 @@ </example> </para> <para> - <function>strrchr</function>,<function>substr</function>, - <function>ereg</function> も参照下さい。 + <function>strchr</function>, <function>stristr</function>, + <function>strrchr</function>, <function>substr</function>, + <function>ereg</function>も参照下さい。 </para> </refsect1> </refentry>