convertor/package.json
Your Name a06df23b1d feat: 新增 OCRmyPDF 轉換引擎 (v0.1.14)
## 新功能
- OCRmyPDF 轉換引擎:將掃描版 PDF 轉換為可搜尋 PDF
  - 支援 7 種語言:en, zh-TW, zh, ja, ko, de, fr
  - 與 PDFMathTranslate 風格一致的 UI 格式 (pdf-<lang>)
  - 自動偵測頁面方向並旋轉
  - 自動校正傾斜
  - 跳過已有文字層的頁面
  - 詳細的 5 階段處理進度輸出

## 建置
- Dockerfile:安裝 ocrmypdf 與 Tesseract OCR 語言包

## 文件
- 更新 OCR 功能文件
- 文件目錄結構改為中文名稱

## 測試
- 修復 BabelDOC 和 PDFMathTranslate 測試的 OCR mock
- 所有 345 個測試通過
2026-01-23 16:28:33 +08:00

65 lines
2 KiB
JSON

{
"name": "convertx-frontend",
"version": "0.1.14",
"scripts": {
"dev": "bun run --watch src/index.tsx",
"hot": "bun run --hot src/index.tsx",
"format": "npm-run-all 'format:*'",
"format:eslint": "eslint --fix .",
"format:prettier": "prettier --write .",
"build:js": "tsc",
"build": "bun x @tailwindcss/cli -i ./src/main.css -o ./public/generated.css && bun run build:js",
"lint": "npm-run-all 'lint:*'",
"lint:tsc": "tsc --noEmit",
"lint:knip": "knip",
"lint:eslint": "eslint .",
"lint:prettier": "prettier --check .",
"test": "bun test",
"test:e2e": "bun test tests/e2e/",
"test:e2e:quick": "bun test tests/e2e/converters.e2e.test.ts",
"test:e2e:matrix": "bun test tests/e2e/format-matrix.e2e.test.ts --timeout 300000",
"test:e2e:translation": "bun test tests/e2e/translation.e2e.test.ts --timeout 600000",
"test:e2e:comprehensive": "bun test tests/e2e/comprehensive.e2e.test.ts --timeout 600000"
},
"dependencies": {
"@elysiajs/html": "^1.4.0",
"@elysiajs/jwt": "^1.4.0",
"@elysiajs/static": "^1.4.7",
"@kitajs/html": "^4.2.11",
"@sinclair/typebox": "^0.34.47",
"elysia": "^1.4.22",
"sanitize-filename": "^1.6.3",
"tar": "^7.5.6"
},
"module": "src/index.tsx",
"type": "module",
"bun-create": {
"start": "bun run src/index.tsx"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@kitajs/ts-html-plugin": "^4.1.3",
"@tailwindcss/cli": "^4.1.18",
"@tailwindcss/postcss": "^4.1.18",
"@types/bun": "latest",
"@types/node": "^24.10.9",
"@typescript-eslint/parser": "^8.53.1",
"eslint": "^9.39.2",
"eslint-plugin-better-tailwindcss": "^3.8.0",
"globals": "^17.0.0",
"knip": "^5.82.1",
"npm-run-all2": "^8.0.4",
"postcss": "^8.5.6",
"prettier": "^3.8.1",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.1"
},
"trustedDependencies": [
"@parcel/watcher",
"@tailwindcss/oxide",
"oxc-resolver"
],
"license": "AGPL-3.0"
}