Doc To DOCX

Pure-Python legacy Word (.doc) → .docx converter. Parses the Word 97/2000/2002/2003 binary format (and the Word-97-compatible output written by WPS Office) directly — no LibreOffice, no Microsoft Word, no textutil, no antiword/catdoc, no external binaries of any kind. Only olefile + python-docx + lxml. Triggers when: Converting a .doc file to .docx while preserving text, fonts (incl. 宋体/黑体/仿宋 Chinese fonts), sizes, bold/italic/underline, colours, paragraph alignment/indentation/spacing/line-spacing, page setup (A4, margins, orientation), the Normal/Heading style defaults and tables — "把 doc 原样转成 docx,但不装 Word、不用 LibreOffice". Commands: - /doc2docx <文件.doc> [-o 输出.docx] - Convert one .doc to .docx - /doc2docx batch <目录> [-o 输出目录] - Batch-convert every .doc in a directory - /doc2docx inspect <文件.doc> - Print structure: FIB, fonts, paragraphs, text preview - /doc2docx check <输出.docx> [--against 原.doc] - Verify the produced .docx and diff text against the original - /转docx <文件> - 中文命令别名(单文件转换) Capabilities: OLE2/

cycleuser 0e38b9e 9 files · 101.0 KB Updated

File contents

cycleuser/skills/tree/main/skills/doc-to-docx commit 0e38b9e0a4

Frequently asked questions

npx skillmds@latest add cycleuser/doc-to-docx