Results 1 to 5 of 5
  1. #1
    CC Grandmaster
    Join Date
    Apr 2008
    Posts
    5,649

    Removing Clock Times from pgn Files

    Thanks to Shaun Press for this trick:
    My most recent problem was that the pgn files from the 2020 Australian Championship had the clock times included as comments. Normally this isn't a problem as you can strip comments using chessbase, but as I don't have that on my laptop, it required a different solution (that wasn't manual deletion). \{[\s\S]*?}\s was the magic incantation used in Brackets, which was sufficient to get the file into something I could use more easily. And as proof, here is a nice win by Jack Puccini from yesterdays round.

    He used Brackets, but I'd suggest Notepad++, which is just an upgraded version of the basic Windows text editor Notepad. In the string to be replaced, use \{[\s\S]*?}\s and leave the replacement string blank. Then this:

    1. e4 {[%clk 01:30:53]} {[%emt 00:13:49]} d5 {[%clk 01:30:37]} 2. exd5 Qxd5
    {[%clk 01:30:59]} 3. Nc3 {[%clk 01:31:26]} {[%emt 00:00:07]} Qd8 {[%clk
    01:31:13]} {[%emt 00:00:15]} 4. d4 {[%clk 01:31:36]} {[%emt 00:00:22]} Nf6

    will become this:

    1. e4 d5 2. exd5 Qxd5
    3. Nc3 Qd8 4. d4 Nf6

    which (with a bit of tidying up) will look a lot better in the pgn viewer.

    I believe that Chesspad and Tarrasch can also do something similar.

  2. #2
    CC Grandmaster Adamski's Avatar
    Join Date
    Nov 2007
    Location
    Penrith, NSW
    Posts
    8,843
    Thanks - a tip I may get to use.
    God exists. Short and to the point.

    Secretary of, and regularly arbiter at, Rooty Hill RSL Chess Club. See www.rootyhillchessclub.org.

    Psephological insight. "Controversial will only lose you votes. Courageous will lose you the election." Sir Humphrey Appleby on Yes Minister.

    Favorite movie line: Girl friend Cathy to Jack Ryan in "Sum of all Fears". "What kind of emergency does an historian have?".

  3. #3
    Monster of the deep Kevin Bonham's Avatar
    Join Date
    Jan 2004
    Posts
    38,437
    Useful, thanks for posting.

  4. #4
    CC Grandmaster Capablanca-Fan's Avatar
    Join Date
    Jan 2004
    Location
    Atlanta, GA (formerly Brisbane, and before that Wellington, NZ)
    Posts
    20,168
    Very useful, thanks. Those posted times are annoying when posting games on this site.
    “The destructive capacity of the individual, however vicious, is small; of the state, however well-intentioned, almost limitless. Expand the state and that destructive capacity necessarily expands, too, pari passu.”—Paul Johnson, Modern Times, 1983.

  5. #5
    CC Grandmaster
    Join Date
    Apr 2008
    Posts
    5,649
    Quote Originally Posted by Capablanca-Fan View Post
    Very useful, thanks. Those posted times are annoying when posting games on this site.
    They certainly are. Also annoying when trying to use games for coaching.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Good advice on removing spyware
    By Bereaved in forum The 1337 Lounge
    Replies: 19
    Last Post: 30-12-2007, 05:35 PM
  2. need help with fritz 8 media files
    By qpawn in forum Computer Chess
    Replies: 1
    Last Post: 02-08-2006, 08:13 AM
  3. SP Master Files
    By kveldulv in forum Ratings Arena
    Replies: 3
    Last Post: 13-03-2006, 08:28 PM
  4. Uploading pgn files
    By Carl Gorka in forum Help and Feedback
    Replies: 5
    Last Post: 23-10-2005, 10:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •