argra****@users*****
argra****@users*****
2012年 11月 29日 (木) 18:51:12 JST
Index: docs/modules/YAML-0.62/lib/YAML.pod diff -u docs/modules/YAML-0.62/lib/YAML.pod:1.2 docs/modules/YAML-0.62/lib/YAML.pod:1.3 --- docs/modules/YAML-0.62/lib/YAML.pod:1.2 Wed Dec 20 00:10:52 2006 +++ docs/modules/YAML-0.62/lib/YAML.pod Thu Nov 29 18:51:12 2012 @@ -2,8 +2,12 @@ =head1 åå +=begin original + YAML - YAML Ain't Markup Language (tm) +=end original + YAML - YAML Ain't Markup Language (tm) (YAMLã¯ãã¼ã¯ã¢ããè¨èªã§ã¯ããã¾ãã) =head1 æ¦è¦ @@ -56,23 +60,35 @@ =head1 説æ +=begin original + The YAML.pm module implements a YAML Loader and Dumper based on the YAML 1.0 specification. L<http://www.yaml.org/spec/> +=end original + YAML.pm ã¢ã¸ã¥ã¼ã«ã¯ YAML 1.0 ä»æ§ã«åºã¥ã YAML ãã¼ãåã³ãã³ãã¼ã å®è£ ãã¦ãã¾ã. L<http://www.yaml.org/spec/> +=begin original + YAML is a generic data serialization language that is optimized for human readability. It can be used to express the data structures of most modern programming languages. (Including Perl!!!) +=end original + YAML ã¯å¯èªæ§ã«åªããæ±ç¨çãªãã¼ã¿ç´åå(ã·ãªã¢ã«å)è¨èªã§ã. YAML ã¯è¿é ã®ã»ã¨ãã©ã®ããã°ã©ãã³ã°è¨èª(ãã¡ãã Perl ãå«ã¿ã¾ã!!!) ã®ãã¼ã¿æ§é ã表ç¾ãããã¨ãã§ãã¾ã. +=begin original + For information on the YAML syntax, please refer to the YAML specification. +=end original + YAML ã®æ§æã«ã¤ãã¦ã¯ YAML ä»æ§ãåç §ãã¦ãã ãã. =head1 ãªã YAML ã¯ã¯ã¼ã«ãªã®ã @@ -83,12 +99,16 @@ YAML ã¯èªã¿ããã. +=begin original + It makes clear sense out of complex data structures. You should find that YAML is an exceptional data dumping tool. Structure is shown through indentation, YAML supports recursive data, and hash keys are sorted by default. In addition, YAML supports several styles of scalar formatting for different types of data. +=end original + YAML ã¯è¤éãªãã¼ã¿æ§é ããæ確ãªæå³ãä½ãã¾ã. YAML ãç¹å¥ãª ãã¼ã¿ãã³ããã¼ã«ã§ãããã¨ã«æ°ã¥ãã¹ãã§ããã. ãã¼ã¿æ§é 㯠ã¤ã³ãã³ããéãã¦è¦æ¸¡ããã, å帰ãã¼ã¿ãæ±ããã¨ãã§ãã¾ã. @@ -99,11 +119,15 @@ YAML ã¯ç·¨éãããã. +=begin original + YAML was designed from the ground up to be an excellent syntax for configuration files. Almost all programs need configuration files, so why invent a new syntax for each one? And why subject users to the complexities of XML or native Perl code? +=end original + YAMLã¯è¨å®ãã¡ã¤ã«ã¨ãã¦åªããæ§æã¨ãªãããã«ä¸ãããã¶ã¤ã³ããã¦ãã¾ã. ã»ã¨ãã©ãã¹ã¦ã®ããã°ã©ã ã¯è¨å®ãã¡ã¤ã«ãå¿ è¦ã¨ãã¦ããã§ããã. ããã¦ãªãæ¯åæ°ããæ§æãçºæãããã¨ããã®ã§ããï¼ ãªã XML ã® @@ -113,12 +137,16 @@ YAML ã¯ãã«ããªã³ã¬ã«. +=begin original + Yes, YAML supports Unicode. But I'm actually referring to programming languages. YAML was designed to meet the serialization needs of Perl, Python, Ruby, Tcl, PHP, Javascript and Java. It was also designed to be interoperable between those languages. That means YAML serializations produced by Perl can be processed by Python. +=end original + YAML 㯠Unicode ããµãã¼ããã¦ãã¾ã. ãããå®éã«ã¯ããã°ã©ãã³ã°è¨èªã« ä»»ããã¦ãã¾ã. YAML 㯠Perl, Python, Ruby, Tcl, PHP, JavaScript, Java ã®ç´ååã® @@ -130,42 +158,58 @@ YAML ã¯æ±æã«å®å ¨. +=begin original + Using modules like Data::Dumper for serialization is fine as long as you can be sure that nobody can tamper with your data files or transmissions. That's because you need to use Perl's C<eval()> built-in to deserialize the data. Somebody could add a snippet of Perl to erase your files. +=end original + ç´ååã®ããã« Data::Dumper ã®æ§ãªã¢ã¸ã¥ã¼ã«ã使ãã¨, ãã¡ã¤ã«ãä¼é路㫠ã ããå¹²æ¸ã§ããªãéãã«ããã¦ãªãå®å ¨ã§ããã. ããã¯ç´ååãããã¼ã¿ æ§é ãå±éããã®ã« Perl ã® C<eval()> çµã¿è¾¼ã¿é¢æ°ãå¿ è¦ã¨ãªããã¨ã« ç±æ¥ãã¾ã. ã ããããã¡ã¤ã«ãåé¤ãã¦ãã¾ããããªæçãå ¥ãã¦ãã¾ãã㨠ãããããããã¾ãã. +=begin original + YAML's parser does not need to eval anything. +=end original + YAML ã®ãã¼ãµã«ã¯ eval ã¯å ¨ãå¿ è¦ã¨ãã¾ãã. =item YAML is full featured. YAML ã¯å®å ¨ã«æ©è½ãã¾ã. +=begin original + YAML can accurately serialize all of the common Perl data structures and deserialize them again without losing data relationships. Although it is not 100% perfect (no serializer is or can be perfect), it fares as well as the popular current modules: Data::Dumper, Storable, XML::Dumper and Data::Denter. +=end original + YAML ã¯ä¸è¬ç㪠Perl ã®ãã¼ã¿æ§é ãæ£ç¢ºã«ç´ååã, ãã¼ã¿ã®é¢é£ã 失ããã¨ãªãå±éã§ãã¾ã. ã¨ã¯ãã£ã¦ã 100% å®ç§ã«ã¯ãªãã¾ãã(100% å®ç§ãªã·ãªã¢ã©ã¤ã¶ã¯ããã¾ããã, ã©ããªã·ãªã¢ã©ã¤ã¶ã 100% å®ç§ã«ã¯ ãªãã¾ãã), Data::Dumper, Storable, XML::Dumper, Data::Denter ãªã©ã åæ§ã§ã. +=begin original + YAML.pm also has the ability to handle code (subroutine) references and typeglobs. (Still experimental) These features are not found in Perl's other serialization modules. +=end original + YAML.pm ã¯ã³ã¼ã(ãµãã«ã¼ãã£ã³)ãªãã¡ã¬ã³ã¹ãã¿ã¤ãã°ã©ããå¦çãã ãã¨ãã§ãã¾ã. (ã¾ã å®é¨çãªãã®ã§ãã.) ãããã®æ©è½ã¯ Perl ã® ä»ã®ã·ãªã¢ã©ã¤ã¼ã¼ã·ã§ã³ã¢ã¸ã¥ã¼ã«ã«ã¯ãªãæ©è½ã§ã. @@ -174,6 +218,8 @@ YAML ã¯æ¡å¼µå¯è½ã§ã. +=begin original + The YAML language has been designed to be flexible enough to solve it's own problems. The markup itself has 3 basic construct which resemble Perl's hash, array and scalar. By default, these map to their Perl @@ -182,6 +228,8 @@ different manner. That's how YAML can support object serialization and oddball structures like Perl's typeglob. +=end original + YAML è¨èªã¯ããèªèº«ã®åé¡ã解決ããã®ã«ååæè»ã«ãã¶ã¤ã³ããã¦ãã¾ã. èªåèªèº«ã®è¨è¿°ã«ã¯ Perl ã®ããã·ã¥, é å, ã¹ã«ã©ã¼ã¨ä¼¼ãï¼ã¤ã®åºæ¬ç㪠æ§é ãããã¾ã. ããã©ã«ãã§ã¯ããã㯠Perl ã§ç価ã«å¯¾å¿ãã¾ã. @@ -193,49 +241,69 @@ =head1 Perl ã§ã® YAML ã®å®è£ +=begin original + This module, YAML.pm, is really just the interface module for YAML modules written in Perl. The basic interface for YAML consists of two functions: C<Dump> and C<Load>. The real work is done by the modules YAML::Dumper and YAML::Loader. +=end original + ãã®ã¢ã¸ã¥ã¼ã«, YAML.pm ã¯å®éã«ã¯ Perl ã§ã® YAML ã¢ã¸ã¥ã¼ã«ã® ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ããããã¾ãã. YAML ã®åºæ¬çãªã¤ã³ã¿ã¼ãã§ã¼ã¹ ã¯ï¼ã¤ã®é¢æ°, C<Dump> åã³ C<Load> ããæãã¾ã. ãã®å®éã®åä½ã¯ YAML::Dumper åã³ YAML::Loader ã¢ã¸ã¥ã¼ã«ã§ å®è£ ããã¦ãã¾ã. +=begin original + Different YAML module distributions can be created by subclassing YAML.pm and YAML::Loader and YAML::Dumper. For example, YAML-Simple consists of YAML::Simple YAML::Dumper::Simple and YAML::Loader::Simple. +=end original + ç°ãªã YAML ã¢ã¸ã¥ã¼ã«ã®é å¸ç©ã§ã¯ YAML.pm, YAML::Loader, YAML::Dumper ããµãã¯ã©ã¹åãã¦ä½ããã¨ãåºæ¥ã¾ã. ä¾ãã° YAML-Simple ã¯, YAML::Simple, YAML::Dumper::Simple, YAML::Loader::Simple ããæãã¾ã. +=begin original + 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 deep and complex. Implementing the entirety of the YAML specification is a daunting task. +=end original + ã©ãã㦠YAML ã®å®è£ ãï¼ã¤ã ããããªãã®ãã£ã¦ï¼ YAML ã¯ã·ã³ãã«ãªãã¼ã¿å½¢å¼ã§ãããã¨ææ¡ãã¦ããã®ã§ãã, å®éã®ã¨ããæ·±ãè¤éã§ã. YAML ã®ä»æ§ãå®å ¨ã«å®è£ ããã®ã¯ ã²ã©ã大å¤ãªãã¨ãªã®ã§ã. +=begin original + For this reason I am currently working on 3 different YAML implementations. +=end original + ãããªäºæ ãã, ç§ã¯ç¾å¨ï¼ã¤ã®ç°ãªã YAML å®è£ ã使ã£ã¦ãã¾ã. =over =item YAML +=begin original + The main YAML distribution will keeping evolving to support the entire YAML specification in pure Perl. This may not be the fastest or most stable module though. Currently, YAML.pm has lots of known bugs. It is mostly a great tool for dumping Perl data structures to a readable form. +=end original + ã¡ã¤ã³ã® YAML ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§, ãã¥ã¢ Perl ã§ã® å®å ¨ãª YAML ä»æ§ã®ãµãã¼ããè¡ã£ã¦ãã¾ã. ããã, ä¸çªé«éã¨ãããã§ãä¸çªå®å®ãã¦ããã¨ããããã§ãããã¾ãã. @@ -245,10 +313,14 @@ =item YAML::Lite +=begin original + The point of YAML::Lite is to strip YAML down to the 90% that people use most and offer that in a small, fast, stable, pure Perl form. YAML::Lite will simply die when it is asked to do something it can't. +=end original + YAML::Lite ã®ã¢ãã¼ã«ãã¤ã³ãã¯, 人ã ãå¤ãå©ç¨ãã, ããã¦å°ãã, éã, å®å®ãã, ãã¥ã¢Perlå½¢å¼ã¨ãã¦ææ¡ããã ãã«, YAML ã 90% ã«è½ã¨ãã¦ããç¹ã«ããã¾ã. @@ -256,17 +328,25 @@ =item YAML::Syck +=begin original + C<libsyck> is the C based YAML processing library used by the Ruby programming language (and also Python, PHP and Pugs). YAML::Syck is the Perl binding to C<libsyck>. It should be very fast, but may have problems of its own. It will also require C compilation. +=end original + C<libsyck> ã¨ãã, Ruby ããã°ã©ãã³ã°è¨èª(ãã㦠Python, PHP, Pugs ã§ã)使ããã¦ãã C è¨èªãã¼ã¹ã® YAML å¦çã©ã¤ãã©ãªãããã¾ã. ããã¯ã¨ã¦ãé«éã§ãã, ããèªèº«ã®ãã°ãããã¾ã. ã¾ã, C ã³ã³ãã¤ã©ãå¿ è¦ã«ãªãã¾ã. +=begin original + NOTE: Audrey Tang has actually completed this module and it works great + +=end original and is 10 times faster than YAML.pm. è£è¶³: Audrey Tang ããã®ã¢ã¸ã¥ã¼ã«ãå®è³ªå®æãã, ãã°ãããåä½ã§ãã @@ -274,20 +354,28 @@ =back +=begin original + In the future, there will likely be even more YAML modules. Remember, people other than Ingy are allowed to write YAML modules! +=end original + ä»å¾, ããå¤ãã® YAML ã¢ã¸ã¥ã¼ã«ãåºã¦ããã§ããã. Ingy 以å¤ã®äººã ã§ã YAML ã¢ã¸ã¥ã¼ã«ãæ¸ããã¨ãã§ãããã¨ã æãåºãã¦ãã ãã! =head1 é¢æ°ã®ä½¿ãæ¹ +=begin original + YAML is completely OO under the hood. Still it exports a few useful top level functions so that it is dead simple to use. These functions just do the OO stuff for you. If you want direct access to the OO API see the documentation for YAML::Dumper and YAML::Loader. +=end original + YAML ã¯æ°´é¢ä¸ã§ã¯å®å ¨ã«ãªãã¸ã§ã¯ãæåã«ãªã£ã¦ãã¾ã. å¹¾ã¤ãã®ä¾¿å©ãªãããã¬ãã«é¢æ°ãã¨ã¯ã¹ãã¼ããã¦ãã, ãã®ä½¿ãæ¹ã¯ ã¨ã¦ãç°¡åã§ã. ãããã®é¢æ°ã¯ããªãã«ä»£ãã£ã¦ãªãã¸ã§ã¯ãæä½ã @@ -296,11 +384,15 @@ =head2 ã¨ã¯ã¹ãã¼ããããé¢æ°. +=begin original + The following functions are exported by YAML.pm by default. The reason they are exported is so that YAML works much like Data::Dumper. If you don't want functions to be imported, just use YAML with an empty import list: +=end original + YAML.pm ããã¯ä»¥ä¸ã®é¢æ°ãããã©ã«ãã§ã¨ã¯ã¹ãã¼ãããã¾ã. ããããã¨ã¯ã¹ãã¼ãããããã¨ã§, YAML 㯠Data::Dumper ã¨åãããã« åä½ãã¾ã. ããé¢æ°ã®ã¤ã³ãã¼ããå¿ è¦ãªããã°, @@ -314,11 +406,15 @@ Dump(Perlãã¼ã¿æ§é ã®ãªã¹ã) +=begin original + Turn Perl data into YAML. This function works very much like Data::Dumper::Dumper(). It takes a list of Perl data strucures and dumps them into a serialized form. It returns a string containing the YAML stream. The structures can be references or plain scalars. +=end original + Perl ãã¼ã¿ã YAML ã«å¤æãã¾ã. ãã®é¢æ°ã¯ Data::Dumper::Dumper() 㨠ã¨ã¦ãåãããã«åä½ãã¾ã. Perl ãã¼ã¿æ§é ã®ãªã¹ããåãåã, ããã ã·ãªã¢ã«åããå½¢å¼ã«ãã³ããã¾ã. YAML ã¹ããªã¼ã ãæååã¨ãã¦è¿ãã¾ã. @@ -328,11 +424,15 @@ Load(YAMLã¹ããªã¼ã ãæ ¼ç´ããæåå) +=begin original + Turn YAML into Perl data. This is the opposite of Dump. Just like Storable's thaw() function or the eval() function in relation to Data::Dumper. It parses a string containing a valid YAML stream into a list of Perl data structures. +=end original + YAML ã Perl ãã¼ã¿ã«å¤æãã¾ã. ãã㯠Dump ã®å¯¾ã§ã. Storable ã® thaw() é¢æ°ã, Data::Dumper ã§ã® eval() ã«ç¸å½ãã¾ã. é©æ£ãª YAML ã¹ããªã¼ã ã Perl ãã¼ã¿æ§é ã®ãªã¹ãã«å±éãã¾ã. @@ -341,9 +441,13 @@ =head2 ã¨ã¯ã¹ãã¼ãå¯è½ãªé¢æ° +=begin original + These functions are not exported by default but you can request them in an import list like this: +=end original + ãããã®é¢æ°ã¯ããã©ã«ãã§ã¯ã¨ã¯ã¹ãã¼ãããã¾ããã, 次ã®ããã« æå®ãããã¨ãã§ãã¾ã: @@ -353,28 +457,42 @@ =item freeze() and thaw() +=begin original + Aliases to Dump() and Load() for Storable fans. This will also allow YAML.pm to be plugged directly into modules like POE.pm, that use the freeze/thaw API for internal serialization. +=end original + Storable ã®ãã¡ã³ã®ããã«, Dump() 㨠Load() ã®å¥åã§ã. ããã«ãã£ã¦ POE.pm ã®ãããªå é¨ã®ç´ååã« freeze/thaw API ã 使ã£ã¦ããã¢ã¸ã¥ã¼ã«ã§ YAML.pm ãç´æ¥å©ç¨ãããã¨ãåºæ¥ã¾ã. =item DumpFile(filepath, list) +=begin original + Writes the YAML stream to a file instead of just returning a string. +=end original + æååã¨ãã¦è¿ã代ããã« YAML ã¹ããªã¼ã ããã¡ã¤ã«ã«åºå. =item LoadFile(filepath) +=begin original + Reads the YAML stream from a file instead of a string. +=end original + æååã¨ãã¦æ¸¡ã代ããã«ãã¡ã¤ã«ãã YAML ã¹ããªã¼ã ãèªè¾¼. =item Bless(perl-node, [yaml-node | class-name]) +=begin original + Associate a normal Perl node, with a yaml node. A yaml node is an object tied to the YAML::Node class. The second argument is either a yaml node that you've already created or a class (package) name that supports a @@ -383,6 +501,8 @@ a yaml node. This node is not returned, but can be retrieved with the Blessed() function. +=end original + é常㮠Perl ã®ãã¼ãã« yaml ã®ãã¼ããé¢é£ã¥ãã¾ã. yaml ãã¼ã㯠YAML::Node ã¯ã©ã¹ã« tie ããããªãã¸ã§ã¯ãã§ã. ï¼ã¤ç®ã®å¼æ°ã¯æ¢åã® yaml ãã¼ãã yaml_dump() é¢æ°ããµãã¼ããã¦ããã¯ã©ã¹å(ããã±ã¼ã¸å)ã§ã. @@ -390,10 +510,14 @@ ããï¼ã¤ç®ã®å¼æ°ãçç¥ãããã¨ãã«ã¯ Bless é¢æ°ã¯ yaml ãã¼ããä½æãã¾ã. ä½æããããã¼ãã¯è¿ããã¾ããã, Blessed() é¢æ°ã§åãåããã¨ãã§ãã¾ã. +=begin original + Here's an example of how to use Bless. Say you have a hash containing three keys, but you only want to dump two of them. Furthermore the keys must be dumped in a certain order. Here's how you do that: +=end original + Bless ã®ä½¿ãæ¹ã®ä¾ãæãã¦ããã¾ã. ï¼ã¤ã®ãã¼ãæã¤ããã·ã¥ãæã£ã¦ãã ããã©, ãã®ãã¡ï¼ã¤ã ãããã³ããããã¨ãã¾ã. ããã«ãã¼ãç¹å®ã®é åºã§ 並ã¹ããã¨ãã¾ã. ãããªã¨ãã¯æ¬¡ã®ããã«ãã¾ã: @@ -404,8 +528,12 @@ Bless($hash)->keys(['banana', 'apple']); print Dump $hash; +=begin original + produces: +=end original + åºåçµæã¯æ¬¡ã®ããã«ãªãã¾ã: --- @@ -416,10 +544,14 @@ banana: bad apple: good +=begin original + Bless returns the tied part of a yaml-node, so that you can call the YAML::Node methods. This is the same thing that YAML::Node::ynode() returns. So another way to do the above example is: +=end original + Bless 㯠yaml ãã¼ãã® tie ãããé¨åãè¿ãã¾ã. å¾ã£ã¦ YAML::Node ã® ã¡ã½ãããå¼ã¶ãã¨ãã§ãã¾ã. ãã㯠YAML::Node::ynode() ãè¿ã ãã®ã¨åããã®ã§ã. ã¤ã¾ãããã¨åããã¨ã次ã®ããã«ãè¡ãã¾ã: @@ -433,19 +565,27 @@ $ynode->keys(['banana', 'apple']); print Dump $hash; +=begin original + Note that Blessing a Perl data structure does not change it anyway. The extra information is stored separately and looked up by the Blessed node's memory address. +=end original + Perl ãã¼ã¿æ§é ã¸ã® Bless ã¯, ãã®ãã¼ã¿ãä½ãå¤æ´ãã¾ãã. 追å ã®æ å ±ã¯å¥ã«ä¿æãã, Bless ããããã¼ãã®ã¡ã¢ãªã¢ãã¬ã¹ ããæ¢ç´¢ããã¾ã. =item Blessed(perl-node) +=begin original + Returns the yaml node that a particular perl node is associated with (see above). Returns undef if the node is not (YAML) Blessed. +=end original + perl ãã¼ãã¨é¢é£ã¥ãããã¦ãã yaml ãã¼ããè¿ãã¾ã(ä¸ãåç §). ãã¼ãã (YAMLã§) bless ããã¦ããªããã° undef ãè¿ãã¾ã. @@ -453,93 +593,149 @@ =head1 ã°ãã¼ãã«ãªãã·ã§ã³ +=begin original + YAML options are set using a group of global variables in the YAML namespace. This is similar to how Data::Dumper works. +=end original + YAML ãªãã·ã§ã³ã¯ YAML åå空éã®ã°ãã¼ãã«å¤æ°ã使ã£ã¦è¨å®ãããã¨ã ã§ãã¾ã. ãã㯠Data::Dumper ã®åä½ã¨ä¼¼ã¦ãã¾ã. +=begin original + For example, to change the indentation width, do something like: +=end original + ä¾ãã°ã¤ã³ãã³ãå¹ ãå¤ãããã¨ãã«ã¯æ¬¡ã®ããã«ãã¾ã: local $YAML::Indent = 3; +=begin original + The current options are: +=end original + ç¾å¨è¨å®ã§ãããªãã·ã§ã³ã«ã¯ä»¥ä¸ã®ãã®ãããã¾ã: =over 4 =item DumperClass +=begin original + You can override which module/class YAML uses for Dumping data. +=end original + YAML ããã¼ã¿ã® Dump ã«ä½¿ãã¢ã¸ã¥ã¼ã«/ã¯ã©ã¹ãä¸æ¸ãã§ãã¾ã. =item LoaderClass +=begin original + You can override which module/class YAML uses for Loading data. +=end original + YAML ããã¼ã¿ã® Load ã«ä½¿ãã¢ã¸ã¥ã¼ã«/ã¯ã©ã¹ãä¸æ¸ãã§ãã¾ã. =item Indent +=begin original + This is the number of space characters to use for each indentation level when doing a Dump(). The default is 2. +=end original + Dump() æã«ã¤ã³ãã³ãã«ä½¿ãæåå¹ ãæ°å¤ã§æå®ãã¾ã. ããã©ã«ãã§ã¯ 2 ã§ã. +=begin original + By the way, YAML can use any number of characters for indentation at any level. So if you are editing YAML by hand feel free to do it anyway that looks pleasing to you; just be consistent for a given level. +=end original + ã¤ãã§ã«, YAML ã¯ä»»æã®ã¬ãã«ã§ä»»æã®æ°ã®ã¤ã³ãã³ã空ç½æåã使ããã¨ã ã§ãã¾ã. ãã YAML ãæã§ç·¨éãã¦ããã®ãªãã¬ãã«ã«çç¾ããªãç¯å²ã§ æºè¶³ã®ããããã«èªç±ã«ã¤ã³ãã³ãã§ãã¾ã. =item SortKeys +=begin original + Default is 1. (true) +=end original + ããã©ã«ã㯠1 (ç) ã§ã. +=begin original + Tells YAML.pm whether or not to sort hash keys when storing a document. +=end original + YAML.pm ãããã¥ã¡ã³ãã®æ ¼ç´æã«ããã·ã¥ãã¼ãã½ã¼ããããã©ããã è¨å®ãã¾ã. +=begin original + YAML::Node objects can have their own sort order, which is usually what you want. To override the YAML::Node order and sort the keys anyway, set SortKeys to 2. +=end original + YAML::Node ãªãã¸ã§ã¯ãã¯ç¬èªã®ä¸¦ã³é ãæã¤ãã¨ãã§ãã¾ã. YAML::Node ã® é åºãä¸æ¸ããã¦å¸¸ã«ã½ã¼ããããã«ã¯ SortKeys ã« 2 ãè¨å®ãã¦ãã ãã. =item Stringify +=begin original + Default is 0. (false) +=end original + ããã©ã«ã㯠0 (å½) ã§ã. +=begin original + Objects with string overloading should honor the overloading and dump the stringification of themselves, rather than the actual object's guts. +=end original + æååã®ãªã¼ãã¼ãã¼ããè¡ã£ã¦ãããªãã¸ã§ã¯ãã¯, ãªãã¸ã§ã¯ãã®å®éã®å 容 ã§ã¯ãªã, ãªã¼ãã¼ãã¼ãããã¦ãããã¨ãåãå ¥ãã¦, ããèªèº«ã® æåååããããã®ããã³ããããã¹ãã§ã. =item UseHeader +=begin original + Default is 1. (true) +=end original + ããã©ã«ã㯠1 (ç) ã§ã. +=begin original + This tells YAML.pm whether to use a separator string for a Dump operation. This only applies to the first document in a stream. Subsequent documents must have a YAML header by definition. +=end original + YAML.pm ã Dump æä½ã®ããã®ã»ãã¬ã¼ã¿æååã使ããã©ãããè¨å®ãã¾ã. ããã¯ã¹ããªã¼ã ä¸ã®æåã®ããã¥ã¡ã³ãã«ç¨ããããã ãã§ã. ãã以éã®ããã¥ã¡ã³ãã§ã¯ YAML ããããæããªããã°ãªããªã㨠@@ -547,13 +743,21 @@ =item UseVersion +=begin original + Default is 0. (false) +=end original + ããã©ã«ã㯠0 (å½) ã§ã. +=begin original + Tells YAML.pm whether to include the YAML version on the separator/header. +=end original + YAML.pm ãã»ãã¬ã¼ã¿/ãããã« YAML ãã¼ã¸ã§ã³ãå«ãããã©ããã è¨å®ãã¾ã. @@ -561,26 +765,38 @@ =item AnchorPrefix +=begin original + Default is ''. +=end original + ããã©ã«ãã§ã¯ '' ã§ã. +=begin original + Anchor names are normally numeric. YAML.pm simply starts with '1' and increases by one for each new anchor. This option allows you to specify a string to be prepended to each anchor number. +=end original + ã¢ã³ã«ã¼åã¯é常æ°å¤ã§ã. YAML.pm ã§ã¯åç´ã« '1' ããéå§ã, åã¢ã³ã«ã¼ æ¯ã«å¢å ããã¦ããã¾ã. ãã®ãªãã·ã§ã³ã§ã¯åã¢ã³ã«ã¼çªå·ã®åã«ã¤ãã æååãæå®ãããã¨ãã§ãã¾ã. =item UseCode +=begin original + Setting the UseCode option is a shortcut to set both the DumpCode and LoadCode options at once. Setting UseCode to '1' tells YAML.pm to dump Perl code references as Perl (using B::Deparse) and to load them back into memory using eval(). The reason this has to be an option is that using eval() to parse untrusted code is, well, untrustworthy. +=end original + UseCode ãªãã·ã§ã³ã¯ DumpCode 㨠LoadCode ã®ï¼ã¤ã®ãªãã·ã§ã³ãä¸åº¦ã« è¨å®ããã·ã§ã¼ãã«ããã§ã. UseCode ã« '1' ãè¨å®ãã㨠YAML.pm 㯠Perl ã³ã¼ããªãã¡ã¬ã³ã¹ã(B::Deparseãã¤ãã£ã¦) Perl ã¨ãã¦ãã³ã @@ -590,11 +806,15 @@ =item DumpCode +=begin original + Determines if and how YAML.pm should serialize Perl code references. By default YAML.pm will dump code references as dummy placeholders (much like Data::Dumper). If DumpCode is set to '1' or 'deparse', code references will be dumped as actual Perl code. +=end original + YAML.pm ã Perl ã³ã¼ããªãã¡ã¬ã³ã¹ãã·ãªã¢ã©ã¤ãºãããã©ãã, ããã¦ãããã©ã®ããã«è¡ãããè¨å®ãã¾ã. ããã©ã«ãã§ã¯ YAML.pm ã¯ã³ã¼ããªãã¡ã¬ã³ã¹ãããã¼ã®ãã¬ã¼ã¹ãã«ã @@ -602,11 +822,15 @@ ãã DumpCode ã« '1' ããã㯠'deparse' ãè¨å®ãã¦ããã®ãªã, ã³ã¼ããªãã¡ã¬ã³ã¹ã¯å®éã® Perl ã³ã¼ãã¨ãã¦ãã³ããããããã«ãªãã¾ã. +=begin original + DumpCode can also be set to a subroutine reference so that you can write your own serializing routine. YAML.pm passes you the code ref. You pass back the serialization (as a string) and a format indicator. The format indicator is a simple string like: 'deparse' or 'bytecode'. +=end original + DumpCode ã«ã¯ç¬èªã«ã·ãªã¢ã©ã¤ãºå¦çãè¨è¿°ããé¢æ°ãªãã¡ã¬ã³ã¹ã è¨å®ãããã¨ãã§ãã¾ã. YAML.pm ã¯ã³ã¼ããªãã¡ã¬ã³ã¹ã渡ãã¦ãã¾ã. é¢æ°ããã¯ã·ãªã¢ã©ã¤ãºããæååã¨ãã©ã¼ãããæ示åãè¿ãã¾ã. @@ -614,94 +838,138 @@ =item LoadCode +=begin original + LoadCode is the opposite of DumpCode. It tells YAML if and how to deserialize code references. When set to '1' or 'deparse' it will use C<eval()>. Since this is potentially risky, only use this option if you know where your YAML has been. +=end original + LoadCode 㯠DumpCode ã®å¯¾ã§ã. YAML ã«ã³ã¼ããªãã¡ã¬ã³ã¹ã ãã·ãªã¢ã©ã¤ãºãããã©ãã, ã©ã®ããã«ãã·ãªã¢ã©ã¤ãºããã®ããä¼ãã¾ã. '1' ããã㯠'deparse' ã¨è¨å®ãã㨠C<eval()> ãè¡ãã¾ã. ããã«ã¯ æ½å¨çãªãªã¹ã¯ãè² ããã¨ã«ãªãã¾ã. ãã®ãªãã·ã§ã³ã¯ YAML ã®åä½ã ããç¥ã£ã¦ããå ´æã§ã®ã¿ä½¿ãã¹ãã§ã. +=begin original + LoadCode can also be set to a subroutine reference so that you can write your own deserializing routine. YAML.pm passes the serialization (as a string) and a format indicator. You pass back the code reference. +=end original + LoadCode ã«ã¯ç¬èªã«ã·ãªã¢ã©ã¤ãºå¦çãè¨è¿°ããé¢æ°ãªãã¡ã¬ã³ã¹ã è¨å®ãããã¨ãã§ãã¾ã. YAML.pm ã¯ã·ãªã¢ã©ã¤ãºããã¦ããæåå㨠ãã©ã¼ãããæ示åã渡ãã¦ãã¾ã. é¢æ°ããã¯ã³ã¼ããªãã¡ã¬ã³ã¹ãè¿ãã¾ã. =item UseBlock +=begin original + YAML.pm uses heuristics to guess which scalar style is best for a given node. Sometimes you'll want all multiline scalars to use the 'block' style. If so, set this option to 1. +=end original + YAML.pm ã¯ä¸ãããããã¼ãã«å¯¾ããæé©ãªã¹ã«ã©ã¼å½¢å¼ã®æ¨æ¸¬ã« ãã¥ã¼ãªã¹ãã£ãã¯ã使ãã¾ã. ã§ããå ¨ã¦ã®è¤æ°è¡ã®ã¹ã«ã©ã¼ã¯ 'ãããã¯' å½¢å¼ã¨ãã¦æ±ãããæãããã§ããã. ãã®ãã㪠æã«ã¯ãã®ãªãã·ã§ã³ã« 1 ãè¨å®ãã¾ã. +=begin original + NOTE: YAML's block style is akin to Perl's here-document. +=end original + è£è¶³: YAML ã®ãããã¯å½¢å¼ã¯ Perl ã®ãã¢ããã¥ã¡ã³ãã¨åãæ§ãªç©ã§ã. =item UseFold +=begin original + If you want to force YAML to use the 'folded' style for all multiline scalars, then set $UseFold to 1. +=end original + è¤æ°è¡ã®ã¹ã«ã©ã¼ã« 'æãããã¿' å½¢å¼ãå¼·å¶ãããã¨ãã«ã¯ $UseFold ã« 1 ãè¨å®ãã¾ã. +=begin original + NOTE: YAML's folded style is akin to the way HTML folds text, except smarter. +=end original + è£è¶³: YAML ã®æãããã¿å½¢å¼ã¯ããã¹ãã¼ãã§ããç¹ãé¤ãã° HTML ã®æãããã¿ããã¹ãã¨ä¼¼ãæ§ãªç©ã§ã. =item UseAliases +=begin original + YAML has an alias mechanism such that any given structure in memory gets serialized once. Any other references to that structure are serialized only as alias markers. This is how YAML can serialize duplicate and recursive structures. +=end original + YAML ã«ã¯ã¡ã¢ãªä¸ã«ããä¸ããããæ§é ãããä¸åº¦ã·ãªã¢ã©ã¤ãºãã ã¨ã¤ãªã¢ã¹ã¡ã«ããºã ãæã£ã¦ãã¾ã. ãã®æ§é ã¸ã®ä»ã®ãªãã¡ã¬ã³ã¹ã¯ ã¨ã¤ãªã¢ã¹ãã¼ã«ã¼ã¨ãã¦ã®ã¿ã·ãªã¢ã©ã¤ãºããã¾ã. ããã YAML ã æ§é ä½ã®è¤è£½ãå帰ãã·ãªã¢ã©ã¤ãºããæ¹æ³ã§ã. +=begin original + Sometimes, when you KNOW that your data is nonrecursive in nature, you may want to serialize such that every node is expressed in full. (ie as a copy of the original). Setting $YAML::UseAliases to 0 will allow you to do this. This also may result in faster processing because the lookup overhead is by bypassed. +=end original + æã«ã¯ãã¼ã¿ãå帰ã§ãªãæ¹ãèªç¶ã§ããã¨ãç¥ã£ã¦ãããæã«ã¯, ã©ã®ãã¼ããå®å ¨ã«è¡¨ç¾ããã¦ã»ããã§ããã. (ããªãã¡å ã®ã³ãã¼ã¨ãã¦.) $YAML::UseAliases ã« 0 ãè¨å®ãããã¨ã§ãããè¡ããã¨ãã§ãã¾ã. ããã¯æ¤ç´¢ã®ãªã¼ãã¼ããããã¨ã°ããã¨ãã§ããããå¦çã æ©ããªããã¨ãããã§ããã. +=begin original + THIS OPTION CAN BE DANGEROUS. *If* your data is recursive, this option *will* cause Dump() to run in an endless loop, chewing up your computers memory. You have been warned. +=end original + B<ãã®ãªãã·ã§ã³ã¯å±éºã§ãããã¾ã.> *ãã* ãã¼ã¿ãå帰ãã¦ããã, ãã®ãªãã·ã§ã³ã¯ Dump() ãç¡éã«ã¼ãããã¦ãã¾ã, ã¡ã¢ãªã å°ãå°½ããã¦ãã¾ã*ã§ããã*. åå注æãã¦ãã ãã. =item CompressSeries +=begin original + Default is 1. +=end original + ããã©ã«ã㯠1 ã§ã. +=begin original + Compresses the formatting of arrays of hashes: +=end original + ããã·ã¥ã®é åã®æ¸å¼ãè©°ãã¾ã: - @@ -709,36 +977,54 @@ - bar: foo +=begin original + becomes: +=end original + ããã¯æ¬¡ã®ããã«ãªãã¾ã: - foo: bar - bar: foo +=begin original + Since this output is usually more desirable, this option is turned on by default. +=end original + ãã®åºåã¯ããã¦ãæã¾ããã®ã§ããã©ã«ãã§æå¹ã«ãªã£ã¦ãã¾ã. =back =head1 YAML ç¨èª +=begin original + YAML is a full featured data serialization language, and thus has its own terminology. +=end original + YAML ã¯å®å ¨ãªæ©è½ãæã£ããã¼ã¿ç´ååè¨èªã§ã. ãã®ããç¬èªã®ç¨èªãæã£ã¦ãã¾ã. +=begin original + It is important to remember that although YAML is heavily influenced by Perl and Python, it is a language in its own right, not merely just a representation of Perl structures. +=end original + YAML 㯠Perl 㨠Python ã®å½±é¿ãå¼·ãåãã¦ã¾ãã, åã« Perl ã®æ§é ã 表ç¾ããã®ã§ã¯ãªã, ããèªèº«ã®å²å¦ãæã¤è¨èªã§ããã¨ãããã¨ã¯ ã¨ã¦ãéè¦ãªãã¨ã§ã. +=begin original + YAML has three constructs that are conspicuously similar to Perl's hash, array, and scalar. They are called mapping, sequence, and string respectively. By default, they do what you would expect. But each @@ -746,6 +1032,8 @@ behave differently. In this manner, YAML can be extended to represent Perl's Glob or Python's tuple, or Ruby's Bigint. +=end original + YAML ã¯é¡èã« Perl ã®ããã·ã¥, é å, ã¹ã«ã©ã¼ã¨ä¼¼ã¦ãã ï¼ã¤ã®æ§é ãæã£ã¦ãã¾ã. ãããã¯ãããããããã³ã°, ã·ã¼ã±ã³ã¹, æååã¨å¼ã°ãã¾ã. ããã©ã«ãã§ã¯, æå³ããã¨ããã«ãªã£ã¦ãã @@ -760,10 +1048,14 @@ ã¹ããªã¼ã +=begin original + A YAML stream is the full sequence of unicode characters that a YAML parser would read or a YAML emitter would write. A stream may contain one or more YAML documents separated by YAML headers. +=end original + YAML ã¹ããªã¼ã ã¨ã¯ YAML ãã¼ã¶ãèªã¿è¾¼ãè¥ãã㯠YAML çæå¨ã æ¸ãåºãã¦ãã³ã¼ãæååã®éåã§ã. ã¹ããªã¼ã ã«ã¯ YAML ãããã§åºåãããï¼ã¤ä»¥ä¸ã® YAML ããã¥ã¡ã³ããå«ã¾ã㦠@@ -780,11 +1072,15 @@ ããã¥ã¡ã³ã +=begin original + A YAML document is an independent data structure representation within a stream. It is a top level node. Each document in a YAML stream must begin with a YAML header line. Actually the header is optional on the first document. +=end original + YAML ããã¥ã¡ã³ãã¨ã¯ã¹ããªã¼ã ããç¬ç«ãããã¼ã¿æ§é 表ç¾ã§ã. ãããã¬ãã«ã®ãã¼ãã«ãªãã¾ã. YAML ã¹ããªã¼ã ã«ããããããã® ããã¥ã¡ã³ã㯠YAML ãããè¡ããå§ã¾ããªããã°ãªãã¾ãã. å®éã«ã¯ @@ -801,11 +1097,15 @@ ããã +=begin original + A YAML header is a line that begins a YAML document. It consists of three dashes, possibly followed by more info. Another purpose of the header line is that it serves as a place to put top level tag and anchor information. +=end original + YAML ãããã¨ã¯ YAML ããã¥ã¡ã³ãã®éå§ã示ãè¡ã§ã. ï¼ã¤ã®ããã·ã¥ã¨, ãããã追å ã®æ å ±ãããªãã§ããã. ãããè¡ã®ããï¼ã¤ã®ç®çã¯ããã ã¬ãã«ã®ã¿ã°ã¨ã¢ã³ã«ã¼æ å ±ãç½®ãå ´æãæä¾ãããã¨ã§ã. @@ -818,11 +1118,15 @@ ãã¼ã +=begin original + A YAML node is the representation of a particular data stucture. Nodes may contain other nodes. (In Perl terms, nodes are like scalars. Strings, arrayrefs and hashrefs. But this refers to the serialized format, not the in-memory structure.) +=end original + YAML ãã¼ãã¨ã¯ç¹å®ã®ãã¼ã¿æ§é ã®è¡¨ç¾ã§ã. ãã¼ãã«ã¯ä»ã®ãã¼ãã å«ã¾ãã¦ããã§ããã. (Perl ã®ç¨èªã§ããã°, ãã¼ãã¯ã¹ã«ã©ã¼ã® ãããªç©ã§ã. æåå, é åãªãã¡ã¬ã³ã¹, ããã·ã¥ãªãã¡ã¬ã³ã¹. @@ -833,10 +1137,14 @@ ã¿ã° +=begin original + This is similar to a type. It indicates how a particular YAML node serialization should be transferred into or out of memory. For instance a Foo::Bar object would use the tag 'perl/Foo::Bar': +=end original + ããã¯åã¨ä¼¼ã¦ãã¾ã. ããã¯ç¹å®ã® YAML ãã¼ããã·ãªã¢ã©ã¤ãºãã ãã®ãã¡ã¢ãªã®ä¸ãããã¯å¤ã¸ã©ã®ããã«è»¢éãããã¹ããã示ãã¾ã. ä¾ãã° Foo::Bar ãªãã¸ã§ã¯ãã¯ã¿ã° 'perl/Foo::Bar' ã使ãã¾ã: @@ -849,9 +1157,13 @@ ã³ã¬ã¯ã·ã§ã³ +=begin original + A collection is the generic term for a YAML data grouping. YAML has two types of collections: mappings and sequences. (Similar to hashes and arrays) +=end original + ã³ã¬ã¯ã·ã§ã³ã¨ã¯ YAML ãã¼ã¿ã°ã«ã¼ãã®ç·ç§°ã§ã. YAML ã«ã¯ ï¼ç¨®é¡ã®ã³ã¬ã¯ã·ã§ã³, ãããã³ã°ã¨ã·ã¼ã±ã³ã¹ãããã¾ã. (ããã·ã¥ã¨ é åã®ãããªç©ã§ã.) @@ -860,9 +1172,13 @@ ãããã³ã° +=begin original + A mapping is a YAML collection defined by unordered key/value pairs with unique keys. By default YAML mappings are loaded into Perl hashes. +=end original + ãããã³ã°(åå)ã¨ã¯é åºã®ãªããã¼/å¤ãã¢ã¨ã¦ãã¼ã¯ãªãã¼ã§å®ç¾© ããã YAML ã³ã¬ã¯ã·ã§ã³ã§ã. ããã©ã«ãã§ã¯ YAML ãããã³ã°ã¯ Perl ã®ããã·ã¥ã¨ãã¦ãã¼ãããã¾ã. @@ -875,9 +1191,13 @@ ã·ã¼ã±ã³ã¹ +=begin original + A sequence is a YAML collection defined by an ordered list of elements. By default YAML sequences are loaded into Perl arrays. +=end original + ã·ã¼ã±ã³ã¹ã¨ã¯è¦ç´ ã®é åºä»ããªã¹ãã¨ãã¦å®ç¾©ããã YAML ã³ã¬ã¯ã·ã§ã³ ã§ã. ããã©ã«ãã§ã¯ YAML ã·ã¼ã±ã³ã¹ã¯ Perl ã®é åã¨ã㦠ãã¼ãããã¾ã. @@ -891,18 +1211,26 @@ ã¹ã«ã©ã¼ +=begin original + A scalar is a YAML node that is a single value. By default YAML scalars are loaded into Perl scalars. +=end original + ã¹ã«ã©ã¼ã¨ã¯ï¼ã¤ã®å¤ãããªã YAML ãã¼ãã§ã. ããã©ã«ãã§ã¯ YAML ã¹ã«ã©ã¼ã¯ Perl ã®ã¹ã«ã©ã¼ã¨ãã¦ãã¼ãããã¾ã. a scalar key: a scalar value +=begin original + YAML has many styles for representing scalars. This is important because varying data will have varying formatting requirements to retain the optimum human readability. +=end original + YAML ã«ã¯ã¹ã«ã©ã¼ã表ç¾ããå¹¾ã¤ãã®ã¹ã¿ã¤ã«ãããã¾ã. ãã㯠æ§ã ãªãã¼ã¿ã¯æé©ãªå¯èªæ§ãå¾ãããã«æ§ã ãªãã©ã¼ããããå¿ è¦ã¨ãã ããã«ã¨ã¦ãéè¦ãªãã¨ã§ã. @@ -911,11 +1239,15 @@ ãã¬ã¤ã³ã¹ã«ã©ã¼ +=begin original + A plain sclar is unquoted. All plain scalars are automatic candidates for "implicit tagging". This means that their tag may be determined automatically by examination. The typical uses for this are plain alpha strings, integers, real numbers, dates, times and currency. +=end original + ãã¬ã¤ã³ã¹ã«ã©ã¼ã¯ã¯ãªã¼ãããã¦ãã¾ãã. å ¨ã¦ã®ãã¬ã¤ã³ã¹ã«ã©ã¼ã¯"æé»ã«ã¿ã°ä»ã"ãããã¾ã. ããã¯ãã®ã¿ã°ã¯è©¦é¨ããèªåçã«æ±ºå®ããããã¨ãæå³ãã¾ã. @@ -932,10 +1264,14 @@ ã·ã³ã°ã«ã¯ãªã¼ããããã¹ã«ã©ã¼ +=begin original + This is similar to Perl's use of single quotes. It means no escaping except for single quotes which are escaped by using two adjacent single quotes. +=end original + ãã㯠Perl ã®ã·ã³ã°ã«ã¯ãªã¼ãã®ä½¿ãæ¹ã¨ä¼¼ã¦ãã¾ã. ï¼ã¤ã®ã·ã³ã°ã«ã¯ãªã¼ãã¯ï¼ã¤ã®é£ç¶ããã·ã³ã°ã«ã¯ãªã¼ãã¨ã㦠ã¨ã¹ã±ã¼ãããã以å¤ã¯ä½ã®ã¨ã¹ã±ã¼ãããããªããã¨ãæå³ãã¾ã. @@ -946,9 +1282,13 @@ ããã«ã¯ãªã¼ããããã¹ã«ã©ã¼ +=begin original + This is similar to Perl's use of double quotes. Character escaping can be used. +=end original + ãã㯠Perl ã®ããã«ã¯ãªã¼ãã®ä½¿ãæ¹ã¨ä¼¼ã¦ãã¾ã. æåã¨ã¹ã±ã¼ãã 使ããã¨ãåºæ¥ã¾ã. @@ -958,10 +1298,14 @@ ããã¿è¾¼ã¾ããã¹ã«ã©ã¼ +=begin original + This is a multiline scalar which begins on the next line. It is indicated by a single right angle bracket. It is unescaped like the single quoted scalar. Line folding is also performed. +=end original + ããã¯ãã®æ¬¡ã®è¡ããå§ã¾ãè¤æ°è¡ã®ã¹ã«ã©ã¼ã§ã. ï¼ã¤ã®å³å±±å½¢æ¬å¼§ã§æ示ããã¾ã. ã·ã³ã°ã«ã¯ãªã¼ãæååã®ããã« ã¨ã¹ã±ã¼ãã¯ããã¾ãã. è¡ã®ããã¿è¾¼ã¿ãè¡ããã¾ã. @@ -977,10 +1321,14 @@ ãããã¯ã¹ã«ã©ã¼ +=begin original + This final multiline form is akin to Perl's here-document except that (as in all YAML data) scope is indicated by indentation. Therefore, no ending marker is required. The data is verbatim. No line folding. +=end original + ãã®æå¾ã®è¤æ°è¡å½¢å¼ã¯ (å ¨ã¦ã® YAML ãã¼ã¿ã®ããã«) ã¹ã³ã¼ãã ã¤ã³ãã³ãã§æå®ãããç¹ãé¤ã㦠Perl ã®ãã¢ããã¥ã¡ã³ãã¨åæ§ã§ã. ãã®çºçµããã®å°ã¯ä¸è¦ã§ã. ãã¼ã¿ã¯æ¸ããã¾ã¾ã«æ±ããã¾ã. @@ -996,14 +1344,22 @@ ãã¼ãµ +=begin original + A YAML processor has four stages: parse, load, dump, emit. +=end original + YAML å¦çç³»ã¯ï¼ã¤ã®ã¹ãã¼ã¸, ãã¼ã¹, ãã¼ã, ãã³ã, çºè¡(emit)ã æã£ã¦ãã¾ã +=begin original + A parser parses a YAML stream. YAML.pm's Load() function contains a parser. +=end original + ãã¼ãµã¯ YAML ã¹ããªã¼ã ããã¼ã¹ãã¾ã. YAML.pm ã® Load() é¢æ°ã¯ ãã¼ãµãå«ãã§ãã¾ã. @@ -1011,9 +1367,13 @@ ãã¼ã +=begin original + The other half of the Load() function is a loader. This takes the information from the parser and loads it into a Perl data structure. +=end original + Load é¢æ°ã®æ®ãã®ååã¯ãã¼ãã§ã. ããã¯ãã¼ãµããæ å ±ã åãåã£ã¦ããã Perl ã®ãã¼ã¿æ§é ã«å±éãã¾ã. @@ -1021,9 +1381,13 @@ ãã³ãã¼ +=begin original + The Dump() function consists of a dumper and an emitter. The dumper walks through each Perl data structure and gives info to the emitter. +=end original + Dump() é¢æ°ã¯ãã³ãã¼ã¨ã¨ããã¿ã¼ãæã£ã¦ãã¾ã. ãã³ãã¼ã¯ ããããã® Perl ãã¼ã¿æ§é ã渡ãæ©ãã¦ãã®æ å ±ãã¨ããã¿ã¼ã« 渡ãã¾ã. @@ -1032,16 +1396,24 @@ ã¨ããã¿ã¼ +=begin original + The emitter takes info from the dumper and turns it into a YAML stream. +=end original + ã¨ããã¿ã¼ã¯ãã³ãã¼ãããã¼ã¿ãåãåã£ã¦ããã YAML ã¹ããªã¼ã ã« å¤æãã¾ã. +=begin original + NOTE: In YAML.pm the parser/loader and the dumper/emitter code are currently very closely tied together. In the future they may be broken into separate stages. +=end original + ã¡ã¢: YAML.pm ã§ã¯ãã¼ãµ/ãã¼ãã¨ãã³ãã¼/ã¨ããã¿ã¼ã®ã³ã¼ãã¯ä»ã®ã¨ãã ãäºãã¨ã¦ãå¯æ¥ã«çµã³ã¤ãã¦ãã¾ã. ä»å¾ç¬ç«ããã¹ãã¼ã¸ã«å解ããã @@ -1049,53 +1421,79 @@ =back +=begin original + For more information please refer to the immensely helpful YAML specification available at L<http://www.yaml.org/spec/>. +=end original + ãã詳ããæ å ±ã¯ L<http://www.yaml.org/spec/> ã«ããé常ã«å½¹ã«ç«ã¤ YAML ä»æ§ãåç §ãã¦ãã ãã. =head1 ysh - YAML ã·ã§ã« +=begin original + The YAML distribution ships with a script called 'ysh', the YAML shell. ysh provides a simple, interactive way to play with YAML. If you type in Perl code, it displays the result in YAML. If you type in YAML it turns it into Perl code. +=end original + YAML é å¸ç©ã«ã¯ 'ysh', YAML ã·ã§ã« ã¨å¼ã°ããã¹ã¯ãªãããå梱ãã㦠ãã¾ã. ysh 㯠YAML ã§éã¶ç°¡åã§ã¤ã³ã¿ã©ã¯ãã£ããªæ¹æ³ãæä¾ãã¾ã. Perl ã³ã¼ããæã¡è¾¼ãã°ãã®çµæã YAML ã§è¡¨ç¤ºã, YAML ãå ¥åããã° Perl ã³ã¼ãã帰ã£ã¦ãã¾ã. +=begin original + To run ysh, (assuming you installed it along with YAML.pm) simply type: +=end original + ysh ãå®è¡ãããã«ã¯, (YAML.pm ã¨ä¸ç·ã«ã¤ã³ã¹ãã¼ã«ããã¦ãã㨠æãã¤ã¤) 次ã®ããã«ã¿ã¤ããã¾ã: ysh [options] +=begin original + Please read the C<ysh> documentation for the full details. There are lots of options. +=end original + 詳細㯠C<ysh> ããã¥ã¡ã³ãã¼ã·ã§ã³ãåç §ãã¦ãã ãã. ã¨ã¦ãå¤ãã®ãªãã·ã§ã³ãããã¾ã. =head1 ãã°ã¨ä¸è¶³ +=begin original + If you find a bug in YAML, please try to recreate it in the YAML Shell with logging turned on ('ysh -L'). When you have successfully reproduced the bug, please mail the LOG file to the author (ingy****@cpan*****). +=end original + YAML ã§ãã°ãè¦ã¤ããã¨ãã«ã¯, ãã°ãæå¹ã«ãã YAML ã·ã§ã« ('ysh -L') 㧠åç¾ããã¦ã¿ã¦ãã ãã. åç¾ã§ããã¨ãã«ã¯ãã®ãã°ãã¡ã¤ã«ãä½è (ingy****@cpan*****) ã¾ã§ã¡ã¼ã«ããé¡ããã¾ã. +=begin original + WARNING: This is still *ALPHA* code. Well, most of this code has been around for years... +=end original + è¦å: ããã¯ã¾ã *ã¢ã«ãã¡* ã³ã¼ãã§ã. ãã®ã³ã¼ãã®ã»ã¨ãã©ã¯ ã»ã¼æ°å¹´ã«ããã£ã¦ããã¾ã. +=begin original + BIGGER WARNING: YAML.pm has been slow in the making, but I am committed to having top notch YAML tools in the Perl world. The YAML team is close to finalizing the YAML 1.1 spec. This version of YAML.pm is based off of @@ -1103,6 +1501,8 @@ and this YAML.pm is still fairly useful. Things will get much better in the future. +=end original + 大ããªè¦å: YAML.pm ã¯çæã¯é ãã§ããç§ã¯æä¸æ®µéã® YAML ãã¼ã«ã Perl ã®ä¸çã«ã³ããããã¾ãã. YAML ãã¼ã 㯠YAML 1.1 ä»æ§ã®å®äºã« è¿ã¥ãã¦ãã¾ã. YAML.pm ã®ãã®ãã¼ã¸ã§ã³ã¯ã¨ã¦ãå¤ã pre 1.0 ä»æ§ @@ -1111,28 +1511,48 @@ =head1 åèæç® +=begin original + L<http://lists.sourceforge.net/lists/listinfo/yaml-core> is the mailing list. This is where the language is discussed and designed. +=end original + ã¡ã¼ãªã³ã°ãªã¹ãã L<http://lists.sourceforge.net/lists/listinfo/yaml-core> ã«ããã¾ã. è¨èªã¯ããã§è°è«ãã, è¨è¨ããã¾ã. +=begin original + L<http://www.yaml.org> is the official YAML website. +=end original + å ¬å¼ã® YAML ã¦ã§ããµã¤ã㯠L<http://www.yaml.org> ã§ã. +=begin original + L<http://www.yaml.org/spec/> is the YAML 1.0 specification. +=end original + YAML 1.0 ä»æ§ã¯ L<http://www.yaml.org/spec/> ã«ããã¾ã. +=begin original + L<http://yaml.kwiki.org> is the official YAML wiki. +=end original + å ¬å¼ã® YAML wiki ã L<http://yaml.kwiki.org> ã«ããã¾ã. =head1 é¢é£é ç® +=begin original + See YAML::Syck. Fast! +=end original + ã¾ããªãã¨ãã£ã¦ã YAML::Syck ã§ããã. =head1 èè @@ -1140,14 +1560,22 @@ Ingy dE<ouml>t Net <ingy****@cpan*****> +=begin original + is resonsible for YAML.pm. +=end original + 㯠YAML.pm ã®è²¬ä»»ãæ ã£ã¦ãã¾ã. +=begin original + 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 have added help along the way. +=end original + YAML ç´ååè¨èªã¯ Oren Ben-Kiki, Clark Evans, ãã㦠Ingy dE<ouml>t Net ã®æ°å¹´éã®å ±åä½æ¥ã®çµæ¶ã§ã. ãã以å¤ã«ãããããã«å©ãã¦ããã人ã ãã¾ã. @@ -1158,13 +1586,21 @@ Copyright (c) 2001, 2002, 2005. Brian Ingerson. All rights reserved. +=begin original + This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. +=end original + ãã®ããã°ã©ã ã¯ããªã¼ã½ããã¦ã§ã¢ã§ããããªã㯠Perl ã¨åã ã©ã¤ã»ã³ã¹ã® å ã§åé å¸åã³å¤æ´ãè¡ããã¨ãåºæ¥ã¾ã. +=begin original + See L<http://www.perl.com/perl/misc/Artistic.html> +=end original + åè L<http://www.perl.com/perl/misc/Artistic.html>