Repository navigation
v0.1: Stable Bilingual ArXiv Reader
ReadPaper v0.1 — First Stable Release
ReadPaper translates arXiv papers from English to Chinese while preserving full LaTeX layout, equations, citations, figures, and tables. Powered by Gemini 3.0 Flash (1M context window).
✨ Key Features
- Whole-file translation: Each
.texfile → single Gemini API call (no text-node extraction, no batching) asyncio.gatherconcurrency: Parallel multi-file translation with configurable semaphore- AI compile fix loop:
latexmk -xelatexwith up to 3 Gemini-powered error fix retries - Dynamic compile timeout: 300s base + 60s per 10k output tokens (cap 1200s)
- Token usage tracking: Real-time Gemini API token display in frontend (In/Out breakdown)
- Concurrent translation guard: Prevents race conditions from duplicate submissions
- Split-view reader: Side-by-side bilingual PDF viewing (Next.js frontend)
- Cloud-native: Google Cloud Run + GCS deployment (
cloudbuild.yaml)
✅ E2E Verified With
| Paper | arXiv | Files | Total Tokens |
|---|---|---|---|
| DeepSeek-V3 | 2412.19437 | 4/4 | 15,923 |
| Qwen2.5 | 2412.15115 | 9/9 | 69,803 |
| GLM-5 | 2602.15763 | 11/11 | 65,262 |