ImperialSquid / zotero-zotts

A Zotero plugin adding text to speech (TTS) functionality to various screens
GNU Affero General Public License v3.0
86 stars 1 forks source link

[FR]: Read selected text in library view #89

Open dobbse42 opened 2 months ago

dobbse42 commented 2 months ago

Checklist

Feature or improvement you want

The plugin is currently excellent and delightfully simple to use, but I have a somewhat niche use case that presents a problem which could probably be solved by a more generally useful feature. I typically use rss feeds in zotero to parse new issues of journals I follow and decide which papers to add to my library. Rather nicely, the plugin treats rss feeds identically to library items, so I can very easily just have the titles/abstracts read aloud. However, when reading the abstract of a feed item, the tts reader instead reads aloud much of the feed (including xml tags, urls, etc.) prior to reading the text of the abstract itself. While the fastforward/rewind feature currently in the roadmap would alleviate this issue, a likely simpler workaround for this is to allow users to select text to be read in the abstract pane (the same as the current functionality in the reader view).

Why should this be added?

No response

Screenshots / Drawings / Technical details

No response

ImperialSquid commented 2 months ago

Hi @dobbse42!

Thanks for the FR.

Yeah I was just looking at the code the other day and realised that I hadn't put in the ability to read selected text in the library tab, only reader tabs, whoops! That'll definitely be added soon!

Text substitutions might also help when those get added, since you'd be able to add your own that finds xml tag like substrings and replaces them with nothing, essentially removing them.

But in any case, I agree being able to read and speak selected text in the library tab is an important feature!