Book on the wrist #6569
Replies: 1 comment
-
Posted at 2022-10-11 by @halemmerich I think the customizer will not be a problem, 700k in a variable in a browser should be normal stuff. Imagine images etc. beeing loaded into variables. Posted at 2022-10-11 by rigrig
If you upload it as a plain text file, you can use Posted at 2022-10-11 by @thyttan Great, thank you for your insight @halemmerich and @rigrig! Very helpful :) I might come back for more ;) Posted at 2022-10-12 by @gfwilliams That sounds like a great idea! Yes, the app loader should handle large files (and their upload) just fine. To test I think you could also upload manually with the Web IDE. As @rigrig mentioned, Posted at 2022-10-12 by @thyttan Thanks @gfwilliams! I tested Posted at 2024-01-22 by user140377 @thyttan Did you ever finish this? Posted at 2024-01-22 by @thyttan Sorry to say I didn't! Feel free to use and build on the code. If I start working on it again I'll leave a note here first. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-10-10 by @thyttan
Hi,
I'm creating a kind of e-book reader for the Bangle. The app preloaded with a small part of Wuthering Heights is on my app loader (edit: not anymore). The app customizer is only a placeholder for now, just click upload to install the app.
The code is here.
I want the user to be able to get a .txt version of a book from https://www.gutenberg.org/ (e.g. the attached wuthering-heights.txt which is 700 kB) and upload it to the app cusomizer where some preprocessing will be made before the app and book is loaded to the Bangle.
I'm not sure how to properly upload the book .txt-file and read it into a variable for manipulation. Is there a limit for how much memory a variable can occupy on the app customizer?
I think I need to divide the book up in chunks that the app can manage without hitting ram limits. My first thought was to have a JSON-file for these chunks and read them into a variable when needed, but I suspect the size of the JSON-file would be a problem in and of itself? So what I really need to do would be dividing the book up in several files instead (book1, book2, etc.). Does that sound right?
If anyone can help with some clarification on this it would be much appreciated! :)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions