← ClaudeAtlas

aio-epub-analyzelisted

Pre-translation analysis for EPUB books — analyze writing style, characters, tone, and build glossary before translating.
aiocean/claude-plugins · ★ 3 · AI & Automation · score 65
Install: claude install-skill aiocean/claude-plugins
# EPUB Analyze — Pre-translation Intelligence Phân tích sách TRƯỚC khi dịch: nhận diện nhân vật, writing style, tone, key terms → tạo guideline + glossary chính xác. > **Khi nào dùng**: LUÔN chạy trước `aio-epub-translate` cho sách mới. Guideline từ phân tích thực tế tốt hơn hẳn template tự động. ## API Setup ```python import json, urllib.request, os BASE = "https://read-api.aiocean.dev/ListBooks.v1.BookService" KEY = os.environ.get("AIO_EPUB_API_KEY", "duocnv") def api(method, body): data = json.dumps(body).encode('utf-8') req = urllib.request.Request(f"{BASE}/{method}", data=data, headers={ "Content-Type": "application/json", "X-License-Key": KEY }) with urllib.request.urlopen(req) as resp: return json.loads(resp.read()) ``` ## Workflow ### 1. Lấy thông tin sách, TOC, và thống kê ```python book = api("GetBook", {"bookId": BOOK_ID}) b = book["book"] print(f"Title: {b['title']}") print(f"Author: {b['author']}") print(f"Language: {b['language']}") # Book stats — word count, chapter sizes stats = api("GetBookStats", {"bookId": BOOK_ID}) print(f"Chapters: {stats['totalChapters']}") print(f"Total words: {stats['totalOriginalWords']}") print(f"Longest: {stats['longestChapter']['filePath']} ({stats['longestChapter']['wordCount']} words)") print(f"Shortest: {stats['shortestChapter']['filePath']} ({stats['shortestChapter']['wordCount']} words)") toc = api("GetTableOfContent", {"bookId": BOOK_ID}) chapters = [] def collect_chapters(it