Repository navigation
v1.7.0
Doc Cleaner v1.7.0
功能版:EPUB 電子書輸出+表格提取大翻修。感謝 @stormchen 貢獻本專案第一個外部 PR(#5)!
新功能
- EPUB 輸出(@stormchen 貢獻):輸出格式三選一——Markdown、EPUB 電子書、雙格式。CLI 用
-f/--format {md,epub,both},App 內新增格式選卡(會記住選擇)。產出為標準 EPUB 3,可直接在電子書閱讀器開啟,零新依賴 - Windows 介面改進(同樣來自 #5):中文語系自動偵測涵蓋 Windows、語言切換鈕在 Windows 可用、連結以原生方式開啟
- 語言偏好記憶:手動切換的語言現在會記住(未切換過則維持跟隨系統)
表格提取大翻修(由真實對帳單實測驅動)
- 路由改革:含表格的 PDF 一律走內建表格引擎——裝有 Java/ODL 的環境不再把多欄對帳單交給會壓扁表格的外部偵測;純文字 PDF 維持 ODL 的版面還原,且輸出不再殘留
<br> - 碎片縫合:每筆交易被偵測成獨立小表的對帳單(實測 54 個碎片)自動縫回完整表格、找回真表頭
- 塌陷列重建:只有表頭有格線的表格(證券庫存類版面),資料列按表頭量測的欄界重新分欄——實測 15/15 股票列從「整行擠一格」還原成 12 欄
- 修復 JSONL 轉換回歸、epub-only 模式的預覽行為、EPUB 打包安全加固(XML 非法字元剝除、全插值跳脫)
已知限制
- Windows 版行為(語系偵測、開連結)僅經 CI 建置與單元測試驗證,未經實機測試——如遇問題請開 issue 回報
Feature release: EPUB e-book output plus a table-extraction overhaul. Thanks to @stormchen for the project's first external PR (#5)!
New Features
- EPUB output (contributed by @stormchen): choose Markdown, EPUB e-book, or both —
-f/--format {md,epub,both}in the CLI, a remembered format selector in the app. Standards-conformant EPUB 3 that opens directly in e-book readers, zero new dependencies - Windows GUI improvements (also from #5): Chinese locale auto-detection covers Windows, the language toggle is available on Windows, links open natively
- Language preference: a manual language toggle now persists (auto-detection remains until first toggled)
Table Extraction Overhaul (driven by real-statement testing)
- Routing: table-bearing PDFs always use the built-in table engine — Java/ODL machines no longer route multi-column statements through external detection that collapsed them; prose PDFs keep ODL's layout reconstruction, with
<br>tags stripped - Fragment stitching: statements whose rows were detected as dozens of independent single-row tables (54 fragments measured) stitch back into consolidated tables with their real headers
- Collapsed-row rebuild: tables with gridlines only around the header regain their columns via the header's measured boundaries — 15/15 stock rows restored from one-cell blobs to 12 columns
- JSONL conversion regression fixed; preview behavior for epub-only output; EPUB packer hardening (XML-invalid character stripping, escaped interpolations)
Known Limitations
- Windows behavior (locale detection, link opening) is verified by CI builds and unit tests only, not on-device — please open an issue if anything misbehaves