Skip to content

PGN Parser Edge Cases #18

@nloding

Description

@nloding

Problem

Several PGN parser edge cases are not handled:

  1. Date formats: Only YYYY.MM.DD supported, not YYYY/MM/DD or DD.MM.YYYY
  2. Round formats: Complex formats like 1.2.3 may not roundtrip correctly
  3. Unicode: Some characters in comments/names may not survive roundtrip
  4. Additional tags: Not handled specially:
    • [Annotator]
    • [Termination]
    • [Mode]
    • [WhiteTeam], [BlackTeam]
  5. Rating types: Only standard Elo; no Rapid/Blitz distinction

Solution

  1. Add date format flexibility
  2. Preserve unknown tags during import
  3. Add Unicode roundtrip tests
  4. Consider rating type field

File

src/pgn.rs

Priority

Low - edge cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions