Skip to content

feat(docxgen): add .docx generator script for 修仙 novel plan with Base64 output#1

Open
cto-new[bot] wants to merge 1 commit intomainfrom
feat/docx-generate-xiuxian-base64-chunked
Open

feat(docxgen): add .docx generator script for 修仙 novel plan with Base64 output#1
cto-new[bot] wants to merge 1 commit intomainfrom
feat/docx-generate-xiuxian-base64-chunked

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Oct 23, 2025

Summary

Adds a Python script that generates a .docx novel plan for "校准修仙:我有太初器灵", outputs Base64 in transmission-safe chunks, and updates dependencies.

Details

  • Implements tools/generate_docx_xiuxian.py for creating a formatted .docx file with the required novel content, page setup, fonts, headings, and a cover.
  • Encodes the resulting .docx as Base64 and outputs it chunked for handling large payload limits.
  • Updates requirements.txt to include python-docx for document generation.
  • Document structure and content follow the provided specifications exactly, supporting easy inspection or batch document generation use cases.

Implements a Python tool to programmatically generate a richly formatted
A4 .docx file containing novel title, synopsis, main cast profiles, and
12-volume outline. Output is Base64-encoded and chunked for transmission.
Fonts, margins, headings, and cover page set to spec, with updateable TOC.

This change facilitates structured document sharing for planning, review,
or submission. Adds python-docx to requirements for dependency management.
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.

0 participants