02-19-2015, 02:17 PM | #1 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Instructions for patching firmware 3.13.1
Before starting:
1. Make sure your Kobo ereader is already running firmware version 3.13.1 (60d72c68d5). 2. Check that your battery is well charged. 3. Note that in Windows 8 the instructions below might require the batch file to be run in admistrator mode. Patching from Windows, Linux (i386/x86_64), or Mac (OS X 10.8-10.9, i386/x86_64): 1. Download and extract patch_kobo_3131.zip (attached). [WARNING: If using Windows, make sure the path to the extracted files does not contain any '&' characters.] 2. Download the Kobo firmware archive version 3.13.1 for your device (See this thread) into the 3.13.1_source/ subdirectory. (Don't extract.) 3. Read and edit all the *.patch files in the 3.13.1_source/ subdirectory in order to: choose which patches to enable (patch_enable=`yes`) or disable (patch_enable=`no`); and to change some of the replacement values to suit your device and preferences. (See the section below on customising the patches.) 4. In Windows double-click 3.13.1.bat; For Linux/Mac open a terminal, change to the patch_kobo_3131/ directory, and run ./3.13.1.sh from the command line. 5. If there were no errors, copy the resulting KoboRoot.tgz from the 3.13.1_target/ subdirectory to the .kobo directory on your ereader. 6. Safely eject and unplug the device, which will then update and restart. To return your ereader to its original unpatched state: 1. Edit all the 3.13.1_source/*.patch files to disable all patches (set patch_enable = `no` for every patch). 2. Repeat steps 4-6 of the procedure above. . Last edited by GeoffR; 02-23-2015 at 05:17 AM. Reason: Updated attachment to include improved `KePub zero body margin/padding` patch. |
02-19-2015, 02:23 PM | #2 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Notes and other patches
Notes:
The following patches are missing from this version: * Custom header styles * Book titles font style normal Improved `KePub zero body margin/padding` patch: I've updated the `KePub zero body margin/padding` patch with an improved version. (See post #15.) The new patch fixes the problem some kepubs have of text being shifted right and cut off in full-screen mode, but unlike the old patch it doesn't prevent the margins being changed in normal reading mode. New `Custom reading footer style` patch: This patch has changed in this firmwre version, see post #12 for infomation. New `Custom font sizes` patch: The font sizes are different in this firmware version, they now vary depending on device: Code:
Device Unpatched Patched default ------ --------- --------------- Touch/Mini: 12 - 90 (35 sizes) 12 - 80 (48 sizes) Glo/Aura: 12 - 122 (43 sizes) 12 - 80 (48 sizes) AuraHD/H2O: 12 - 150 (50 sizes) 12 - 88 (50 sizes) Alyssum: 14 - 150 (48 sizes) 14 - 88 (48 sizes) Working around problems with reading kepubs in full-screen mode: To enable the full-screen reading option, add the following to the device's configuration file ./kobo/Kobo/Kobo eReader.conf using a unix-aware text editor (don't use Windows' Notepad or Wordpad, use an editor such as Notepad++ instead.) Code:
[FeatureSettings] FullScreenReading=true Full-screen mode works well with epubs, but there are two problems that affect kepubs: 1. If the book's stylesheet has non-zero margin or padding on the body element, then the text can be shifted to the right resulting in text being cut off at the right hand side. For sideloaded kepubs this should be able to be fixed by adding the following to the book's stylesheet, or to kobo_extra.css if that option is enabled in Calibre: Code:
body { margin: 0 0 0 0 !important; padding: 0 0 0 0 !important; } 2. For some fonts, characters with a large side-bearing value (such as Georgia f, J, etc.) get cut off if they appear at the end of a line. For sideloaded kepubs created by recent versions of Calibre's KoboTouchExtended driver, this can be fixed by adding the following to the book's stylesheet or to kobo_extra.css: Code:
div#book-columns { padding: 0.2em !important; } Advanced font options for sideloaded fonts. The `Freedom to advanced fonts control` patch enables the weight/sharpness adjustment menu for sideloaded fonts. It works for both OTF and TTF fonts in the KePub reader, but usually only for TTF fonts in the epub reader. To enable kepub kerning for sideloaded fonts, the font must be in TTF format with "Old style kern" tables. You can generate these tables with Fontforge by converting the font to TTF with the "Old style kern" option ticked. See this thread. More patches: * keyboard template patch, use this to create your own custom keyboard: post #24 * Turkish keyboard: post #25 `Default ePub monospace font` `Change dicthtml strings to micthtml` (for use with custom dictionaries) `Force user line spacing in ePubs` (A stronger replacement for the `Enforce user line spacing in ePubs` patch.) If you know of any other patches for firmware 3.13.1 post them in this thread and I'll add them to this post. Last edited by GeoffR; 10-17-2015 at 01:01 AM. Reason: Added link to `Force user line spacing in ePubs` patch. |
Advert | |
|
02-19-2015, 02:28 PM | #3 |
Connoisseur
Posts: 52
Karma: 8236
Join Date: Jul 2013
Location: Italy
Device: Kobo Aura 2-Aura H2O-K1-LibraH2O
|
you're amazing ... congratulations, and thanks for your work
|
02-19-2015, 02:34 PM | #4 |
Resident Curmudgeon
Posts: 76,310
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The custom reading footer style, can we still get the text very close to the footer for RMDSK?
|
02-19-2015, 03:13 PM | #5 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Below is the first replacement string in the Custom reading footer style patch, I've highlighted the footer heights in red: Change the 24px values for Touch/Mini; the 30px values for Glo/Aura; and the 40px values for AuraHD/H2O. replace_string = 0000, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceIsDragon="true"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}`, `ReadingFooter {\n\tmin-height: 24px;\n\tmax-height: 24px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceIsPhoenix="true"] {\n\tmin-height: 30px;\n\tmax-height: 30px;\n}\n\nReadingFooter[qApp_deviceIsDragon="true"] {\n\tmin-height: 40px;\n\tmax-height: 40px;\n\tqproperty-footerMargin: 170;\n}` Edit: Below is the second replacement string that affects the reading footer style. Font sizes can be changed (highlighted in red: Touch/Mini = 16px; Glo/Aura = = 20px; AuraHD/H2O = 26px; Alyssum = 30px; ) but problems arise when I try to add padding: Replace_string = 0000, `#caption {\n\tfont-size: 16px;\n}\n\n#caption[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 20px;\n}\n\n#caption[qApp_deviceIsDragon="true"] {\n\tfont-size: 26px;\n}\n\n#caption[qApp_deviceIsAlyssum="true"] {\n\tfont-size: 30px;\n}\n\n#caption[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `#caption {\n\tfont-size: 16px;\n}\n\n#caption[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 20px;\n}\n\n#caption[qApp_deviceIsDragon="true"] {\n\tfont-size: 26px;\n}\n\n#caption[qApp_deviceIsAlyssum="true"] {\n\tfont-size: 30px;\n}\n\n#caption[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}` Last edited by GeoffR; 02-19-2015 at 10:00 PM. Reason: Added replacement string for font sizes |
|
Advert | |
|
02-19-2015, 04:25 PM | #6 |
Connoisseur
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
|
As always, I could not live without these patches
One question: will u try (if possible) to find the custom font size patch? I don't like the values of this fw, specially I think that there are a lot of too small and too big sizes. Thanks |
02-19-2015, 10:00 PM | #7 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
02-20-2015, 04:02 AM | #8 |
Fully Converged
Posts: 18,171
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
*stickied*
|
02-20-2015, 09:12 AM | #9 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Custom font sizes
I have found a patch for the font sizes, it is a bit more more complicated than in the previous firmware as it tuns out the font size range now varies depending on the device type.
Spoiler:
Try it out and let me know if you find any problems, or if the default size ranges should be different. Edit: I've added this patch to the patch_kobo_3131.zip attachment in post #1 Last edited by GeoffR; 02-20-2015 at 09:13 PM. Reason: Added to post #1 |
02-20-2015, 10:02 AM | #10 |
Connoisseur
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
|
Thanks Geoff! It seems to work!
I setted it in this way for my h2o: increment of 1 from 17 to 52; of two from 52 to 66; of 4 from 66 to 90 A question about other things: in the menu annotation, if you select the notebook view, the font size of annotations is too small... Do you think it's possible to correct it with a patch? (I remember a similar thing happened for the book synopsis, which you solved with a patch) If it's not possible, don't worry about that..it's not a tragedy |
02-20-2015, 05:03 PM | #11 |
Fear The Turtle!
Posts: 868
Karma: 4067244
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
|
Thanks Geoff, patch is working great!
|
02-21-2015, 02:34 AM | #12 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Custom reading footer style patch
Here is a new `Custom reading footer style` patch. It allows most of the customisations possible with the patches from earlier firmare versions, but it does it a bit differently because it doesn't seem possible to add padding to the footer anymore, so you might need to use a bit of trial and error to get the footer exactly how you had it before.
Spoiler:
There are three properties you can customise: 1. The overall height of the footer, i.e. the amount of space reserved for displaying the footer that is not available to the book content. Do this by changing the min-height and max-height values. 2. The font size used for the footer. 3. The top margin for the footer text. This is the margin between the page number and the top of the footer, so choosing a negative top margin value will move the page number upwards, increasing the space between the page number and bezel, and reducing the space between the page number and the book content. I haven't included the option to change the font family because I'm trying to keep it as simple as possible, and the new firmware fixes the problem of Gothic being used as the default footer font which was the motivation for changing the font family before. If you have trouble getting the footer to match the one you had in earlier firmware, post the patch you used before and I'll give you my best guess for a new patch that is similar. Edit: I've added this patch to patch_kobo_3131.zip attached to post #1. Last edited by GeoffR; 02-21-2015 at 02:52 AM. Reason: Added patch to attachment in post #1 |
02-21-2015, 09:13 AM | #13 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
02-21-2015, 01:11 PM | #14 |
Connoisseur
Posts: 67
Karma: 28684
Join Date: Dec 2009
Device: Nook GL3, Kobo H2O, Nook STG, Sony PRS-300, Sony PRS-500
|
Here are the settings I used on my H2O for the footer. First try and I'm happy with it.
Spoiler:
Last edited by Ryzir; 02-21-2015 at 01:15 PM. |
02-23-2015, 05:23 AM | #15 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Improved `KePub zero body margin/padding` patch.
I've updated the `KePub zero body margin/padding` patch. (This patch fixes the problem with some kepubs in full-screen reading mode where the text is shifted to the right and cut off at the right margin.)
The new patch fixes the problem in full-screen mode, but unlike the old patch it doesn't prevent the margins being changed in normal reading mode. Spoiler:
Edit: New patch above, also added to patch_kobo_3131.zip attached to post #1. Last edited by GeoffR; 02-24-2015 at 12:21 AM. Reason: Include new patch in this post and in patch_kobo_3131.zip in post #1 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 05:14 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM |
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 |