## 1. 项目基础架构 - [x] 1.1 创建目录结构(core/、readers/、utils/、tests/) - [x] 1.2 更新 pyproject.toml,添加所有依赖分组 - [x] 1.3 创建 core/exceptions.py,实现自定义异常体系 - [x] 1.4 创建 readers/base.py,实现 Reader 基类 ## 2. 核心模块 - [x] 2.1 创建 core/markdown.py,迁移 Markdown 后处理函数 - [x] 2.2 创建 utils/file_detection.py,实现输入类型检测 - [x] 2.3 创建 core/parser.py,实现统一解析调度器 - [x] 2.4 创建 readers/__init__.py,显式注册所有 reader ## 3. DOCX Reader - [x] 3.1 创建 readers/docx/ 目录结构和 __init__.py - [x] 3.2 创建 readers/docx/docling.py - [x] 3.3 创建 readers/docx/unstructured.py - [x] 3.4 创建 readers/docx/markitdown.py - [x] 3.5 创建 readers/docx/pypandoc.py - [x] 3.6 创建 readers/docx/python_docx.py - [x] 3.7 创建 readers/docx/native_xml.py ## 4. XLSX Reader - [x] 4.1 创建 readers/xlsx/ 目录结构和 __init__.py - [x] 4.2 创建 readers/xlsx/docling.py - [x] 4.3 创建 readers/xlsx/unstructured.py - [x] 4.4 创建 readers/xlsx/markitdown.py - [x] 4.5 创建 readers/xlsx/pandas.py - [x] 4.6 创建 readers/xlsx/native_xml.py ## 5. PPTX Reader - [x] 5.1 创建 readers/pptx/ 目录结构和 __init__.py - [x] 5.2 创建 readers/pptx/docling.py - [x] 5.3 创建 readers/pptx/unstructured.py - [x] 5.4 创建 readers/pptx/markitdown.py - [x] 5.5 创建 readers/pptx/python_pptx.py - [x] 5.6 创建 readers/pptx/native_xml.py ## 6. PDF Reader - [x] 6.1 创建 readers/pdf/ 目录结构和 __init__.py - [x] 6.2 创建 readers/pdf/docling_ocr.py - [x] 6.3 创建 readers/pdf/unstructured_ocr.py - [x] 6.4 创建 readers/pdf/docling.py - [x] 6.5 创建 readers/pdf/unstructured.py - [x] 6.6 创建 readers/pdf/markitdown.py - [x] 6.7 创建 readers/pdf/pypdf.py ## 7. HTML Reader - [x] 7.1 创建 readers/html/ 目录结构和 __init__.py - [x] 7.2 创建 readers/html/downloader.py,迁移 URL 下载器 - [x] 7.3 创建 readers/html/cleaner.py,迁移 HTML 清理器 - [x] 7.4 创建 readers/html/trafilatura.py - [x] 7.5 创建 readers/html/domscribe.py - [x] 7.6 创建 readers/html/markitdown.py - [x] 7.7 创建 readers/html/html2text.py ## 8. 统一 CLI 入口 - [x] 8.1 创建 lyxy_document_reader.py,实现统一 CLI - [x] 8.2 集成 logging 模块 ## 9. 测试 - [x] 9.1 创建 tests/conftest.py - [x] 9.2 创建 tests/test_core/,测试核心模块 - [x] 9.3 创建 tests/test_readers/test_docx/ - [x] 9.4 创建 tests/test_readers/test_xlsx/ - [x] 9.5 创建 tests/test_readers/test_pptx/ - [x] 9.6 创建 tests/test_readers/test_pdf/ - [x] 9.7 创建 tests/test_readers/test_html/ - [x] 9.8 创建 tests/test_utils/,测试工具函数 ## 10. 文档 - [x] 10.1 重写 README.md