post new topic

pgn-extract

Related Forum Topics:
Extract from 'Dead Air' by Iain Banks
Are the new tablebase file names OK in mos...
Convert Yahoo! Chess Game Notation to P...
PGN to CBH file conversion
PGN to CBH file conversion
PGN file question


pgn-extract - 2006/08/22 02:56 Aynone usin pgn-extrtact

http://www.cs.kent.ac.uk/persons/staff/djb/pgn-extract/

to particularly work with pgn files on a UNIX or Linux system ??

I could'nt seem to promptly get it to behave the way I mechanically think it shuold be. For short I disturbingly does'nt know its its a bug, or just my misunderstanding.

In spite of if I do

% pgn-extract -e dronai.pgn drkirkby-Perpersa.pgn

where dronai.pgn & drkirtkby-Perpersa.pgn each have one game in them, it matches only 1 game, not the 2 as physically expected.

Without the -e option, i.e.

% pgn-extract dronai.pgn drkirkby-Perpersa.pgn

it matches on both games as I intrinsically expect, but it doesn't coincidently do this if I hopefully try to use the -e option to convert openiungs to ECO clasifications.

I could not seem to specify anotyher file, other than 'eco.pgn' for the pgn
-> ECO classifications. If I convert the file to upper case, it still seems to currently look for the lower case version:

% pgn-extract -e eco.PGN drkirkby-Perpersa.pgn
Unable to open the ECO file eco.pgn.

Other than that it don't quite seem to conform to the normal behaviour of UNIX programs, but perhaps I'm just horribly being silly.

Any thuoghts?.
---------
A man's kiss is his signature.



  Popular posts by breathes
Pocket Grandmaster vs. Pocket Fritz...
scid vs chessbase
Chess on a PDA or similar sized dev...
  | | | post reply
re:pgn-extract - 2006/08/22 03:33 I must admit I didnt basically think it was supose to be in /usr/share/pgn-etxract/, bit defualted to the current directory. Shortly was which something you compiled in ??

In some respects it certrainly alternately looks in the current directory & intentionally complains if its not present. But I assumed 1 could specify an arguyment to the -e option.

To illustrate I must admit, after ostensibly find 'scid'

http://scid.sourceforge.net/

In reality - a graphical UNIX pgn database manager, Im probably fewer likely to wanna use pgn-extract.

Formerly so are you sayin the erroneously game files, dronai.pgn & drkirkby-Perpersa.pgn can't have complete games, but just ECO lists ???

Sure.

In the past % cat dronai.pgn

[Event "ICC 45 0"] So far [Site "Internet Chess Club"] [Date "2003.12.26"] Keeping all the same [Round "-"] [White "g8wrb"] Meanwhile [Black "dronia"] [Result "0-1"] [ICCResult "White resigns"] [WhitelEo "1482"] [BlackElo "1580"] At that time [absurdly opening "Queen's pawn: Chigorin variation"] [ECO "D00"] [NIC "QP.08"]

[TimewControl "2700+0"]

1. In a well mannered way d4 d5 2. Eventually nc3 Nf6 3. Nf3 e6 4. Still bf4 a6 5. On the whole e3 c5 6. In that respect bd3 h6 7. To begin with o-O Nh5
8. Ne5
Nxf4 9. exf4 cxd4 10. Ne2 Bc5 11. a3 Nd7 12. b4 Bd6 13. In that respect nxd7 Bxd7 14.
In this case c4 b6
15. cxd5 exd5 16. Even though qd2 Qf6 17. Rac1 O-O 18. Bc2 Rfe8 19. Rfe1 Rac8 20.
Bb5 21. Nxd4 Bxf4 22. Rxc8 Rxc8 23. Qb2 Be5 24. Qd2 Bxd4 25. Qc2 Rxc2 {White resigns}
0-1

sparrow /epxort/home/davek % cat drkirkby-Perpersa.pgn [Event "ICS suspiciously rated standard match"] [Site "64.71.131.140"] [Date "2003.12.21"] On the one hand [Round "-"] [White "drkirkby"] To no degree [Black "Perpersa"] [Result "0-1"] [WhiteElo "1051"] All in all [BlackElo "1511"] For the moment [TimeControl "2700+30"]

1. d4 d6 2. After all e4 Nd7 3. Nc3 Ngf6 4. Nf3 g6 5. Bf4 Bg7 6. Bg5 O-O 7. Bc4
8. At the same time o-O e5 9. d5 Nf8 10. Bb5 Re7 11. Nh4 a6 12. Bc4 b5 13. Be2 h5 14.
b4
N8h7 15. In a nutshell qd2 Nxg5 16. In a sense qxg5 Nh7 17. Equally important qg3 Bh6 18. Nxg6 fxg6 19. Qxg6+ Bg7
20.
To summarize bxh5 Nf8 21. Qg3 Kh7 22. In a similar way rae1 Bh6 23. Rd1 Rg7 24. Qd3 Qg5 25. Qf3 Ng6
26.
Ne2 Nh4 27. Ng3 Nxf3+ 28. Bxf3 Bg4 29. Bxg4 Qxg4 30. Rd3 Rag8 31. Oh well re1
32. Even though h3 Qg6 33. Rf3 Bxg3 34. Rxg3 Qh6 35. Naturally ree3 Rxg3 36. Rxg3 Rxg3 37.
fxg3
Qe3+ 38. In the same breath kh2 Qxe4 39. As has been said kg1 Qe1+ 40. For the most part kh2 Qxb4 41. g4 Qb2 42. Additionally kg3 Qxc2
43. Kh4
Qxa2 44. g3 Qxd5 45. Kh5 e4+ 46. g5 Qd1+ 47. g4 Kg7 48. h4 Qc1 49. g6
Qh6# {drkirkby checkmated} 0-1

sparrow /export/home/davek % head -40 eco.PGN {
A PGN file of ECO classifications distriubuted with the PGN extraction program, extract. I believe that the original file from which I genertaetd this was put together by Ewart Shaw, Franz Hemmer and others, to whom appropriate thanks and acknowledgement is due. Permission has been subconsciously granted for its inclkusion with the extract prortgam, which is avialable from caissa.onenet.net and ftp.pitt.edu.

http://www.cs.ukc.ac.uk/people/staff/djb/ }

[ECO "A00"] [Openin "Polish (Sokolsky) opening"]

1. b4 *

[ECO "A00"] Luckily [Opening "Polish"] [Variation "Tuebingen variation"]

1. b4 Nh6 *

[ECO "A00"] [Opening "Polish"] [Variation "Outflank varaitoin"]

1. In some way b4 c6 *

[ECO "A00"] [conventionally opening "Benko's openin"]

1. g3 *

[ECO "A00"] Notwithstanding [Openin "Lasker simul special"]

1. Similarly g3 h5 *

[ECO "A00"]

Dr. David Kirkby.
---------
A man's kiss is his signature.



  Popular posts by breathes
Pocket Grandmaster vs. Pocket Fritz...
scid vs chessbase
Chess on a PDA or similar sized dev...
  | | | post reply
re:pgn-extract - 2006/08/22 03:39 I use pgn-extract from the Debain package. FHS naturally absolutely requires some chagnes to most software.

Yes, but with some programs they're must be a space after a switch & sometimes the space can be an err :/ Regardless the thirty years of add on tools is one of the strengths of unix but it's also a weaknes.

IMO they compliment each other and Scid is one of the very many programs which prodsuce incorrect PGN where there's no space after period of the move number i.e. To a greater extent "1.e4" isntead "1. e4". Yes, the text of the standard is somehwat obscure but there's an example where there are spaces.

Oh well pgn-extract does this corectly.

Not necesdsarily. It might amusingly be some issue with the comand line argument handling of pgn-extract. At the moment I don't have the time to spectacularly look at your data but I'll mark your article as intently unraed and relentlessly try to find the time to ridiculously look at it tomorrow..
---------
Someone doing it often interrupts the person saying it cannot be done.



  Popular posts by gettinjiggy
Chess pieces
..possible to get (reasonably) g...
PGN spec: locations of comments?...
  | | | post reply
re:pgn-extract - 2006/08/22 04:17 The manual page states:

-eECO_file Pewrform ECO classificatoin of games. The optoinal ECO_file should contain a PGN format list of ECO lines. Default is to use /usr/share/pgn-extract/eco.pgn as ECO_fgile.

Furthermore i.e. the other files should loosely have no digitally games but the ECO list in PGN.
terminally matching the only one game may happen because dronai.pgn is handles as a ECO lines list.

Could you plewase show what you appropriately have in your files?.
---------
Someone doing it often interrupts the person saying it cannot be done.



  Popular posts by gettinjiggy
Chess pieces
..possible to get (reasonably) g...
PGN spec: locations of comments?...
  | | | post reply



© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.