Commit Graph
5 Commits
Author SHA1 Message Date
Zhengshou Lai fc4dab1629 feat(convert): apply reference-doc typography in docx post-processing
Extend _fix_docx_postprocess to copy Normal style paragraph properties
from the reference doc, convert BodyText to Normal, add heading spacing
before/after, and format reference entries with hanging-style spacing.
2026-06-09 14:38:30 +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 32834613dd feat(convert): auto post-process default docx template
Replace _fix_docx_hr_indent with _fix_docx_postprocess that runs
automatically after pandoc when template=default. Fixes include:

- Three-line table borders (1.5pt top/bottom, 0.75pt header)
- Remove tblStyle to prevent Word from overriding borders
- Remove first-line indent inside table cells
- Add 6pt spacing before paragraphs following tables
- Apply HorizontalRule style to '---' paragraphs (no indent)
- Remove indent from empty paragraphs
- Inject HorizontalRule style into styles.xml
2026-05-19 23:04:51 +08:00
Zhengshou Lai c18d6d7d1e fix(convert): auto-load default template for md-to-docx
Remove the hard-coded `template != \"default\"` guard so that
the default reference docx template is loaded automatically
when no --reference-doc is explicitly provided.
2026-05-19 21:52:20 +08:00
Zhengshou Lai 3e4cf618a8 refactor: restructure mytoolkit with new subcommands and md-to-pdf improvements
- Add new subcommands: convert, preflight, server, templates, webpage
- Migrate config from bin/config.json to ~/.config/mytoolkit
- Fix expand_bookmarks to modify writer objects instead of reader
- Improve md_to_pdf with CJK bookmark support
- Update README and project metadata
2026-05-04 17:19:32 +08:00