_docx_has_omml
Detect whether a DOCX contains OMML equations so formula-bearing files route to Word COM for accurate rendering, while formula-free files use LibreOffice.
Instructions
检测 docx 是否含 OMML 公式(word/document.xml 里查 <m:oMath)。
2026-10-24:LibreOffice 对 OMML 的 run 字号(m:r/w:rPr/w:sz)完全忽略,
公式全部按 Math 组件默认基准字号渲染(LO Bug 32419,多年未修)——
含公式的 docx 用 LO 转 PDF,公式字号/溢出判断全部失真。
含公式 → 路由 Word COM(真渲染);无公式 → LO 照旧(快)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |