text_image fills placeholders from values #480

Merged
jqueuniet merged 1 commit from feat/text-image-values into main 2026-11-01 20:13:50 +01:00
Owner

Closes #477.

text_image takes a values option: each {name} placeholder ({hero_name}, {macro_15}) is drawn with its entry, blank without one. Other { still fail with NoGlyph. wasm TextImageOptions { values?: Record<string, string> }, Python text_image(text, values=None).

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Closes #477. `text_image` takes a `values` option: each `{name}` placeholder (`{hero_name}`, `{macro_15}`) is drawn with its entry, blank without one. Other `{` still fail with `NoGlyph`. wasm `TextImageOptions { values?: Record<string, string> }`, Python `text_image(text, values=None)`. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
feat(convert): text_image fills placeholders from values
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 28s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (pull_request) Successful in 20s
CI / stable (pull_request) Successful in 57s
CI / python bindings (3.11) (pull_request) Successful in 27s
CI / python bindings (3.11) (push) Successful in 27s
CI / audit (push) Successful in 19s
CI / stable (push) Successful in 57s
4cd4c915b5
{hero_name}, {macro_N}: each {name} takes its entry in the values
option, blank without one.

Closes #477

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet deleted branch feat/text-image-values 2026-11-01 20:13:50 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!480
No description provided.