Commit Graph
15 Commits
Author SHA1 Message Date
Zhengshou Lai 322cd31bb2 style(template): enforce no first-line indent for table styles; default PDF indent 2em
- Set first-line-indent: 0 on all TABLE styles in default/review docx templates
  to prevent table cells from inheriting Normal paragraph indentation.
- Set default PDF template body first-line-indent to 2em (all: true).
- Change default PDF bookmark depth from 1 to 2 in CLI and build_pdf.
- Extend docx post-processing to copy Normal style typography from reference-doc,
  format headings/references, and handle BodyText paragraphs.
2026-06-09 14:38:35 +08:00
Zhengshou Lai 334ff647fc feat(api): extract pure API clients for image generation and TTS
- Add bin/api/ package with generate_image() and synthesize_tts()
- Refactor bin/commands/image.py to call bin.api.image.generate_image
- Refactor bin/commands/voice.py to call bin.api.voice.synthesize_tts
- API layer is free of Click CLI dependencies, usable by external scripts
2026-06-03 23:43:28 +08:00
Zhengshou Lai ac605c2c17 feat(mytoolkit): add voice command and improve docx post-processing
- Add voice/TTS CLI command via Volcengine WebSocket API
- Inject suppressAutoHyphens into all docx paragraphs in post-process
- Apply post-process fixes to all templates (not just default)
- Update review template: Cambria+SimSun fonts, 11pt for headings
- Sync default/review docx template formatting
2026-05-27 16:17:47 +08:00
Zhengshou Lai 7600b558cd style(template): fix Heading3-5 font sizes and update demo
- Heading3: 12pt, Heading4-5: 11pt
- Update demo.md with comprehensive elements (title, headings, tables, lists, quotes, math)
- Regenerate demo.docx with auto post-processing
- Add python-docx dependency (used for template creation)
2026-05-19 23:08:37 +08:00
Zhengshou Lai 149dcac97e style(template): add explicit no-indent to Title and Heading styles 2026-05-19 22:59:29 +08:00
Zhengshou Lai c40dc74b73 style(template): set Heading1-5 spacing before to 6pt 2026-05-19 22:55:47 +08:00
Zhengshou Lai 00aab61144 style(template): set Normal paragraph spacing before to 6pt 2026-05-19 22:52:59 +08:00
Zhengshou Lai 52c96c50fe style(template): set Title/Heading1-5 fonts to Cambria+SimSun, no indent 2026-05-19 22:50:07 +08:00
Zhengshou Lai 516bff335d style(template): set all margins to 2.54cm 2026-05-19 22:36:04 +08:00
Zhengshou Lai e6742d4e9e style(template): rewrite default docx template from scratch
- Create clean template with python-docx + lxml
- Normal: Cambria+SimSun, 12pt, firstLine=480, justify
- Title: centered
- Heading 1-5: left-aligned
- docDefaults: sz=24, kinsoku=1
2026-05-19 22:28:09 +08:00
Zhengshou Lai f9066d5bd8 style(template): change font size to 12pt and fix namespace prefix
- Normal style: sz 22→24 (11pt→12pt)
- docDefaults: sz/szCs 22→24
- Fix namespace prefix consistency (ns0→w) in styles.xml
2026-05-19 22:05:23 +08:00
Zhengshou Lai 4fd4477a27 style(template): update default docx with kinsoku, three-line tables and spacing
- Enable kinsoku for Chinese punctuation wrap control
- Set first-line indent to 2 characters (304800 EMU)
- Configure three-line table borders (1.5pt top/bottom, 0.75pt header)
- Add 6pt spacing after tables
- Use Cambria + SimSun font pairing
2026-05-19 21:52:20 +08:00
Zhengshou Lai 11f5635c94 feat(template): themed blockquotes, references, chapter-based numbering for textbook
- Add themed blockquote styles (课堂小实验, 关键洞察, etc.) via quote block
- Add #references() wrapper for bibliography formatting
- Implement chapter-based figure/table numbering (1-1, 2-1, ...)
- Start each chapter on a new page (except first)
- Increase list spacing to match long-form reading rhythm
- Fix first-line indent to apply on all paragraphs
2026-05-08 13:53:31 +08:00
Zhengshou Lai 9eafd7577f style(templates): increase list spacing for readability
Raise list/enum spacing to be ≥ leading line height across default
and manual templates, improving visual separation between items.
2026-05-08 13:53:24 +08:00
Zhengshou Lai 2791a785ff feat: add document conversion templates
Add md-to-pdf and md-to-docx templates for mytoolkit convert command.
Migrated from workspace/templates.
2026-05-06 00:11:37 +08:00