11-02-2020, 11:01 AM | #16 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We patch Qt already for the installer packages we provide. I'm not opposed to patching this as well (after the new year). Even if Linux repo versions of Sigil might not get the benefit, it's not like the limitation is going to affect a ton of people.
Not that I'm trying to discourage you from attempting the URLSchemeHandler approach, or anything. |
11-02-2020, 11:41 AM | #17 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I think if we modify MainUI MainApplication to keep a hash table of file path concatenated with a random uuid as a key to the pre-processed file contents, and create a sigil::scheme url with that random uuid attached as a query string, then the URLSchemeHander should always be able to use qApp to get the MainApplication to get what we need (sorta how dark and light mode setting and detection is handled on macOS), then we should be able get something to work.
Should be a "fun" exercise starting the new year! If it ends up being too messy, I say we just tweak that constant to 4mb and call it a day! |
11-02-2020, 08:13 PM | #18 |
Hedge Wizard
Posts: 800
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
|
11-03-2020, 02:21 PM | #19 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I played around with this today just for the fun of it. I have something working at least on macOS. It is an invasive change. So this one is not for our upcoming release. But it is doable.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum file size for HTML files within EPUB? | Psymon | ePub | 13 | 08-29-2016 02:22 PM |
Touch Is there a maximum epub file size limit? | kefira | Kobo Reader | 7 | 04-12-2015 07:36 PM |
Maximum size of HTML file for Sony | AlexBell | ePub | 9 | 10-07-2010 03:32 AM |
RTF file size limit on the Reader? | Aerlock | Sony Reader | 11 | 02-22-2007 04:01 PM |