pgn4web testing thread
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
pgn4web testing thread
This thread is for reports of strange behavior, bugs or satisfaction while testing prototype pgn4web software. Have it it.
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: pgn4web testing thread
My first comment (other than that I miss the coords and side-to-move indicators and intend to reimplement them) is that the variations should be colored differently from comments, so that it's easy to see at a glance that they are "live".
Re: pgn4web testing thread
Good point, you might want to replace board.html with the updated one atJeremy Bernstein wrote:My first comment (other than that I miss the coords and side-to-move indicators and intend to reimplement them) is that the variations should be colored differently from comments, so that it's easy to see at a glance that they are "live".
http://pgn4web.devio.us/pgn4web/board.html
This allows setting a separate color for variations, see for example:
http://tinyurl.com/7z9m7e5
You have to change the pgn tag definition, adding to board.html the parameter &fvch=fvch=FF0000 (replacing fvch=FF0000 with the color of your choice).
For "technical reasons" you will see that only the variation moves are colored differently, while the move numbers still have the comments color (while for the main line is slightly different), hope this is acceptable.
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: pgn4web testing thread
Got it!pgn4web wrote:Good point, you might want to replace board.html with the updated one atJeremy Bernstein wrote:My first comment (other than that I miss the coords and side-to-move indicators and intend to reimplement them) is that the variations should be colored differently from comments, so that it's easy to see at a glance that they are "live".
http://pgn4web.devio.us/pgn4web/board.html
This allows setting a separate color for variations, see for example:
http://tinyurl.com/7z9m7e5
You have to change the pgn tag definition, adding to board.html the parameter &fvch=fvch=FF0000 (replacing fvch=FF0000 with the color of your choice).
For "technical reasons" you will see that only the variation moves are colored differently, while the move numbers still have the comments color (while for the main line is slightly different), hope this is acceptable.
Thanks-
jb
Re: pgn4web testing thread
Another remark, I noticed that a small change in the board.html code might improve the display of some of the chess informant symbols fonts with some browsers, for instance for the "xxx has a slight advantage marks"
e4 e6 d4 $14 d5 $15 e5 c5 c3
In the recommended URL you have now
and
The new recommendation will be
and
This make the font slightly bigger and the whole setup more resilent.
e4 e6 d4 $14 d5 $15 e5 c5 c3
In the recommended URL you have now
Code: Select all
&fhs=80p
Code: Select all
&fms=80p
Code: Select all
&fhs=14
Code: Select all
&fms=14
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: pgn4web testing thread
Thanks for the tip. Done.pgn4web wrote:Another remark, I noticed that a small change in the board.html code might improve the display of some of the chess informant symbols fonts with some browsers, for instance for the "xxx has a slight advantage marks"
In the recommended URL you have nowandCode: Select all
&fhs=80p
The new recommendation will beCode: Select all
&fms=80p
andCode: Select all
&fhs=14
This make the font slightly bigger and the whole setup more resilent.Code: Select all
&fms=14
Re: pgn4web testing thread
The size of the text moves in the game seems too big, compare them to the sizes in the posts's text:
Could it pick up the size of the Forum Style's font so more moves fit in the lines?
Could it pick up the size of the Forum Style's font so more moves fit in the lines?
Re: pgn4web testing thread
Also, this used to work yesterday while today it seems... broken.
Re: pgn4web testing thread
It is not able to detect the font size from the forum. It has to be a fixed number.Uly wrote:The size of the text moves in the game seems too big, compare them to the sizes in the posts's text:
Could it pick up the size of the Forum Style's font so more moves fit in the lines?
It's configurable, but any size less than 14 makes some of the chess informant symbols hard to read, see for example the "black has a slight advantage" symbol, this depends on the quality of the font used.
There is another option, to use a second font for the symbols, in general it's less good that the default one, but does not degrade that much at size 13 or less. To switch the font, Jeremy needs to change the file board.html where it says
Code: Select all
<script src="chess-informant-NAG-symbols.js" type="text/javascript"></script>
Code: Select all
<script src="chess-informant-NAG-symbols-alternative.js" type="text/javascript"></script>
Re: pgn4web testing thread
This is because Jeremy is testing a beta version of the original pgn4web code that adds variation support but does not have few of the other customizations that Jeremy added in his version for this forum. No worries, once the beta testing is over, Jeremy will likely reapply those customizations... I had to refrain myself from doing something to prevent coordinates to be displayed around the chessboard, but I finally did notUly wrote:Also, this used to work yesterday while today it seems... broken.
What we want to make sure with the beta testing is that my new code for variation support works as it should.