09-04-2021, 11:34 PM | #16 | |
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
Quote:
Copy red underline from <a, replace yellow underline of <p with it and delete the X red, then we have <p with blue underline. This one will show in-page footnotes. Since I notice the red underline of <a exists in <p as well, I can just cut red underline of <p and replace yellow underline of <p with it, then we have the same final <p with blue underline (picture 2). This way we don't have to look at <a at all. Are these all right? |
|
09-05-2021, 02:32 AM | #17 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
@poire-z Mentioned that it'll suffice to remove the ID from the P. But I'd already expanded on my regex above. Luckily it didn't take very long.
For example, here in the calibre ebook editor: Find: Code:
<p id="([a-z0-9]*)"( class="footnotes?"><a href="[a-z0-9]*\.html#[a-z0-9]*" id="([a-z0-9]*)") Code:
<p \3\2 All text files I think that's correct, yes. The only problem is you don't want to be doing that 600 times. Last edited by Frenzie; 09-05-2021 at 02:35 AM. |
Advert | |
|
09-05-2021, 03:27 AM | #18 | ||
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
Quote:
But I don't know why this trick doesn't work on chapter titled "Mvouhvv Igvsj-Kamq" (can only find it using Ctrl+F, the table content doesn't show the same name). Ironically, it's where I'm reading. Edit: I found the reason. The <a... of this chapter goes like this: Quote:
Last edited by xversion1; 09-05-2021 at 04:03 AM. |
||
09-05-2021, 04:22 AM | #19 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Probably something like this:
Code:
<p id="([^"]*)"( class="footnotes?"><a href="[^"]*" id="([^"]*)") |
09-05-2021, 05:18 AM | #20 |
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
|
Advert | |
|
09-07-2021, 01:04 AM | #21 | |||||
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
There's another strange problem. After I did what Frenzie said, which is this:
Quote:
Quote:
This is a strange behavior (first open OK, second open everything broken). I tested several times to make sure it's not something happens when the book being sent. I don't hope to fix this one. I think it's not easy as the original problem. I just think I should inform it just in case. Here's the book: https://www.mediafire.com/file/hltg9...ange.epub/file Last edited by xversion1; 09-07-2021 at 01:07 AM. |
|||||
09-08-2021, 04:07 AM | #22 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Thanks! That'll be fixed in https://github.com/koreader/crengine...c5d057156826a9
See https://github.com/koreader/koreader...ment-914061568 |
09-08-2021, 08:58 AM | #23 | |
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
Quote:
|
|
09-08-2021, 09:20 AM | #24 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
The cache failed to do the same thing as the regular code for that specific scenario.
|
09-10-2021, 06:13 AM | #25 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
1. As far as the footnotes are concerned, I noticed that you have 1204 "footnote" and 7 "footnotes". Is there any reason for this?
2. I also got report about backlink broken link for example for this chapter (the same for each of the 1204 + 7 footnote(s)). You should check what it's all about. Code:
Processing part0020.html ... "footnote" class found in part0020.html. Chapter backlink broken [fn ref in other file not found]: mah0000116! Chapter backlink broken [fn ref in other file not found]: mah0000117! Chapter backlink broken [fn ref in other file not found]: mah0000119! Chapter backlink broken [fn ref in other file not found]: mah0000121! Chapter backlink broken [fn ref in other file not found]: mah0000122! Chapter backlink broken [fn ref in other file not found]: mah0000123! Chapter backlink broken [fn ref in other file not found]: mah0000154! Last edited by roger64; 09-10-2021 at 06:20 AM. |
09-10-2021, 11:34 AM | #26 | |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
tl;dr It's just badly structured. Having a container around the footnotes with class footnotes would make sense, this does not. |
|
09-17-2021, 08:41 AM | #27 |
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
@Frenzie
Is there any way I can apply a quick fix format broken issue? Can't wait for update. Now it happens to even the unfixed file. I have to delay reading since I can't see notes anymore. |
09-17-2021, 03:56 PM | #28 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
In the hamburger menu (top right) → update you can set the channel to develop and then update, or you can download the nightly build yourself from http://build.koreader.rocks/download/nightly/
|
09-17-2021, 09:05 PM | #29 | |
Enthusiast
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
|
Quote:
Last edited by xversion1; 09-18-2021 at 12:16 AM. |
|
09-18-2021, 03:47 AM | #30 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Depends a bit on how you define back. You can't downgrade, but if you put it back to stable it won't offer to upgrade until the next one's released.
Anyway, the nightly you just installed should be identical to 2021.09 for all intents and purposes. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
landscape set to show 2 pages but page turns still at 1 page at a time | badbob001 | Server | 3 | 07-22-2020 03:01 PM |
Kindle doesnt show other files in library (epub...) | nivekkumar | Kindle Developer's Corner | 1 | 02-10-2020 12:46 PM |
Show difference between ePUB files | LGN | Sigil | 12 | 01-02-2014 10:32 AM |
ePub conversion not adding page breaks on separate HTML files | neonbible | Conversion | 1 | 11-06-2012 11:36 AM |
Solution: Cropping Double Page PDF Files into One-Page PDF files | kgydkgyd | 4 | 06-06-2011 11:45 AM |