Skip to content

Document genoffice DOCX round-trip tradeoffs - #150

Open
kiki830621 wants to merge 3 commits into
mainfrom
idd/143-genoffice-roundtrip-docs
Open

Document genoffice DOCX round-trip tradeoffs#150
kiki830621 wants to merge 3 commits into
mainfrom
idd/143-genoffice-roundtrip-docs

Conversation

@kiki830621

Copy link
Copy Markdown
Member

Summary

  • document genoffice docx-engine's no-op identity path, substring-splice edit path, and ZIP payload boundary
  • compare its guarantees and failure modes with ooxml-swift/macdoc and python-docx
  • record Word-canonical edge cases, render-fidelity limits, and practices worth borrowing
  • link the full research note from the reference index

Verification

  • git diff --cached --check before commit
  • pinned-source assertions: genoffice commit, TypeScript line/test counts, save/patch/test anchors
  • relative Markdown link targets verified
  • changed-content privacy and secret-pattern scan passed
  • docs-only change; no Swift or upstream TypeScript test suite was required or run

Refs #143

原 cli/FastOCR(→MeasureOCR)為研究儀器、非文件工具,遷至
~/Developer/bestOCR/repos/measureOCR;GitHub repo 同步改名
PsychQuant/measureOCR(舊 URL 轉址)。macdoc PDF 工具的 OCR 能力
不變——照常經 published package ocr-swift 取用。
Genspark 的 AI-native office suite,shallow clone 至 reference/genoffice/。
不是競品(無 MCP / CLI / public API,AI 綁自家雲端),但 packages/ 下的 engine
是純 TS、無 Electron 依賴,是唯一同時涵蓋 docx + xlsx + pptx + pdf 的現代
開源對照組。

三個對照點:
- xlsx 缺口(file-parse/src/xlsx.ts)——macdoc 唯一缺的 OOXML 主格式
- patch-narrowly round-trip(docx-engine/src/patch.ts)——與 ooxml-swift
  op log 同目標、不同解法的第三種參考(python-docx 直接 mutate、genoffice
  保留原 bytes 窄幅重生、macdoc op log 重放)
- pptx 功能廣度(smartart / custgeom / animation)——pptx-swift 擴充 checklist

含 Apache-2.0 / ee\/ 另授權的移植注意事項,以及 snapshot-sync 開發模式的
成熟度警語。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant