rm-hacks icon indicating copy to clipboard operation
rm-hacks copied to clipboard

Feature Req: Word count

Open angsting opened this issue 2 years ago • 4 comments

Hi, thank you for all your hard development work!

I often use the rM with the type folio for writing sprints with friends (everyone writes for a period of 15-60 minutes, and then everyone compares word counts), and one thing that would be invaluable to me would be the ability to do a wordcount on the current (typed) page. This wouldn't require OCR, just reading the current text on the current page into a giant plaintext string and counting the number of words present. At the moment, we have to email the file to ourselves after each sprint and paste into a separate doc to get that metric.

I realize this might be difficult, depending on how the rM stores its text pages, but thought I'd ask just in case :)

angsting avatar Jan 08 '24 05:01 angsting

Due to this adding feature creep, it might be a better option to explore the way the files are stored, and writing a simple script to count the words yourself over SSH. At which point, #61 would better solve your requirement, by allowing you to integrate this script into the UI.

You can find some outdated information about the files format here: https://remarkable.guide/devel/device/documents.html (Yes, I know it's a link to a page with another link, in the future it'll be updated to actually contain data, so it's better to use that link for future people who find this issue.

Eeems avatar Jan 08 '24 05:01 Eeems

This is the №1 feature that's keeping me from ditching toltec.

I tried a bunch of parsers, but as far as I can tell, there is no lines format parser that can handle notebooks with text, so more reverse engineering has to be done for @Eeems's suggested approach. Specifically for https://github.com/Lyr-7D1h/remarkable-lines, I am given information that blocks are not the expected size.

If the plaintext can be fetched in the decompiled xochitl and passed to wc -w, I think that's worth the feature creep, tbh. This is information that could be hidden when the type folio is not attached, and I think it's a useful feature for anyone who wants to write on their remarkable.

data-flux avatar Jan 22 '24 10:01 data-flux

I want this feature so much that I would be willing to put a bounty on it and pay for someone to develop it. I'll pledge £150 to anybody who can develop a word count feature.

AdamWrighter avatar Feb 22 '24 14:02 AdamWrighter

I would give my firstborn for this feature!

gcbriel avatar Apr 16 '24 17:04 gcbriel