05-16-2022, 05:02 AM | #16 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Indeed, we even say so in the comments.
This specific one could probably be more generically written as follows: Code:
.fn-ref a { -cr-hint: footnote-inpage; margin: 0 !important; } |
05-16-2022, 04:33 PM | #17 |
Wizard
Posts: 1,342
Karma: 4752930
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
I guess this is not calibre-designed / intended. I noticed calibre just takes all the proprietary classes and labels them calibre1, calibre2, etc sometimes. And it might get complicated if there were multiple such conversions before the suer finally finds the book
|
05-16-2022, 04:35 PM | #18 |
Wizard
Posts: 1,342
Karma: 4752930
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
@Frenzie,
Thank for for pointing to the code it is interesting to see so many different types of notes/footnotes. |
05-22-2022, 05:14 AM | #19 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Sorry, I am not sure if I follow - are you saying Calibre conversion makes it so that footnotes are not visible on the same page? Anyway, I uploaded a book with no conversion (attached), and footnotes are not showing on the same page either - but the html code is different too:
Code:
<sup><a id="przypis6_1" href="footnotes_39.xhtml#opis_przypisu6_1">[1]</a></sup> |
05-22-2022, 07:29 AM | #20 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Possibly usable with [id^=przypis] (starts with), but I doubt that's anything we'd want to cover by default.
|
05-22-2022, 07:46 AM | #21 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
That is no problem, I am still more interested in the books I had mentioned earlier, here and here. I reloaded the file from post 4 and footnotes are not displaying at the bottom of the page - for both cases, is it a matter of adding .przypis, przypis1, .fn-ref to a specific styletweak, and could it be done in the next build? Or is Calibre conversion breaking the view?
|
05-22-2022, 10:50 AM | #22 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
I forgot to add .przypis? I guess I forgot about it over Christmas. I'll do that one now. [Edit: no, I added that! Heh. But note that you have to explicitly enable classic classname footnotes in style tweaks iirc because they're not quite "proper".]
The .fn-ref not quite, note that I wrote ".fn-ref a" (But untested.) Last edited by Frenzie; 05-22-2022 at 10:53 AM. |
05-23-2022, 06:15 PM | #23 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Thanks, how do I enable classic classname footnotes? I must have missed a guide on that.
|
05-24-2022, 01:03 AM | #24 |
Wizard
Posts: 1,342
Karma: 4752930
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Top Menu - (second or third tab, don't remember) - Style Tweaks - then in some of these menus there is something related to footnotes in epub and fb2, including classic options
|
05-29-2022, 12:05 PM | #25 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
I think i have these options active, unless there are some others, but in-page footnotes are not displaying.
EDIT: just looked at the English version and noticed classic classnames were disabled, activated them and it works! The Polish language version uses "proper" instead of "classic", did not know what these were lol. Last edited by Buhaj47; 05-29-2022 at 12:15 PM. |
05-29-2022, 05:39 PM | #26 |
Wizard
Posts: 1,675
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Hooray!
|
06-06-2022, 04:34 PM | #27 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
@Buhaj47: I corrected the Polish translation of these two menu items, so it will be "classic".
|
08-04-2024, 09:57 AM | #28 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
I've hit a similar issue again - footnotes are not showing at the bottom of the page by default, instead I am getting a popup only after clicking on a footnote link. Attached are books where I have the issue, along with the current settings - can anyone please have a look to see why this is the case?
Last edited by Buhaj47; 08-04-2024 at 10:01 AM. Reason: Clarified what the issue is |
08-04-2024, 03:17 PM | #29 |
Connoisseur
Posts: 70
Karma: 9464
Join Date: Jan 2021
Device: Likebook Mars
|
The books use non-standard classnames for the footnotes. In these cases you need to view the HTML of the footnotes and manually add a book-specific style-tweak (last menu item) to give KOReader a hint.
In the first book (Upadek...), that book-specific style tweak is: p.bodyfootnote { -cr-hint: footnote-inpage; } On the second book, it's: div.endnote { -cr-hint: footnote-inpage; } More information here: https://github.com/koreader/koreader...ent-1913228054 |
08-04-2024, 04:42 PM | #30 |
Zealot
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Can I set custom tweaks globally, for every book? Do I need to edit a file in the styletweaks folder?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About footnotes | Milenski | Conversion | 5 | 03-09-2023 01:17 AM |
Footnotes one per page | Arkadian | Conversion | 7 | 04-20-2014 08:00 PM |
Footnotes | RafaelKing | Conversion | 1 | 05-19-2013 11:25 PM |
Footnotes | Adjust | ePub | 7 | 05-02-2013 08:33 PM |
Can I hide the footnotes page? | Jorge Junior | Sigil | 1 | 10-17-2012 08:44 PM |