YAMASHINA Hio
hio****@users*****
2006年 12月 20日 (水) 00:10:52 JST
Index: docs/modules/YAML-0.62/lib/YAML.pod diff -u docs/modules/YAML-0.62/lib/YAML.pod:1.1 docs/modules/YAML-0.62/lib/YAML.pod:1.2 --- docs/modules/YAML-0.62/lib/YAML.pod:1.1 Sun Oct 22 20:36:09 2006 +++ docs/modules/YAML-0.62/lib/YAML.pod Wed Dec 20 00:10:52 2006 @@ -89,7 +89,7 @@ sorted by default. In addition, YAML supports several styles of scalar formatting for different types of data. -YAML ã¯è¤éãªãã¼ã¿æ§é ã®å¤å´ã®æ確ãªæå³ãä½ãã¾ã. YAML ãç¹å¥ãª +YAML ã¯è¤éãªãã¼ã¿æ§é ããæ確ãªæå³ãä½ãã¾ã. YAML ãç¹å¥ãª ãã¼ã¿ãã³ããã¼ã«ã§ãããã¨ã«æ°ã¥ãã¹ãã§ããã. ãã¼ã¿æ§é 㯠ã¤ã³ãã³ããéãã¦è¦æ¸¡ããã, å帰ãã¼ã¿ãæ±ããã¨ãã§ãã¾ã. ã¾ã, é ç®ãã¼ã¯ããã©ã«ãã§ã½ã¼ãããã¾ã. å ãã¦ãã¼ã¿ã®å½¢å¼ã« @@ -104,8 +104,8 @@ why invent a new syntax for each one? And why subject users to the complexities of XML or native Perl code? -YAML ã¯è¨å®ãã¡ã¤ã«ã®ç¾ããæ§æããå®å ¨ã«ãã¶ã¤ã³ããã¦ãã¾ã. -ã»ã¨ãã©ãã¹ã¦ã®ããã°ã©ãã¯è¨å®ãã¡ã¤ã«ãå¿ è¦ã¨ãã¦ããã§ããã. +YAMLã¯è¨å®ãã¡ã¤ã«ã¨ãã¦åªããæ§æã¨ãªãããã«ä¸ãããã¶ã¤ã³ããã¦ãã¾ã. +ã»ã¨ãã©ãã¹ã¦ã®ããã°ã©ã ã¯è¨å®ãã¡ã¤ã«ãå¿ è¦ã¨ãã¦ããã§ããã. ããã¦ãªãæ¯åæ°ããæ§æãçºæãããã¨ããã®ã§ããï¼ ãªã XML ã® è¤éãã Perl ã³ã¼ããã®ãã®ã«æ©ã¾ãããªããã°ãªããªãã®ã§ããï¼ @@ -124,8 +124,7 @@ Java ã®ç´ååã® å¿ è¦æ§ã«è¦åãããã«è¨è¨ããã¦ãã¾ã. ã¾ããããã®è¨èªéã§ç¸äºã«æä½ ã§ããããã«è¨è¨ããã¦ãã¾ã. ãã㯠Perl ãçæãã YAML 㯠Python 㧠-å¦çãããã¨ãå¯è½ãªãã¨ãæå³ã, ããã«å®å ¨ãªãã¼ã¿æ§é ãè¿ããã¨ã -ä¿è¨¼ãã¾ã. +å¦çãããã¨ãå¯è½ãªãã¨ãæå³ãã¾ã. =item YAML is taint safe. @@ -212,7 +211,7 @@ ç°ãªã YAML ã¢ã¸ã¥ã¼ã«ã®é å¸ç©ã§ã¯ YAML.pm, YAML::Loader, YAML::Dumper ããµãã¯ã©ã¹åãã¦ä½ããã¨ãåºæ¥ã¾ã. ä¾ãã° YAML-Simple ã¯, YAML::Simple, YAML::Dumper::Simple, -YAM::Loader::Simple ããæãã¾ã. +YAML::Loader::Simple ããæãã¾ã. Why would there be more than one implementation of YAML? Well, despite YAML's offering of being a simple data format, YAML is actually very @@ -252,7 +251,8 @@ YAML::Lite ã®ã¢ãã¼ã«ãã¤ã³ãã¯, 人ã ãå¤ãå©ç¨ãã, ããã¦å°ãã, éã, å®å®ãã, ãã¥ã¢Perlå½¢å¼ã¨ãã¦ææ¡ããã ãã«, -YAML ã 90% ã«è½ã¨ãã¦ããç¹ã«ããã¾ã. +YAML ã 90% ã«è½ã¨ãã¦ããç¹ã«ããã¾ã. +YAML::Liteã¯, èªåã«ã§ããªãå¦çãæ±ããããã¨åã«dieãã¾ã. =item YAML::Syck @@ -290,9 +290,9 @@ YAML ã¯æ°´é¢ä¸ã§ã¯å®å ¨ã«ãªãã¸ã§ã¯ãæåã«ãªã£ã¦ãã¾ã. å¹¾ã¤ãã®ä¾¿å©ãªãããã¬ãã«é¢æ°ãã¨ã¯ã¹ãã¼ããã¦ãã, ãã®ä½¿ãæ¹ã¯ -ã¨ã¦ãç°¡åã§ã. ãããã®é¢æ°ã¯ããªãã«å¤ãã£ã¦ãªãã¸ã§ã¯ãæä½ã +ã¨ã¦ãç°¡åã§ã. ãããã®é¢æ°ã¯ããªãã«ä»£ãã£ã¦ãªãã¸ã§ã¯ãæä½ã è¡ã£ã¦ããã ãã§ã. ãããªãã¸ã§ã¯ãAPIã«ç´æ¥ã¢ã¯ã»ã¹ãããã¨ãã¯, -YAML::Dumper åã³ YAML::Loader ã®åçé¢mã¨ãåç §ãã¦ãã ãã. +YAML::Dumper åã³ YAML::Loader ã®ããã¥ã¡ã³ããåç §ãã¦ãã ãã. =head2 ã¨ã¯ã¹ãã¼ããããé¢æ°. @@ -507,7 +507,7 @@ Tells YAML.pm whether or not to sort hash keys when storing a document. -YAML.pm ãããã¥ã¡ã³ãã®æ ¼ç´æã«ã¯ã£ä¸»ãã¼ãã½ã¼ããããã©ããã +YAML.pm ãããã¥ã¡ã³ãã®æ ¼ç´æã«ããã·ã¥ãã¼ãã½ã¼ããããã©ããã è¨å®ãã¾ã. YAML::Node objects can have their own sort order, which is usually what @@ -583,9 +583,10 @@ UseCode ãªãã·ã§ã³ã¯ DumpCode 㨠LoadCode ã®ï¼ã¤ã®ãªãã·ã§ã³ãä¸åº¦ã« è¨å®ããã·ã§ã¼ãã«ããã§ã. UseCode ã« '1' ãè¨å®ãã㨠YAML.pm 㯠-Perl ã³ã¼ããªãã¡ã¬ã³ã¹ã(B::Deparseãã¤ãã£ã¦) Perl ã§, ãã㦠-ã¡ã¢ãªä¸ã«ãã¼ãããã¨ãã«ã¯ eval() ã使ãã¾ã. ãã®çµæ, ä¿¡é ¼ã§ããªã -ã³ã¼ãããã¼ã¹ããããã« eval() ã使ããã¨ã«ãªãã¾ã. +Perl ã³ã¼ããªãã¡ã¬ã³ã¹ã(B::Deparseãã¤ãã£ã¦) Perl ã¨ãã¦ãã³ã +ãã¦, eval() ã使ã£ã¦ã¡ã¢ãªã«ãã¼ããã¦æ»ãã¾ã. ããããªãã·ã§ã³ +æ±ãã§ãªããã°ãªããªãçç±ã¯, ä¿¡é ¼ã§ããªãã³ã¼ãããã¼ã¹ããããã« +eval() ã使ããã¨ã¯å®å¿ãã¦è¡ãããã¨ã§ã¯ãªãããã§ã. =item DumpCode @@ -594,7 +595,8 @@ like Data::Dumper). If DumpCode is set to '1' or 'deparse', code references will be dumped as actual Perl code. -YAML.pm ã Perl ã³ã¼ããªãã¡ã¬ã³ã¹ãã·ãªã¢ã©ã¤ãºããããè¨å®ãã¾ã. +YAML.pm ã Perl ã³ã¼ããªãã¡ã¬ã³ã¹ãã·ãªã¢ã©ã¤ãºãããã©ãã, +ããã¦ãããã©ã®ããã«è¡ãããè¨å®ãã¾ã. ããã©ã«ãã§ã¯ YAML.pm ã¯ã³ã¼ããªãã¡ã¬ã³ã¹ãããã¼ã®ãã¬ã¼ã¹ãã«ã ã¨ãã¦ãã³ããã¾ã (ãã㯠Data::Dumper ã¨ããä¼¼ã¦ãã¾ã). ãã DumpCode ã« '1' ããã㯠'deparse' ãè¨å®ãã¦ããã®ãªã, @@ -637,9 +639,10 @@ node. Sometimes you'll want all multiline scalars to use the 'block' style. If so, set this option to 1. -YAML.pm ãä¸ãããããã¼ãã«å¯¾ãã¦æé©ãªã¹ã«ã©ã¼å½¢å¼ãæ¨æ¸¬ããã®ã -å©ããããã«ä½¿ãã¾ã. å ¨ã¦ã®è¤æ°è¡ã®ã¹ã«ã©ã¼ã¯'ãããã¯'å½¢å¼ã¨ã㦠-æ±ãããã¨ãã«ã¯ãã®ãªãã·ã§ã³ã« 1 ãè¨å®ãã¾ã. +YAML.pm ã¯ä¸ãããããã¼ãã«å¯¾ããæé©ãªã¹ã«ã©ã¼å½¢å¼ã®æ¨æ¸¬ã« +ãã¥ã¼ãªã¹ãã£ãã¯ã使ãã¾ã. ã§ããå ¨ã¦ã®è¤æ°è¡ã®ã¹ã«ã©ã¼ã¯ +'ãããã¯' å½¢å¼ã¨ãã¦æ±ãããæãããã§ããã. ãã®ãã㪠+æã«ã¯ãã®ãªãã·ã§ã³ã« 1 ãè¨å®ãã¾ã. NOTE: YAML's block style is akin to Perl's here-document. @@ -677,8 +680,8 @@ to do this. This also may result in faster processing because the lookup overhead is by bypassed. -æã«ã¯ãã¼ã¿ãå帰ã§ãªãæ¹ãèªç¶ã§ããã°, ãã¹ã¦ã®ãã¼ãã¯ãã¹ã¦ -表ç¾ããã¦ã»ããã§ããã. (ããªãã¡å ã®ã³ãã¼ã¨ãã¦.) +æã«ã¯ãã¼ã¿ãå帰ã§ãªãæ¹ãèªç¶ã§ããã¨ãç¥ã£ã¦ãããæã«ã¯, +ã©ã®ãã¼ããå®å ¨ã«è¡¨ç¾ããã¦ã»ããã§ããã. (ããªãã¡å ã®ã³ãã¼ã¨ãã¦.) $YAML::UseAliases ã« 0 ãè¨å®ãããã¨ã§ãããè¡ããã¨ãã§ãã¾ã. ããã¯æ¤ç´¢ã®ãªã¼ãã¼ããããã¨ã°ããã¨ãã§ããããå¦çã æ©ããªããã¨ãããã§ããã. @@ -834,9 +837,9 @@ serialization should be transferred into or out of memory. For instance a Foo::Bar object would use the tag 'perl/Foo::Bar': -ããã¯åã¨ä¼¼ã¦ãã¾ã. ããã¯ç¹å®ã® YAML ãã¼ãç¥ãèããã¼ã·ã§ã³ã -ã¡ã¢ãªã®ä¸ãããã¯å¤ã§ã©ã®ããã«è»¢éãããã¹ããã示ãã¾ã. ä¾ãã° -Foo::Bar ãªãã¸ã§ã¯ãã¯ã¿ã° 'perl/Foo::Bar' ã使ãã¾ã: +ããã¯åã¨ä¼¼ã¦ãã¾ã. ããã¯ç¹å®ã® YAML ãã¼ããã·ãªã¢ã©ã¤ãºãã +ãã®ãã¡ã¢ãªã®ä¸ãããã¯å¤ã¸ã©ã®ããã«è»¢éãããã¹ããã示ãã¾ã. +ä¾ãã° Foo::Bar ãªãã¸ã§ã¯ãã¯ã¿ã° 'perl/Foo::Bar' ã使ãã¾ã: - !perl/Foo::Bar foo: 42 @@ -901,7 +904,7 @@ optimum human readability. YAML ã«ã¯ã¹ã«ã©ã¼ã表ç¾ããå¹¾ã¤ãã®ã¹ã¿ã¤ã«ãããã¾ã. ãã㯠-æ§ã ãªãã¼ã¿ã¯æé©ãªå¯èªæ§ãå¾ãããã«æ§ã ãªãã£ã¼ããããå¿ è¦ã¨ãã +æ§ã ãªãã¼ã¿ã¯æé©ãªå¯èªæ§ãå¾ãããã«æ§ã ãªãã©ã¼ããããå¿ è¦ã¨ãã ããã«ã¨ã¦ãéè¦ãªãã¨ã§ã. =item plain scalar @@ -979,7 +982,9 @@ ending marker is required. The data is verbatim. No line folding. ãã®æå¾ã®è¤æ°è¡å½¢å¼ã¯ (å ¨ã¦ã® YAML ãã¼ã¿ã®ããã«) ã¹ã³ã¼ãã -ã¤ã³ãã³ãã§æå®ãããç¹ãé¤ã㦠Perl ã®ãã¢ããã¥ã¡ã³ãã¨åæ§ã§ã. +ã¤ã³ãã³ãã§æå®ãããç¹ãé¤ã㦠Perl ã®ãã¢ããã¥ã¡ã³ãã¨åæ§ã§ã. +ãã®çºçµããã®å°ã¯ä¸è¦ã§ã. ãã¼ã¿ã¯æ¸ããã¾ã¾ã«æ±ããã¾ã. +è¡ã®ç³ã¿è¾¼ã¿ãè¡ããã¾ãã. - | QTY DESC PRICE TOTAL @@ -1047,7 +1052,7 @@ For more information please refer to the immensely helpful YAML specification available at L<http://www.yaml.org/spec/>. -ãã詳ããæ å ±ã¯ L<http://www.yaml.org/spec/> ã«ãã巨大ã§å½¹ç«ã¤ +ãã詳ããæ å ±ã¯ L<http://www.yaml.org/spec/> ã«ããé常ã«å½¹ã«ç«ã¤ YAML ä»æ§ãåç §ãã¦ãã ãã. =head1 ysh - YAML ã·ã§ã« @@ -1137,7 +1142,7 @@ is resonsible for YAML.pm. -㯠YAML.pm ã resonsible ãã¦ãã¾ã(訳注:resonsibleã¦ä½ï¼^^;) +㯠YAML.pm ã®è²¬ä»»ãæ ã£ã¦ãã¾ã. The YAML serialization language is the result of years of collaboration between Oren Ben-Kiki, Clark Evans and Ingy dE<ouml>t Net. Several others