24 August 2012

Mainly good news

Almost exactly one year ago, I wrote about the challenge to provide nice diagrams for chess problems to be used in a blog or other web pages. In the meantime, the tool pgn4web which I also discussed has made more progress. Already since March this year it provides full support for game variations. That's great!

Therefore, in this and all blog posts to come, I will make use of this software — as far as possible. When it comes to fairy chess problems, I have to fall back on the well-proven method of using those generated images that you've seen so far.

From now on, you'll be able to play through all the moves with ease. No additional chessboard is required and no trouble anymore trying to imagine the whole solution while your eyes constantly wander between board and notation. Let's see how it looks like.

This iframe was automatically created and I could cut&paste it. The only thing to do was to provide a PGN text which I modified a little bit, so that the header looks quite the way we expect it. There are many configuration options to change nearly every part of the output. And even those who see this result later have many possibilities. Hover your mouse slowly over the squares and learn what features can be activated by clicking. Of course, not all of them are applicable to these simple "games" that represent the chess compositions.

Okay, at first, it's all really exciting. But after a while you'll find out what's the drawback with this procedure. The generated HTML code for the iframe can't be modified directly. Hence, in case of an error or if, for instance, you want to add some comments, you have to reload the information in the board generator, make the desired or necessary changes there, generate the code and cut&paste it again. That can be annoying, especially when you have to do it more often. Of course, it would be better to use the whole set of JavaScript files that is provided by Paolo Casaschi, the author of the pgn4web package. But that would require a web space, etc.

No comments: