OK, I made a first attempt. The beta version that has it can be downloaded from
http://hgm.nubati.net/WinBoard-TM.zip .
There will be a new menu item "Edit Book" in the "Edit" menu. This pops up an edit window. (This is basically the "Edit Tags" window, so you can't have both of them open at the same time. If you use one, and open the 'other', it means that the single window is now used for the other task. This does not seem a big problem.)
The window contains the list of book moves from the current position, in the format
- Code: Select all
46.0% 12121 e2e4
37.6% 9907 d2d4
9.2% 2414 g1f3
6.4% 1683 c2c4
0.7% 179 g2g3
0.1% 20 b2b3
0.0% 13 b1c3
0.0% 11 f2f4
(So sorry, no SAN yet. But it might be understood on input.) The contents will be automatically updated if you step or move to a new position. (So if you made changes, and you did not save them, you lose them!) You can edt the text, and when you press OK it will be saved. (Unfortunately this also closes the window; I should add a button 'Save Changes'. A similar problem already existed when you edit a comment.)
Currently you cannot change the number of moves. You could set weights of moves to zero, though, which is nearly the same thing as deleting them, but there is no way to add moves. I will add that later (after I am convinced that what we have now works). The percentages are printed only for the benefit of the user; they are not part of the book, but calculated from the weights when you read the book. When you save the are simply ignored. But you can change the weights, and even the moves. (But they'd better be valid moves!)
Obvious future improvements will be:
*) print the moves as SAN
*) allow addition and deletion of moves
*) a save possibility that does not close the window
Please let me know what you think of this. How should I treat the learning info? It seems to be always zero, so currently I write it as zero, and any original info would get lost when you save. Should it be displayed, (so it can be written back), and editable? If so, how can it best be displayed?