01-11-2017, 03:24 PM | #121 |
Groupie
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
Nice, I will play with it a bit later, I have some other projects now to finish (Kobo translation).
Last edited by kido.resuri; 01-11-2017 at 05:38 PM. Reason: Removed obsolate questions |
01-13-2017, 10:27 AM | #122 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2017
Location: Birmingham, UK
Device: Kobo Aura H2O
|
Quick question: I've patched my libnickel.so to fix the text-align rule on p and divs. But I haven't been able to find anything that might be responsible for forcing all links to be underlined and blue (well, grey, but I assume blue). I can't get "a" elements to respond to text-decoration or color css properties, even with !important. But it doesn't look like anyone's figured out a patch for it yet either?
|
01-13-2017, 01:20 PM | #123 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
In general,if you have some CSS that does what you want when it is added to the book's stylesheet by Calibre, say by using the kobo_extra.css feature of the KoboTouch driver, then you can create a patch that will add the same CSS to the device's built-in stylesheet. But if You can't do it with Calibre then it is unlikely you will be able to do it with a patch. (Edit: The exception is that a patch can change something that is being forced by the built-in stylesheet.) Edit: There is this string in libnickel.so.1.0.0: Code:
a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: #696969 !important; } Edit: Here is a patch to remove !important from the above CSS in libnickel.so.1.0.0, if you want to test it: Spoiler:
Last edited by GeoffR; 01-13-2017 at 01:56 PM. Reason: Here is a patch ... |
|
01-15-2017, 02:20 AM | #124 |
Enthusiast
Posts: 29
Karma: 26326
Join Date: Jul 2013
Device: Kobo: Mini, Libra 2
|
Yes this is used in the kepub stylesheet. Tried the patch on my mini: now the formatting of links is as specified in the book's css, except that the dotted border-bottom is added. How can I change the patch to completely remove 'border-bottom: 1px dotted black !important; ' not just '!important' ?
Last edited by ams; 01-15-2017 at 02:21 AM. Reason: typo |
01-15-2017, 04:25 AM | #125 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
`Un-force link decoration in KePubs` (libnickel.so.1.0.0.patch) Spoiler:
|
|
01-24-2017, 08:04 AM | #126 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2017
Location: Birmingham, UK
Device: Kobo Aura H2O
|
Thanks GeoffR. I'd really like to be able to customise the info shown in the footer on kepubs (e.g. book percentage as well as time left in chapter). I've only had a quick look, but I'm guessing the various footer display options are switched in code, with separate data strings for each. I can see strings for e.g. "Page %1 / %2", but presumably there's no known way to introduce additional data into the footer at this time?
|
01-25-2017, 12:04 AM | #127 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: There is already a quick way to switch between percentage and page number (and time remaining in KePubs) by long-pressing the footer. Edit2: An extra complication with such a patch is that the "Page %1 of %2" string is used in other parts of the UI such as in the library lists, where a percentage is not used. Last edited by GeoffR; 01-25-2017 at 04:09 AM. |
|
01-25-2017, 03:50 AM | #128 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
|
01-25-2017, 04:06 PM | #129 | |
Groupie
Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
Quote:
Is there any way to show page number instead of % read on the main page and in the library? |
|
01-27-2017, 09:20 PM | #130 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
No. A patch for that would be very difficult if it was possible at all because the percentage for KePub and ePub books are calculated differently, and I think the KePub percentage is based on the word count rather than the page count. I don't think the page numbers are stored in the database anywhere.
|
02-14-2017, 04:05 PM | #131 |
Evangelist
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
|
@GeoffR
Can you help me, please? I have problems with this two patch but they are supposed to be correct for that FW: Spoiler:
|
02-14-2017, 04:08 PM | #132 | |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=283510 P.S. Those patches are also in the patches for the new firmware. So do you still want help with the patches for 3.19.5761 or are you going to give 4.2.8432 a go? P.P.S. The H2O is a mark 5 device. Last edited by JSWolf; 02-14-2017 at 04:15 PM. |
|
02-14-2017, 04:28 PM | #133 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@boriar,
Regarding patch_name = `Custom Header menubar - reduce height by 33%` for 3.19.5761 ... did you make sure you added this patch to the nickel.patch file, not one of the other 3 .patch files? |
02-15-2017, 02:41 AM | #134 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
https://www.mobileread.com/forums/sh...&postcount=134 Last edited by oren64; 02-15-2017 at 03:23 AM. |
|
02-15-2017, 09:05 AM | #135 | |||
Evangelist
Posts: 407
Karma: 314204
Join Date: Jan 2015
Device: bq Avant XL, Kobo Aura H2O, Onyx Boox M96C Plus
|
Quote:
Quote:
Quote:
Edit: @oren64 Apart from uncomment line in the version I posted before, it seems not to have any difference and produced the same error . Is it supposed that I can not uncomment it? Last edited by boriar; 02-15-2017 at 09:21 AM. |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 07:22 AM |