Commit Graph
10 Commits
Author SHA1 Message Date
owenrees 786bad8956 feat: add optional pgn_to_tex_js entry point 2026-10-23 16:38:24 +02:00
owenrees 135491e915 cover real-world headers, NAGs, and fixtures 2026-10-23 16:38:24 +02:00
owenrees 9cd7878ad8 accept path-only diagram entries 2026-10-23 16:38:24 +02:00
owenrees 548f98f303 feat: add public Pgn_to_tex entry point
Move parsing and rendering internals into the private
pgn_to_tex_internal library and rename pgn2tex to converter. Expose only
Pgn_to_tex with default to_tex arguments, abstract diagram_data,
empty_diagrams, and parse_diagrams_json. Update tests, JS bridge, and
README to the new names.
2026-10-23 16:38:24 +02:00
owenrees 8df30f1746 run each OUnit suite only from test_suite 2026-10-23 16:38:24 +02:00
owenrees fe9eb8ba45 Feature/variations (#5)
* support diagrams in variations.

* Diagram data now carries an optional `path` (the SAN move sequence from the root) alongside the legacy `ply`; diagrams whose `path` resolves inside a variation are rendered inline within the variation. `parse_diagrams_json` returns a `diagram_data` record with `by_ply` and `by_path` maps.

* make variation boards slightly smaller than the mainline boards

* update changelog v0.0.2
2026-10-18 20:06:43 +02:00
owenrees a58a6504b4 V0.0.1 (#4)
* update documentation link

* remove superfluous tests

* add game example with subtitle custom header

* remove commented out code

* fix subtitle by making it a new line of smaller text within the title

* update changelog with v0.0.1
2026-06-29 21:18:10 +02:00
owenrees 6f74db087e adjust tests and add test for comparing movemap of marshalled json 2026-05-28 16:28:43 +02:00
owenrees 79155255f6 Transfer code (#1)
* copy project root files

* import previously created code and rename where needed

* fix license and lint

* main is now just a JS wrapper

* minified main.cjs rather than copying to a newly named file
2026-05-28 12:35:03 +02:00
owenrees 1561720e5f initial commit 2026-05-28 09:16:15 +02:00