fix: resolve 285-character truncation in ydotool typing#22
Open
Kholtien wants to merge 1 commit intojakovius:mainfrom
Open
fix: resolve 285-character truncation in ydotool typing#22Kholtien wants to merge 1 commit intojakovius:mainfrom
Kholtien wants to merge 1 commit intojakovius:mainfrom
Conversation
VoxD was truncating transcriptions at exactly 285 characters due to ydotool command-line argument length limitations. Implemented automatic text chunking for strings exceeding 250 characters. Changes: - Add intelligent text chunking for long transcriptions - Add configurable chunk size (default: 250 chars) - Add configurable inter-chunk delay (default: 50ms) - Maintain existing behavior for short text (<250 chars) - Add proper error handling and logging - Add comprehensive tests for chunking behavior - Update documentation with new typing options Tested with transcriptions up to 2000+ characters with no character loss. Short text continues to use the fast, non-chunked method automatically. Resolves truncation issue where long dictations (e.g., academic content) would cut off mid-word at 285 characters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #20
VoxD was truncating transcriptions at exactly 285 characters due to ydotool command-line argument length limitations. Implemented automatic text chunking for strings exceeding 250 characters.
Changes:
Tested with transcriptions up to 2000+ characters with no character loss. Short text continues to use the fast, non-chunked method automatically.
Resolves truncation issue where long dictations (e.g., academic content) would cut off mid-word at 285 characters.