Removing errors from PGN file.

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Removing errors from PGN file.

Postby karo » 13 Dec 2009, 21:49

Hi all,

i had first 32 bit windows xp and changed to 64 bits windows xp first i use to use PGN Trim to remove error from the PGN files which was very easy to use for making polyglot binary book.
But now PGN trim does not support the 64 bit windows xp.I have scid but dont know how to remove errors form the pgn file using it.I tried many utilities for cleaning error from pgn file because i am non technical and my english is weak to follow.So please help me out in easy way.

Regards

Karo.
karo
 
Posts: 11
Joined: 23 Mar 2009, 21:18

Re: Removing errors from PGN file.

Postby Volker Pittlik » 14 Dec 2009, 07:44

karo wrote:... making polyglot binary book...


I use pgn-extract for that (http://www.cs.kent.ac.uk/people/staff/djb/extract.html). The 32-bit win executable should work. For the books I use "-7 -V -C -N -llog -noutputfile inputfile", but please look in the readme files because this tool offers a lot of options.

vp
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland

Re: Removing errors from PGN file.

Postby Roger Brown » 14 Dec 2009, 12:28

karo wrote:Hi all,

i had first 32 bit windows xp and changed to 64 bits windows xp first i use to use PGN Trim to remove error from the PGN files which was very easy to use for making polyglot binary book.
But now PGN trim does not support the 64 bit windows xp.I have scid but dont know how to remove errors form the pgn file using it.I tried many utilities for cleaning error from pgn file because i am non technical and my english is weak to follow.So please help me out in easy way.

Regards

Karo.





Hello Karo,

Volker suggested one powerful option.

I am suggesting a couple of other alternatives:

http://homepages.tesco.net/henry.ablett/jims.html

Scroll to the bottom of the page until you see Jim's PGN Cleanup Toolkit v1.3. There is a mediafire link. I did not want to link directly to it as I am not sure that is considered polite....

http://www.hoflink.com/~npollock/chess.html

The above link belongs to Norm Pollock and he has written a bewildering number of pgn processors. Should pgn processing be of interest or importance to you then Norm has written a program for it. He has instructions for usage and notes.

As a side benefit, he also maintains pgn files which are of high quality thus saving some of the work that you would normally have to do as part of the book making process.

I hope between Volker and myself that you find what you are searching for.

Later.
Roger Brown
 
Posts: 346
Joined: 24 Sep 2004, 12:31

Re: Removing errors from PGN file.

Postby EdCollins » 16 May 2010, 16:51

Karo,

I realize you asked your original question several months ago, but I'm going to respond anyway, since my answer may help someone else in the future.

Yes, PGNTRIM does not "normally" work when using a 64 bit Windows operating system, but you can still use it. In fact, I'm using it now, in the background, as I type this, and I'm running Windows Vista on a 64 bit system.

To use PGNTRIM, I first load a program called DOSbox, which emulates the old DOS operating system. I use this program all the time, whenever I wish to run old DOS games, that wouldn't load or run otherwise.

I don't have a link to this freeware program handy, but a Google search on DOSbox + emulation, or something similar should turn it up.

(To save you some time, if you download and run the program, you want to type "mount c c:\" to mount your C drive.)
EdCollins
 
Posts: 71
Joined: 16 May 2010, 09:05
Location: Southern California

Re: Removing errors from PGN file.

Postby karo » 16 Jun 2010, 13:47

EdCollins wrote:Karo,

I realize you asked your original question several months ago, but I'm going to respond anyway, since my answer may help someone else in the future.

Yes, PGNTRIM does not "normally" work when using a 64 bit Windows operating system, but you can still use it. In fact, I'm using it now, in the background, as I type this, and I'm running Windows Vista on a 64 bit system.

To use PGNTRIM, I first load a program called DOSbox, which emulates the old DOS operating system. I use this program all the time, whenever I wish to run old DOS games, that wouldn't load or run otherwise.

I don't have a link to this freeware program handy, but a Google search on DOSbox + emulation, or something similar should turn it up.

(To save you some time, if you download and run the program, you want to type "mount c c:\" to mount your C drive.)


Thanks for you suggestion EdCollins.
karo
 
Posts: 11
Joined: 23 Mar 2009, 21:18

Re: Removing errors from PGN file.

Postby chrisadam12 » 09 Sep 2010, 05:18

ne way to open a file in Scid is to specifiy it on a command line, for example:

scid sample.pgn
But we will assume you already have Scid running and want to open a file in it.
To open a file (of any format Scid can recognise) in Scid, select the File / Open menu command, or use the Ctrl+O shortcut or the toolbar icon. You should see a standard file-open dialog box, and see the file named tutorial.pgn listed if is in the current directory. Open it now.

If you want to compare files in a directory by size or age before opening one of them, you can use the Scid File finder, available from the File menu, the Ctrl+/ shortcut key or the toolbar icon. The file finder is also useful if you know the name of a file that Scid can open, but cannot remember where it is.

Once you have opened sample.pgn, notice how the main window has changed. The game information area should now show information about the first game in the file, like the screenshot shown here. It shows that the first game in the file saw Vladimir Kramnik (rated 2770) scored a win (1-0) with the White pieces against Peter Leko (rated 2743) in a match in Budapest in 2001.

Also note that whenever you open a PGN file, Scid also produces a window with the title Scid: Importing PGN file that shows any errors that might have been detected. This is very useful since adherence to the PGN standard varies widely and it is common to find poorly formatted PGN files on the Internet that confuse most chess software. But for most PGN files this window should indicate games were imported with "no errors or warnings".

Creating a new database

You cannot edit a PGN file in Scid, as they are opened read-only and file maintenance functions are only available for Scid-format database files. So you will want to create one or more Scid-format databases and import games from PGN files into them.

You can create a new database with the File / New menu item, the Ctrl+N shortcut or the toolbar icon. Do this now. You should see a standard file-save dialog box, where you can type the name of a new file to be created. Enter the name mybase for example. This will create a new database called mybase, using the three-file format described above.

After creating the new database mybase, you should now see from the status bar that your new database has no games in it.

The database switcher

Scid now has two files open: the tutorial.pgn file, and your empty mybase database. You can switch between files from the File menu, but a much nicer way is to use the Switcher window. Open it now by using the Windows / Database switcher menu item, the Ctrl+D shortcut, or the toolbar icon. You should see a window like this:


The Switcher shows which files you have open, with the current file highlighted in yellow. You can see from the five slots of the switcher that Scid allows you to have up to four files open at one time, plus a clipbase (the very last slot) that is useful as a temporary database. (Note: The clipbase is a special database that is always open but only exists in memory; it does not use any files on your disk drive. When you exit Scid, the clipbase contents are lost and the clipbase will be empty when you next run Scid.)

To switch to a different file, simply click the left mouse button on its slot in the Switcher. Pressing the right mouse button over a switcher slot pops up a menu of commands that act on the database in that slot.

Selecting an icon

You should see, as in the screenshot above, that the tutorial.pgn file and the clipbase have graphical icons to help you distinguish between them, but your new database has no icon. A PGN file is always given the icon you can see for tutorial.pgn, but for Scid-format databases there are over 20 icons you can choose from. The icon has no significance outside of the switcher window; it is only a graphical aid to help identifying databases.

Move the mouse cursor to the slot with your new database, press the right mouse button, and select Change icon... from the pop-up menu. A dialog box like the one shown here should appear. Click on icon that you want for your new database and select OK. You should see the switcher updated to show the new icon



____________________________________________________________________________________________


Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo pecialist
chrisadam12
 
Posts: 2
Joined: 07 Sep 2010, 11:17


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 13 guests