feat: add OCR language extension configuration and documentation

- Introduced `compose.ocr-languages.yml` for installing additional Tesseract OCR language packs during container startup.
- Updated documentation to include new OCR language extension options and usage scenarios.
- Enhanced existing documentation with references to the new OCR language extension guide.
- Improved test coverage for the deark converter and formats, ensuring accurate format handling and error management.
- Refactored code to streamline file system operations and improve readability.
This commit is contained in:
Your Name 2026-01-24 00:16:32 +08:00
parent 737e925ac7
commit a4489f4945
11 changed files with 766 additions and 90 deletions

View file

@ -75,6 +75,17 @@ ConvertX-CN 內建兩個 PDF 翻譯引擎:
> 💡 BabelDOC 額外支援 `md-<lang>``html-<lang>` 格式
### 與 OCRmyPDF 語言差異
| 功能 | 翻譯引擎 | OCRmyPDF |
| -------- | ------------ | -------------- |
| 支援語言 | 15 種 | 8 種(可擴展) |
| 用途 | 翻譯目標語言 | OCR 文字辨識 |
翻譯引擎支援 15 種目標語言,而 OCRmyPDF 預設只內建 8 種 OCR 語言。
如需擴展 OCRmyPDF 語言支援,請參考 [OCR 功能 - 新增語言](OCR.md#新增語言)。
---
## 輸出格式