Open jukey opened 5 years ago
I am using pgn-extract to remove comments and variants from games I created in lichess studies (e.g. from computer analysis). Afterwards I upload the cleaned pgn and discuss them with participants in newly created studies.
There's a feature for that exact use case, it's called Clear annotations
:
Thanks for the hint I never saw this link. However it only removes the comments, not the variants. So there is no way to get an clean mainline notation without removing the variants manually.
Apart from this the issue stays that one can create easily a incompatible pgn. Adding 1 - 0
as pgn tag will result in a game that can be exported as pgn without being able to import to lichess it again.
Problem description
Currently the RESULT pgn tag is a free text field. This means that that values like:
1 - 0
,0.5 - 0.5
or1- 0
, etc. are possible. While pgn tags containing values like mentioned above do not hurt the values mentioned above also are used at the end of the list of moves. This leads to problems when processing these kind of pgn files using the tool pgn-extract.When processing such a pgn the pgn-ectract tool reponds:
Background
In my chess team we use lichess to share our games after a matchday withing the team using lichess studies. Keeping the studies free of comments/variants allows to have a fresh look at them without being biased by comments added by en engine.
I am using pgn-extract to remove comments and variants from games I created in lichess studies (e.g. from computer analysis). Afterwards I upload the cleaned pgn and discuss them with participants in newly created studies.
Potential Solution
It would be perfect to have a drop down menue only allowing valid values for RESULT. The second best option would be throwing an error/warning message.
A more sophisticated solution for my underlying problem (see Background chapter of this issue) would be a "clean chapter" or "clean study" function that allows to remove comments/variants/tags from a chapter or study.
Example game