Fix text-to-speech paragraph handling#1259
Closed
totallygeekdom wants to merge 5 commits intoReadYouApp:mainfrom
Closed
Fix text-to-speech paragraph handling#1259totallygeekdom wants to merge 5 commits intoReadYouApp:mainfrom
totallygeekdom wants to merge 5 commits intoReadYouApp:mainfrom
Conversation
Exposes content://me.ash.reader.widget.articles/{widgetId} so external
processes (e.g. SmartSpacer) can query unread articles for a given widget
ID. Returns id, feed_name, title columns capped at 15 rows, backed by the
existing WidgetRepository/DataSource config storage.
https://claude.ai/code/session_015nuC2FAJoQJx3qSwMGc7E3
Html.fromHtml() converts <br> to \n and <p>/headings to \n\n, so the
previous split("\n") was breaking mid-paragraph at every <br>. Now splits
on two or more consecutive newlines (paragraph boundaries) and collapses
any remaining inline \n into spaces, so each TTS utterance is a full
paragraph.
https://claude.ai/code/session_015nuC2FAJoQJx3qSwMGc7E3
Add ArticleWidgetContentProvider and fix TTS paragraph batching
The previous fix (split on \n{2,}) still split mid-paragraph when RSS
content wrapped each sentence in its own <p> tag, because Html.fromHtml
emits \n\n at every <p> boundary.
Now collapses all whitespace (including paragraph newlines) into a single
space and only splits when the text exceeds the TTS engine's max input
length (4000 chars), splitting at the last word boundary before the
limit. For typical RSS descriptions this means one utterance per
article read.
https://claude.ai/code/session_015KrBpHUWpJWmDncbCkxd3f
Adds a 'date' column (Long, epoch milliseconds) to the content provider. Maps article.date.time from the domain Article into the widget Article data class and passes it through to the MatrixCursor addRow call. https://claude.ai/code/session_015KrBpHUWpJWmDncbCkxd3f
Author
|
i addidently did the pr here instead of my fork my bad im so sorry. |
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.
No description provided.