convert_doc
Converts Word documents (.docx) into structured text with LaTeX math formulas and image placeholders. Outputs text and image paths for further processing.
Instructions
Word(.docx / docx伪装的.doc)→ 结构化文本 + 题图清单。确定性 XML 解析(OMML→$LaTeX$),非 OCR。
产出文本里:数学公式=$LaTeX$;图=〖图:rId〗占位(与 images 的 rid 对应)。 下一步:文本喂 parse_paper_text 确定性拆题;images[].local_path 喂 upload_image 传 OSS。 参数: doc_path 卷子绝对路径;batch 批次名(图文件名前缀+文本落盘名,空=文件名主干)。 返回: {ok, text, paras, text_path, images:[{rid, local_path}]};真 OLE .doc → {ok:false, reason:"另存为 docx"}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch | No | ||
| doc_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||