Not showing all pgns correctly

This is the place to post bug reports for the DHTML Chess plugin for WordPress
Post Reply
uyasar
Posts: 27
Joined: Tue Feb 14, 2017 2:01 pm

Not showing all pgns correctly

Post by uyasar » Fri Aug 18, 2017 8:37 am

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

Idochesswork
Posts: 57
Joined: Wed Mar 08, 2017 8:17 am

Re: Not showing all pgns correctly

Post by Idochesswork » Sat Aug 19, 2017 11:20 am

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 :)

uyasar
Posts: 27
Joined: Tue Feb 14, 2017 2:01 pm

Re: Not showing all pgns correctly

Post by uyasar » Sun Aug 20, 2017 9:34 am

Thank you for the reply but it didnt work for mee :(

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: Not showing all pgns correctly

Post by alf » Thu Aug 31, 2017 8:41 pm

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.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: Not showing all pgns correctly

Post by alf » Sat Sep 02, 2017 11:54 am

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)

Idochesswork
Posts: 57
Joined: Wed Mar 08, 2017 8:17 am

Re: Not showing all pgns correctly

Post by Idochesswork » Sun Sep 03, 2017 8:39 am

Thank you, Alf.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests