Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.475.875 Times

Chess::PGN::Filter 0.13

  Date Added: May 22, 2010  |  Visits: 1.493

Chess::PGN::Filter

Report Broken Link
Printer Friendly Version


Product Homepage
Download (159 downloads)

Chess::PGN::Filter is a Perl extension for converting PGN files to other formats. SYNOPSIS use Chess::PGN::Filter; filter(source => $pgn,filtertype => XML); OR my %substitutions = ( hsmyers => Myers, Hugh S (ID), ); my @exclude = qw( WhiteElo BlackElo EventDate ); filter( source => $pgn, filtertype => TEXT, substitutions => %substitutions, nags => yes, exclude => @exclude, ); OR filter( source => $pgn, filtertype => DOM, ); OR $dom = filter( source => $pgn, filtertype => DOM, verbose => 0, ); This is a typical text in one side, different text out the otherside filter module. There are as of this writing, the following supported choices: 1. XML -- Converts from .pgn to .xml using the included pgn.dtd as the validation document. This is for the most part a one to one transliteration of the PGN standard into XMLese. It does have the additional virtue of allowing positions to be encoded within the XML output. These are generated by an embedded NAG of {0} and automatically (user controlled) at the end of each game. As a kind of adjunct to the position diagrams, pgn.dtd optionally allows each move to include its FEN string. This allows scripted animation for web pages generated this information. 2. TEXT -- Although the PGN standard is widely available, many program that generate .pgn do so in an ill-formed way. This mode is an attempt to normalize away the various flaws found in the wild! This includes things like game text all on a single line without a preceding blank line. Or castling indicated with zeros rather than the letter O. There is at least one application that carefully indents the first move! The list of oddities is probably as long as the list of applications. 3. DOM -- A Document Object Model (DOM) makes for a very convenient interim form, common to all other filter types. Useful in both the design and debugging phases of filter construction. By way of self-documentation, here is an example of a single game that shows all of the obvious features of the DOM: $VAR1 = { Tags => { Site => Boise (ID), Event => Cabin Fever Open, Round => 1, ECO => ?, Date => 1997.??.??, White => Barrett Curtis, Black => Myers Hugh S, Result => 1-0 }, Gametext => [ { Movenumber => 1, Epd => rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3, Movetext => e4 }, { Movenumber => 2, Epd => rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6, Movetext => d5 }, { Movenumber => 3, Epd => rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq -, Movetext => e5 }, { Movenumber => 4, Comment => Playing ...Bf5 before closing the c8-h3 diagonal has some positive features., Epd => rnbqkbnr/ppp2ppp/4p3/3pP3/8/8/PPPP1PPP/RNBQKBNR w KQkq -, Movetext => e6 }, { Movenumber => 5, Epd => rnbqkbnr/ppp2ppp/4p3/3pP3/3P4/8/PPP2PPP/RNBQKBNR b KQkq d3, Movetext => d4 }, { Movenumber => 6, Comment => Time to think like a Frenchie - c7-c5!, Epd => r1bqkbnr/ppp2ppp/2n1p3/3pP3/3P4/8/PPP2PPP/RNBQKBNR w KQkq -, Movetext => Nc6, Rav => [ { Movenumber => 6, Epd => rnbqkbnr/pp3ppp/4p3/2ppP3/3P4/8/PPP2PPP/RNBQKBNR w KQkq c6, Movetext => c5 } ] }, . . . { Movenumber => 29, Comment => (Bxe5) Black could still kick for a while if he had played ...Bxe5., Epd => r1bq1rk1/2p1npb1/2n1p2P/pp1pP1p1/3P2P1/2P4Q/PP2BP2/RNB1K2R b KQ -, Movetext => h6 } ] };.

Requirements: No special requirements
Platforms: Linux
Keyword: Chesspgnfilter Dom Epd Filter Kqkq Libraries Perl Pgn Files Rnbqkbnr Source Text
Users rating: 0/10

License: Freeware Size: 18.43 KB
CHESS::PGN::FILTER RELATED
Libraries  -  HTTPD::Log::Filter 1.08
HTTPD::Log::Filter is a Perl module to filter entries out of an httpd log. SYNOPSIS my $hlf = HTTPD::Log::Filter->new( exclusions_file => $exclusions_file, agent_re => .*Mozilla.*, format => ELF, ); while( ) { my $ret =...
10.24 KB  
Libraries  -  XML::Filter::Dispatcher::AsStructHandler 0.52
XML::Filter::Dispatcher::AsStructHandler Perl module can help you convert SAX stream in to simple, data-oriented structure. SYNOPSIS ## Ordinarily used via the XML::Filter::Dispatchers as_data_struct() ## built-in extension function for XPath...
88.06 KB  
Libraries  -  XML::DOM::Lite::XPath 0.15
XML::DOM::Lite::XPath is a Perl module for XPath support for XML::DOM::Lite. SYNOPSIS # XPath use XML::DOM::Lite qw(XPath); $result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode); This XPath library is fairly complete - there...
31.74 KB  
Libraries  -  XML::DOM::Attr 1.44
XML::DOM::Attr is an XML attribute in XML::DOM. XML::DOM::Attr extends XML::DOM::Node. The Attr nodes built by the XML::DOM::Parser always have one child node which is a Text node containing the expanded string value (i.e. EntityReferences are...
112.64 KB  
Libraries  -  Inline::Filters 0.12
Inline::Filters Perl module contains common source code filters for Inline Modules. Inline::Filters provides common source code filters to Inline Language Modules. Unless youre an Inline module developer, you can just read the next section....
5.12 KB  
File Utilities  -  MuseTips Text Filter 1.1.0.850
MuseTips Text Filter is a free, lightweight and portable Windows software that lets you read, search and filter text files with ease. Text lines are instantly filtered as you type your search phrase, with all matched terms highlighted in a...
1.8 MB  
Multimedia & Graphics  -  FLV Flash Video Source Filter 1.31
FLV Flash Video Source Filter was designed to be a powerful source filter that will allow playback flv flash video, in any Directshow base application (C#, Delphi, .Net, vb, vc++). FEATURES: ยท Support playback FLV Flash video in any...
3.2 MB  
Email  -  HLDFilter 2.4
This is a unix based mail filter written in perl to replace procmail and many 5 other mail utilities. Features: - Stats - Track who emails you most, or spams you most. Displayed in HTML with graphs. - Mailback's - Setup auto replies to keywords...
 
Libraries  -  Text::Macro 0.07
Text::Macro Perl module is a template facility whos focus is on generating code such as c, java or sql. While generating perl code is also possible, there is a potential conflict between the control-symbol and the perl comment symbol. Perl is...
12.29 KB  
Libraries  -  Convert::Wiki::Node::Para 0.05
Convert::Wiki::Node::Para is a Perl module that represents a text paragraph node. SYNOPSIS use Convert::Wiki::Node::Para; my $para = Convert::Wiki::Node->new( txt => Foo is a foobar., type => para ); print $para->as_wiki(); A...
19.46 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB