Skip to content

feat: add generate_svg function#44

Open
sincerelyyyash wants to merge 1 commit intogambitproject:mainfrom
sincerelyyyash:feat/generate-svg
Open

feat: add generate_svg function#44
sincerelyyyash wants to merge 1 commit intogambitproject:mainfrom
sincerelyyyash:feat/generate-svg

Conversation

@sincerelyyyash
Copy link

Add generate_svg function which works similarly to generate_png, calling generate_pdf first and then using pdf2svg to convert the intermediate PDF to SVG format.

  • Add generate_svg to src/draw_tree/core.py with the same args as generate_png
  • Extend commandline() to support --svg flag and .svg output extension
  • Export generate_svg from src/draw_tree/init.py
  • Wire --svg into the CLI in src/draw_tree/cli.py
  • Update README.md with pdf2svg install instructions and usage examples
  • Add TestSvgGeneration test class and SVG commandline tests

Closes #40

Note: Submitting this as part of my GSoC 2026 application for Project 2 (GameInterpreter), as suggested in the outreach email.

Add generate_svg function which works similarly to generate_png, calling
generate_pdf first and then using pdf2svg to convert the intermediate PDF
to SVG format.

- Add generate_svg to src/draw_tree/core.py with the same args as generate_png
- Extend commandline() to support --svg flag and .svg output extension
- Export generate_svg from src/draw_tree/__init__.py
- Wire --svg into the CLI in src/draw_tree/cli.py
- Update README.md with pdf2svg install instructions and usage examples
- Add TestSvgGeneration test class and SVG commandline tests

Closes gambitproject#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Good first issue]: Add generate_svg function

1 participant