Commit Graph
4 Commits
Author SHA1 Message Date
RocandJin Hai 8b75e86b5f fix: support .wmf file extension case-insensitively and remove duplicate avi (#15498)
### Summary

Fix `.wmf` file type detection by matching lowercased filename
normalization in both Python and Go extension checks.

This PR also removes a duplicate `avi` entry from the Python visual file
type regex.

---------

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-27 15:58:55 +08:00
Yash Raj PandeyandJin Hai 71413c9fc6 fix: classify .wmf files as VISUAL instead of OTHER (#15822)
Signed-off-by: Yash Raj Pandey <yashpn62@gmail.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-08-25 11:12:45 +08:00
Daniil Sivak 60ad32a0c2 Feat: support epub parsing (#13650)
Closes #1398

### What problem does this PR solve?

Adds native support for EPUB files. EPUB content is extracted in spine
(reading) order and parsed using the existing HTML parser. No new
dependencies required.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

To check this parser manually:

```python
uv run --python 3.12 python -c "
from deepdoc.parser import EpubParser

with open('$HOME/some_epub_book.epub', 'rb') as f:
  data = f.read()

sections = EpubParser()(None, binary=data, chunk_token_num=512)
print(f'Got {len(sections)} sections')
for i, s in enumerate(sections[:5]):
  print(f'\n--- Section {i} ---')
  print(s[:200])
"
```
2026-03-17 20:14:06 +08:00
Liu An 7715bad04e refactor: reorganize unit test files into appropriate directories (#13343)
### What problem does this PR solve?

Move test files from utils/ to their corresponding functional
directories:
- api/db/ for database related tests
- api/utils/ for API utility tests
- rag/utils/ for RAG utility tests

### Type of change

- [x] Refactoring
2026-03-04 11:02:56 +08:00