Currently, the /synthesize_handwriting endpoint only returns the final generated SVG file. While this is useful for integrating the functionality into applications, it can be useful for users to preview the output before downloading or processing the SVG.
Proposed Solution
This issue proposes adding a new endpoint specifically for previewing the synthesized handwriting. This endpoint could be named something like /preview_handwriting.
The preview endpoint would function similarly to /synthesize_handwriting but with a different response format. Instead of returning an SVG file, the response should be a plain text representation of the generated handwriting. This text could include:
The original text with added line breaks.
Special characters replaced.
Any other relevant information about the formatting.
Description
Currently, the
/synthesize_handwriting
endpoint only returns the final generated SVG file. While this is useful for integrating the functionality into applications, it can be useful for users to preview the output before downloading or processing the SVG.Proposed Solution
This issue proposes adding a new endpoint specifically for previewing the synthesized handwriting. This endpoint could be named something like
/preview_handwriting
.The preview endpoint would function similarly to
/synthesize_handwriting
but with a different response format. Instead of returning an SVG file, the response should be a plain text representation of the generated handwriting. This text could include: