Page 1 of 1

Not showing all pgns correctly

Posted: Fri Aug 18, 2017 8:37 am
by uyasar
Hi, I am trying to translate this pgn into my lang but there is something wrong with it

original pgn: http://www.openchessbooks.org/capablanc ... mates.html
translated one: https://satrancdersleri.com/ders/bazi-basit-matlar/

pgn is the same but output is different, incomplete

thanks

Re: Not showing all pgns correctly

Posted: Sat Aug 19, 2017 11:20 am
by Idochesswork
Hi, can you copy/paste the pgn string that you used in you wordpress editor?

To my experience, This situation would happen if you separate the comment on move by breaking a line in wordpress editor. Maybe you have entered it like this:

1. e4 b6 2. d4 Bb7 3. Nc3 e6 4. a3 Nf6 5. e5 Nd5 6. Bd2 Be7 7. Bc4 Nxc3 8. Bxc3 Bxg2 9. Ne2 Bxh1 10. Ng3 Bd5 11. Bxd5 exd5
{Black is completely dominate, a whole rook ahead.}
12. Nf5 O-O 13. Qg4 Bg5

It should displayed correctly after you remove the line breaking:

1. e4 b6 2. d4 Bb7 3. Nc3 e6 4. a3 Nf6 5. e5 Nd5 6. Bd2 Be7 7. Bc4 Nxc3 8. Bxc3 Bxg2 9. Ne2 Bxh1 10. Ng3 Bd5 11. Bxd5 exd5 {Black is completely dominate, a whole rook ahead.}12. Nf5 O-O 13. Qg4 Bg5

Cheer :)

Re: Not showing all pgns correctly

Posted: Sun Aug 20, 2017 9:34 am
by uyasar
Thank you for the reply but it didnt work for mee :(

Re: Not showing all pgns correctly

Posted: Thu Aug 31, 2017 8:41 pm
by alf
I have started looking at this.

It's a complicated PGN with a combination of sub variations and comments. The PGN parser in DHTML Chess have a hard time parsing it. I will get some free time this upcoming weekend to look more at this.

Re: Not showing all pgns correctly

Posted: Sat Sep 02, 2017 11:54 am
by alf
The problem with PGNS like this should now have been resolved.

There were two issues:

1) It didn't handle comments with multiple hard linebreaks(newlines) very well
2) It didn't handle comments at the beginning of variations, example: 1. e4 ({comment before first variation move} 1. d4)

Re: Not showing all pgns correctly

Posted: Sun Sep 03, 2017 8:39 am
by Idochesswork
Thank you, Alf.