Replies: 6 comments 5 replies
-
Another possible improvement : For unknown NAGs, display an explicative string when NAG has no symbol defined. I just noticed french translation is incomplete, I take this job (no deadline, sorry !). |
Beta Was this translation helpful? Give feedback.
-
So I have a different approach / sight here:
To the last point: I would like to have something that looks more like
Then I would see a big improvement here:
so I understand your proposal, but I don't see (yet) which problems are solved we have at the moment, and I don't think that it will be the final solution then. Therefore I would like to postpone that as long as I don't know how the structure of HTML elements should look like. Custom elements of web components are here a relative simple approach, and I would like to use that (trying it out myself) first. So in my opinion, we should define:
See the page New proposed HTML structure just created |
Beta Was this translation helpful? Give feedback.
-
I did a first implementation (only move and subs), and it looks promising. Here are some screen shots. By having split figure, san, and nags, I am now able to add more information to individual elements (like the title to nag), and the font of the figure may be different to the font of the san (as used for Lichess). I think I will just continue with it, and change only what is necessary. Shall I do a "preview" in copying the created library to the docs directory, so @braoult could be able to copy that to your local installation, and checking if there are problems with XHTML? |
Beta Was this translation helpful? Give feedback.
-
That would be nice, thanks ! |
Beta Was this translation helpful? Give feedback.
-
I just made a test, it displays correctly within XHTML, and, the good news is that it validates as XHTML 1.1 on w3c validator. I was really too pessimistic (!!), and I have learned something about (X)HTML today :-) very good job ! |
Beta Was this translation helpful? Give feedback.
-
In fact, the Wikipedia page on NAGs is incorrect in a few ways for me :
Notes: I added this morning the The question raised in this post is: Is sticking to Wikipedia NAG page the best choice ? We could as well stick to any "reasonable" more accurate source, like the NAGs commonly used by common chess DB software (they all decided to go for something instead of nothing). All this is just my thoughts about the current messy situation about PGN -especially NAGs- in the world, all chess software devs asking the same desperate question and ending-up creating something new :-) Note: Example of full Scid's NAGs - please force Unicode encoding in browser to view it. I was unable so far to find Chessbase's ones, I will try to ask in some places such as Reddit/Stackoverflow/IRC... Does anything makes sense, or should we just forget about it ? |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is not a request for development (the improvement idea was not a request, I really do not need myself), but just some ideas for possible improvements in NAG display.
Currently, with the moves
1. e4 $1 $10 $13 e5 $44
, the HTML becomes (I added newlines for readability):And displayed as 1. e4!=∞ e5=∞.
There are many issues :
One solution could be to separate the nags in separate elements, and offer a tooltip
My suggestion would be to have HTML designed as following :
And I think the display should be: 1. e4! = ∞ e5 =∞.
Doing this will give many advantages:
goodMove
in the example), that are NAGs 1-9, we could display them differently (Lichess does that for example), this is useful to see where a game changes orientation.What do you think about it ?
Beta Was this translation helpful? Give feedback.
All reactions