09-23-2014, 11:13 AM | #31 | |
Bibliophagist
Posts: 35,434
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
09-23-2014, 11:43 AM | #32 |
Fanatic
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
To reduce the top margin of the footer you can acually use negative values.
Below are mine values for this patch section. Code:
# Example for Glo/Aura: replace_string = D54355, `min-height: 70px;`, `min-height: 20px;` replace_string = D54368, `max-height: 70px;`, `max-height: 20px;` replace_string = D54385, `footerMargin: 40;`, `footerMargin: 00;` replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;` replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 0px;` replace_string = D543C7, `margin-top: 0px;`, `margin-top:-5px;` |
Advert | |
|
09-23-2014, 12:25 PM | #33 | |
Fanatic
Posts: 509
Karma: 60774
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
Turning it to 0 works OK. The whole patch looks like this: Code:
<Patch> patch_name = `Custom reading footer style` patch_enable = `yes` replace_string = D54344, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n* {\n\tfont-size: 16px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}` # # Uncomment the replace_string lines of one of the examples below, comment out # the rest. If you choose to make further changes to the examples, BE CAREFUL # NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove spaces if # necessary to keep the total length the same.) # # Example for Touch/Mini: #replace_string = D54355, `min-height: 70px;`, `min-height: 32px;` #replace_string = D54368, `max-height: 70px;`, `max-height: 32px;` #replace_string = D54385, `footerMargin: 40;`, `footerMargin: 40;` #replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;` #replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 4px;` #replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;` # # Example for Glo/Aura: replace_string = D54355, `min-height: 70px;`, `min-height: 10px;` replace_string = D54368, `max-height: 70px;`, `max-height: 20px;` replace_string = D54385, `footerMargin: 40;`, `footerMargin: 00;` replace_string = D5439F, `font-size: 16px;`, `font-size: 16px;` replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 3px;` replace_string = D543C7, `margin-top: 0px;`, `margin-top: -5px;` # # Example for AuraHD/H2O: #replace_string = D54355, `min-height: 70px;`, `min-height: 50px;` #replace_string = D54368, `max-height: 70px;`, `max-height: 50px;` #replace_string = D54385, `footerMargin: 40;`, `footerMargin: 20;` #replace_string = D5439F, `font-size: 16px;`, `font-size: 26px;` #replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 8px;` #replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;` # # Uncomment one of the following if you wish the footer to use a fixed font. # (And enable the Custom header style patch below using the same font.) # #replace_string = D543D9, `/*font-family:none;*/`, `font-family: Amasis;` #replace_string = D543D9, `/*font-family:none;*/`, `font-family: Avenir;` replace_string = D543D9, `/*font-family:none;*/`, `font-family: Georgia;` # </Patch> UPDATE: Never mind, I found it. Didn't see that you replaced the space with the minus symbol. Last edited by embryo; 09-23-2014 at 12:38 PM. |
|
09-23-2014, 11:05 PM | #34 | |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-24-2014, 04:30 AM | #35 |
Connoisseur
Posts: 77
Karma: 101837
Join Date: Oct 2012
Device: iPad Air, Kobo Forma, Kobo Aura HD (RIP)
|
"Margin fine tuning" patch on Aura HD (3.8.0) had no effect for me and kepubs sideloaded with calibre continue to have "text cut-off" problem on the right margin. Any solution?
|
Advert | |
|
09-24-2014, 04:26 PM | #36 |
Enthusiast
Posts: 30
Karma: 100
Join Date: Mar 2013
Location: USA
Device: Kobo Aura H2O, Pyrus Mini
|
Out of curiosity, is there a practical reasoning behind the .patch files using `backticks` instead of 'single' or "double" quotes? Or just a stylistic choice?
|
09-24-2014, 11:37 PM | #37 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: The original and replacement strings can use single or double quotes as delimiters, but in that case you need to escape any instance of the delimiter that appears in the string. e.g. Code:
replace_string = ABCDEF, `class="p0"`, `class="p1"` Code:
replace_string = ABCDEF, "class=\"p0\"", "class=\"p1\"" Last edited by GeoffR; 09-24-2014 at 11:55 PM. |
|
09-25-2014, 10:16 AM | #38 |
Enthusiast
Posts: 30
Karma: 100
Join Date: Mar 2013
Location: USA
Device: Kobo Aura H2O, Pyrus Mini
|
Thought it was something like that, not having to escape strings makes sense, especially in something designed for laymen. Thanks for putting this together! It worked great.
|
10-04-2014, 04:39 PM | #39 |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can we get someone to please sticky this until the next firmware is released? Thanks.
|
10-06-2014, 09:19 PM | #40 |
Connoisseur
Posts: 65
Karma: 28684
Join Date: Dec 2009
Device: Nook GL3, Kobo H2O, Nook STG, Sony PRS-300, Sony PRS-500
|
I patched with Custom reading footer style and I am getting a big space between text and footer still. I tried a few different settings and none would get rid of the space. I'm using a sideloaded epub.
Code:
# Example for AuraHD/H2O: replace_string = D54355, `min-height: 70px;`, `min-height: 56px;` replace_string = D54368, `max-height: 70px;`, `max-height: 56px;` replace_string = D54385, `footerMargin: 40;`, `footerMargin: 20;` replace_string = D5439F, `font-size: 16px;`, `font-size: 26px;` replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 8px;` replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;` |
10-06-2014, 10:46 PM | #41 | |
Bibliophagist
Posts: 35,434
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The patcher settings used were: Code:
# Example for AuraHD/H2O: replace_string = D54355, `min-height: 70px;`, `min-height: 50px;` replace_string = D54368, `max-height: 70px;`, `max-height: 50px;` replace_string = D54385, `footerMargin: 40;`, `footerMargin: 20;` replace_string = D5439F, `font-size: 16px;`, `font-size: 26px;` replace_string = D543B1, `padding-bottom: 0px;`, `padding-bottom: 6px;` replace_string = D543C7, `margin-top: 0px;`, `margin-top: 0px;` # Last edited by DNSB; 10-06-2014 at 10:48 PM. |
|
10-06-2014, 11:34 PM | #42 |
Connoisseur
Posts: 65
Karma: 28684
Join Date: Dec 2009
Device: Nook GL3, Kobo H2O, Nook STG, Sony PRS-300, Sony PRS-500
|
I've tried multiple books and dozens of pages and there is always room for at least one more line of text and most pages have room for two.
Thanks for looking into this anyway, maybe I'll just turn the footer off until Koreader or Coolreader are working on the H2O. |
10-07-2014, 02:35 AM | #43 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
You could try using a negative value for margin-top in the patch, but since different publishers use different sized margins the best thing is to delete any .xpgt file in the book and replace the publisher's @page margins with your own. The Modify Epub plugin can do both of these things easily. Edit: The other cause of extra blank lines could be the orphans/widows settings in the book. You can enable the `fix page breaks bug` patch to prevent orphans/widows processing for all books, or edit each book to set orphans:1;widows:1; in the CSS (or replace the publisher's settings, if any). The KoboTouch driver in calibre can be set up to do this automatically as the books are sent to the device. Edit2: The other thing to check is whether you are using the "Document Default" font setting. If so then the font used for the footer will be Gothic, which sits very low on the line and gives the effect of extra padding above the line. Try selecting a font such as Georgia or Avenir instead of Document Default and see if that makes a difference. (You can also force a different font to be used in the footer even when Document Default is selected by uncommenting one of the font-family lines in the footer patch). Last edited by GeoffR; 10-07-2014 at 10:55 AM. Reason: note about Document Default font using Gothic for footer |
|
10-07-2014, 11:57 AM | #44 |
Addict
Posts: 382
Karma: 1118562
Join Date: Sep 2010
Location: Middlesex, UK
Device: Kobo Aura One, iPhone 8, iPad Pro
|
I would like to patch my new H2O but am having difficulty and would appreciate some help.
I get this error: Lyns-iMacatch_kobo_38 Lyn$ ./3.8.0.sh Extracting files to patch from 3.8.0_source/kobo-update-3.8.0.zip ... x ./usr/local/Kobo/libnickel.so.1.0.0 x ./usr/local/Kobo/librmsdk.so.1.0.0 x ./usr/local/Kobo/libadobe.so Read 16256228 bytes from input file '/var/folders/bz/7qr21g_96kg_9rwdw85sph140000gn/T/patch32lsb_XXXXXXXX.1fwffCnW/original/./usr/local/Kobo/libnickel.so.1.0.0' Ignoring disabled patch `Disable reading footer` Applied patch `Custom reading footer style` Ignoring disabled patch `Custom header style for Touch` Ignoring disabled patch `Custom header style for Mini` Ignoring disabled patch `Custom header style for Glo/Aura/AuraHD/H2O` Applied patch `My 15 line spacing values` tools/patch32lsb-Darwin: line 167 in '3.8.0_source/libnickel.so.1.0.0.patch': replace_int mismatched data. Cleaning up /var/folders/bz/7qr21g_96kg_9rwdw85sph140000gn/T/patch32lsb_XXXXXXXX.1fwffCnW Lyns-iMacatch_kobo_38 Lyn$ However, I can't see anything wrong with line 167. Can anyone shed some light on this please? |
10-07-2014, 12:17 PM | #45 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
replace_int = CB4AFC, 24, 31 In general the replacement lines in a patch look like: Code:
replace_int = ADDRESS, ORIGINAL, REPLACEMENT |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 09:02 PM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |