Skip to content

增加导出 PGN 功能(导出当前 DatabaseView 筛选后的内容) #58

@gooooloo

Description

@gooooloo

功能描述

增加导出 PGN(Portable Game Notation)的功能,将当前 DatabaseView 范围内的棋谱数据导出为标准 PGN 格式文件。

导出范围应为当前筛选视图(DatabaseView)的内容,即用户在不同范围(全库、先手开局、后手开局等)下看到的数据。

动机

  • 便于与其他象棋软件交换棋谱数据
  • 支持分享和备份特定范围的棋谱内容
  • PGN 是广泛支持的标准格式

UI 设计

  • macOS:在文件菜单(File menu)中添加导出选项
  • iOS:待定

备注

  • PGN 标准支持单文件包含多局对局(各局之间用空行分隔,每局包含独立的 tag pairs 和 movetext)
  • 需要调研中国象棋 PGN 格式的具体标签约定(如 FEN 起始局面表示等)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions