Open ChessBase databases (.cbh, .cbv) and zip/7z archives
New crate chess-import converts non-PGN sources to PGN in memory and returns a PgnDatabase, so the library, notation and analysis work unchanged: - .cbv archives (container rewritten after uncbv), .cbh with companion files (layout after the public Morphy format description): games, variations, comments with per-database code page detection, NAGs, squares/arrows, set-up positions, time spent, book chapters (guiding texts) as move-less records; - ChessBase figurines become piece letters, diagram/object markers handled, Western names in Cyrillic databases read correctly; - .zip/.7z with PGN (own encoding each), .cbh and .cbv; duplicates skipped; - .cbz/encrypted archives and 2CBH rejected with clear messages. Library: '+ Add database', format shown, import notes; comments keep paragraph breaks. Tests on the user's sample books (skipped when absent). Also: AUR PKGBUILD for 0.2.0 with the bundled Stockfish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
26bf901124
commit
bb7d3b3fa6
31 changed files with 3618 additions and 64 deletions
|
|
@ -10,6 +10,9 @@
|
|||
## Возможности
|
||||
|
||||
- **Библиотека PGN** — несколько баз под рукой, поиск и сортировка партий, возврат к той же строке.
|
||||
- **ChessBase и архивы** — базы ChessBase (`.cbh`) и архивы (`.cbv`), а также `.zip` / `.7z` с PGN
|
||||
или ChessBase внутри: партии, варианты, комментарии, знаки, стрелки и текстовые главы книг; только
|
||||
чтение (в PGN — сохранением партии).
|
||||
- **Реальные PGN** — вложенные варианты, комментарии, NAG, партии из позиции FEN, старые кодировки
|
||||
(windows-1251, windows-1252, KOI8-R, CP866) и учебные нулевые ходы `--`. Исходные файлы не изменяются.
|
||||
- **Нотация** — основная линия таблицей в две колонки, комментарии и варианты блоками,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue