Repository navigation
Word Hunter 0.2.7.4
·
79 commits
to main
since this release
New Features
- Library Archive: Added the ability to archive/unarchive books. Introduced a new status filter (Active / Archived / All) in the library toolbar. Archived books are dimmed, tagged, and the state is profile-scoped.
- Text-Specific Vocabulary Filter: Added a "Word source" dropdown in the vocabulary view to filter words by specific texts. Powered by a new tokenization-based index (
text-vocab.js) supporting multi-word phrases. - Reader to Vocabulary Shortcut: Added a "Słówka" button in the reader toolbar that opens the vocabulary view pre-filtered to the current text.
- Vocabulary Export (TXT / Anki TSV): Export buttons added to the vocabulary toolbar, respecting current search queries, status, and source filters. Anki export generates TSV files (word, translation, example/note). TXT export generates one word per line. Files are saved via a native dialog with auto-generated names.
- Last-Read Book Resume: Pressing the reader nav button or the
Rshortcut reopens the last-read book for the current learning language. State persists via preferences. - Startup Update Checker: Added a non-intrusive update notification via the GitHub Releases API. Includes options to skip versions, disable permanently, or open the release page.
Data Safety & Reliability
- Atomic Vocabulary Saving:
vocab.jsonis now written to a temporary file and atomically renamed to prevent corruption during crashes or power loss. - Backup & Auto-Recovery: A
.bakcopy ofvocab.jsonis automatically maintained and recovered if the main file is corrupted. - Save Failure Retry: Save operations now retry up to 5 times with a backoff strategy on
PermissionError. - Save Debouncing: Concurrent save requests are coalesced to reduce race conditions.
- Synchronous XHR on Close: Ensures data is successfully sent before Qt destroys the web view.
- Server Payload Validation: Field types are strictly validated before writing, returning clear errors for malformed payloads.
- Safe SQLite Migration & Transactions: Legacy tables are dropped only after successful filesystem migration. Savepoints with rollback are used for preferences and hidden books.
- Synchronized Text Ordering: New text data is written to disk before old books are deleted to prevent data loss mid-sync.
- Immutability:
upsert_textpreserves the original dictionary during disk writes.
Improvements & Refactoring
- Codebase Cleanup: Massive refactoring and deduplication across the project.
- Flashcard UI: Improved card height, centering, overdue bar overlap, image upload UX, and added a
Ctrl+4shortcut. - EPUB Optimization: Replaced previous parser with regex-based EPUB stripping, resulting in a 7x speed increase.
- Graph Rendering: Implemented one-pass graph data calculation and added loading states for graphs, reader, and EPUB import.
- Word Dialog: Added shortcut badges, improved sorting, and ensured i18n completeness.
- Legacy Code Removal: Dropped the outdated CSV exporter and refactored the
webviewcomponent. - Proxy Auto-Save: Implemented deep proxy auto-save for application state and added unit tests for SM-2/FSRS.
Bug Fixes
- Critical Crashes: Fixed multiple path traversal bugs, data corruption vectors, and XSS vulnerabilities in the backend.
- Stats Calculation: Restored startup loading sequences. Book cards now instantly show known/learning/new percentages without requiring the book to be opened first.
- Frontend Fixes: Resolved
ReferenceErrorin books, missing relative import paths, profile detection logic, empty columns in CSV exports, CSS selector mismatches in the reader, missingawaitstatements causing stale content flashes, and pagination bugs in the discovery tab. - Backend Fixes: Patched race conditions in
get_store()(via double-checked locking) and TOCTOU races in port allocation.
v0.2.7.1
Bug Fixes
- Pagination: Deployed a hotfix for broken pagination in the library view.
- Shortcuts: Resolved a keyboard shortcut conflict between the Translator tab and text input fields.
v0.2.7
New Features
- Translator Tab: Dedicated offline neural translation tab with translate-as-you-type, source/target swapping, and auto-downloadable language packs.
- Graphs Tab: Added 9 canvas charts (due forecast, status donut, intervals, ease factor, repetitions, cards added, day-of-week, mature vs young, FSRS stability vs difficulty) and a GitHub-style contribution heatmap.
- Library Sorting: Added the ability to sort books by known/new/learning word counts, including a reverse sort toggle.
- Custom Image Selection: "Own image" upload option with
Ctrl+1/2/3badges for top suggestions. - Position-Aware TTS: Text-to-Speech now starts exactly from the clicked word instead of the beginning of the page.
Improvements & Refactoring
- Shortcut Overhaul: Remapped standard actions (
Tfor Translator,Wfor jumping to text,Gfor Graphs) to eliminate conflicts. - Settings Reorganization: Grouped configurations into Reader, Flashcards, Translator, and Dictionary sections.
- Session Persistence: Reader position is now saved when switching views, with a scroll restoration fallback.
- Events.js Refactor: Split the monolithic 1,335-line file into 5 manageable feature submodules.
Bug Fixes
- Fixed translator state synchronization.
- Resolved duplicate ID errors and graph clipping issues.
- Corrected layout overlap in the mature/young legend.
v0.2.6
New Features
- Offline AI Translation: Integrated Argos Translate (offline neural engine, ~100-200 MB per language; disabled by default).
- Configurable Anki Export: Export logic now defaults to "Learning" words, with user-selectable checkboxes.
Improvements & Refactoring
- Focus & Escape Management: Smooth unfocus for text boxes and image selection; eliminated auto-focus conflicts.
- Shortcut Badges: Visual hints (
E,N,I) added to the Reader word panel. - Reader Progress: The application now remembers the exact page location per book.
- Debouncing: Applied a 200ms debounce to vocabulary search.
- Localization Overhaul: Added full Japanese support and improved Ukrainian/Russian translations.
Security & Reliability
- Thread Safety: Implemented thread-local SQLite connections to prevent database corruption.
- EPUB Hardening: Added strict protection against ZIP bombs and XXE attacks.
Bug Fixes
- Data Persistence: Fixed a critical issue preventing vocabulary and custom texts from saving correctly.
v0.2.5
New Features
- Expanded Formats: Added support for EPUB e-books and subtitle files (SRT, VTT, ASS) to review vocabulary before watching media.
- Library Enhancements: Added custom tags, custom cover image uploads, and detailed completion percentage descriptions.
- FSRS Algorithm: Integrated the Free Spaced Repetition Scheduler as an optional alternative to SM-2.
- Learning Tools: Integrated YouGlish (with a dedicated shortcut) and a built-in dictionary for pronunciation and context lookup.
- Flashcard Overrides: Added the ability to manually input a translation during a review if the back of the flashcard is empty.
- Vocabulary Management: Enabled direct editing of translations within the database and improved status filtering.
- Data Management UI: Reorganized Local Data settings with detailed explanations for Exports, Imports, and Resets.
Improvements & Refactoring
- Upcoming Features (WIP): Added UI placeholders for the
Ctrl+Cquick-copy feature and a local auto-translate toggle.
Bug Fixes
- Fixed inaccuracies in library tracking for word mastery and reading progress.
Minor Updates (v0.2.2 - v0.2.4)
New Features
- High-Quality Audio: Integrated Microsoft Edge TTS as an optional setting for superior voice synthesis.
Improvements & Refactoring
- Core Performance: Resolved race conditions triggered by rapidly switching between books.
- Network Reliability: Updated proxy URLs to resolve connection errors with Wikipedia and Project Gutenberg.
- Cleanup: Removed hardcoded test books from the initial startup configuration.
Bug Fixes
- Fixed UI layout clipping affecting the "READ" text and SVG icons.
- Corrected visual bugs in the import miniature element and added auto-hide logic.
- Fixed image scaling behavior inside the Reader.
- Corrected an encoding typo in the Polish translation ("Źr?dło" → "Źródło").
v0.2.1 (Initial Major Release)
Word Hunter is a desktop application designed for learning foreign languages through immersion in authentic texts. It integrates an e-book reader with a spaced repetition system to facilitate natural vocabulary acquisition.
Features
- Library Module: Features graded readers from Project Gutenberg (A1–C1), custom text imports, metadata/content editing, and advanced progress metrics.
- Interactive Reader: Color-coded visual indicators for word states, on-click context panels, and adjustable TTS.
- Vocabulary Database: Automated word ingestion during reading, manual entry, status management, and contextual sentence extraction.
- Spaced Repetition: Flashcard review system utilizing the SM-2 algorithm with dynamic scheduling and bi-directional review modes.
- Discovery Panel: Direct catalog querying via the Gutendex API, Wikipedia/Wikinews integration, and automated topic-to-CEFR mapping. (Note: Tatoeba integration was deprecated in favor of long-form content).
- Customization: Light/Dark/Auto themes, typography adjustments, layout constraints, and configurable external dictionary routing.
- Localization: Full runtime support for 9 languages (Polish, English, German, Spanish, French, Italian, Ukrainian, Russian, Japanese).
Improvements
- Advanced Parsing: Added support for multi-word phrases and idiomatic expressions.
- Smart Suggestions: Implemented a blacklist to eliminate invalid separable verb combinations (prepositions, pronouns, numbers).
- Japanese Tokenization: Integrated TinySegmenter for accurate sentence/word breakdown.
- UI/UX: Decoupled hardcoded assets into a global i18n system, implemented text clamping for narrow columns, and fixed Wikipedia/Wikinews sorting logic.
Deployment & Architecture
- Binaries: Zero-installation portable executables for Windows (
Word.Hunter.exe) and Linux (Word.Hunter.Linux). - Data Storage: Local states persisted via
store.sqlite(metadata/library) andvocab.json(vocabulary) in user AppData/local directories. - License: Distributed under the MIT License.