05-03-2015, 10:31 AM | #46 | |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Hi !
About the "My 15 line spacing values" Quote:
|
|
05-03-2015, 01:20 PM | #47 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
If you read epubs then you can use any line spacing value without a problem, but if you only read kepubs then you might want to change the replacement values in the patch to avoid the smaller ones that cause problems for the kepub reader. Which minimum value to choose will depend a bit on the font you use. For example if you use the Kobo Nickel font, which has an extremely wide line spacing, then you might use a value of 0.75 without problem. If you use Georgia then you might have problems with values smaller than 0.85. Here is a set of more conservative replacement values that should avoid problems with most fonts in kepubs: Code:
# 15 values for replacement: replace_float = 604A48, 1.0, 0.9 replace_float = 604B10, 1.05, 0.92 replace_float = 604B18, 1.07, 0.94 replace_float = 604B20, 1.1, 0.96 replace_float = 604A50, 1.2, 0.98 replace_float = 604B28, 1.35, 1.0 replace_float = 604A58, 1.5, 1.05 replace_float = 604B30, 1.7, 1.1 replace_float = 604B38, 1.8, 1.15 replace_float = 604A60, 2.0, 1.2 replace_float = 604B40, 2.2, 1.25 replace_float = 604B48, 2.4, 1.3 replace_float = 604B50, 2.6, 1.35 replace_float = 604B58, 2.8, 1.4 replace_float = 604A68, 3.0, 1.5 |
||
Advert | |
|
05-03-2015, 01:26 PM | #48 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
05-03-2015, 01:58 PM | #49 | |
Grand Sorcerer
Posts: 6,541
Karma: 14008730
Join Date: May 2008
Location: PA (USA)
Device: Kobo Clara, 2E, Libre 1, PW4, PW5, 2022 Kindle, Kobo Libre Colour
|
Quote:
I re-ran the patch with the compact layout disabled, but the home screen didn't change. Of course, now I don't remember how many tiles were on it originally. |
|
05-03-2015, 02:07 PM | #50 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
I should add a warning about this in the patches. Last edited by GeoffR; 05-03-2015 at 02:15 PM. Reason: ... if you use calibre to send covers ... |
|
Advert | |
|
05-03-2015, 02:58 PM | #51 | |
Bookworm
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
After that you use the extended plugin to send the covers again to the device. For some reason,just disable it and re-patch doesn't returns it to the original state. It also renders some covers that where on the homescreen,they remain small in the library screen to,so that is why I re-upload the pictures with Calibre and the extended plugin. |
|
05-04-2015, 04:19 AM | #52 | |
Librarian
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
|
Quote:
|
|
05-06-2015, 10:03 AM | #53 |
Member Retired
Posts: 3,183
Karma: 11721895
Join Date: Nov 2010
Device: Nook STR (rooted) & Sony T2
|
Is there a description of what functionality this patch adds?
|
05-06-2015, 10:16 AM | #54 |
Guru
Posts: 733
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
|
It is explained within the patch files.
|
05-06-2015, 05:28 PM | #55 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jan 2015
Device: Kobo Aura H2O
|
I'd like to replicate the dicthtml->micthtml replacement from the 3.12.1 patcher for 3.15 (This prevents the Kobo from overwriting custom dictionaries in the micthtml files.)
What tools do you use to find the right places to patch? The code below is for 3.12.1: Code:
<Patch> patch_name = `Change dicthtml strings to micthtml` patch_enable = `yes` # `%1/dicthtml%2.zip` --> `%1/micthtml%2.zip` #replace_string = C94734, `%1/dicthtml%2.zip`, `%1/micthtml%2.zip` # `%1/dicthtml%2` --> `%1/micthtml%2` replace_string = C9B834, `%\01\0/\0d\0i\0c\0t\0h\0t\0m\0l\0%\02\0`, `%\01\0/\0m\0i\0c\0t\0h\0t\0m\0l\0%\02\0` # `dicthtml` --> `micthtml` replace_string = C9B87C, `d\0i\0c\0t\0h\0t\0m\0l\0`, `m\0i\0c\0t\0h\0t\0m\0l\0` # `dicthtml*` --> `micthtml*` #replace_string = C9B9B8, `d\0i\0c\0t\0h\0t\0m\0l\0*\0`, `m\0i\0c\0t\0h\0t\0m\0l\0*\0` # `%1/dicthtml%2` --> `%1/micthtml%2` replace_string = C9BD54, `%\01\0/\0d\0i\0c\0t\0h\0t\0m\0l\0%\02\0`, `%\01\0/\0m\0i\0c\0t\0h\0t\0m\0l\0%\02\0` # `%1/dicthtml%2` --> `%1/micthtml%2` replace_string = C9BDB8, `%\01\0/\0d\0i\0c\0t\0h\0t\0m\0l\0%\02\0`, `%\01\0/\0m\0i\0c\0t\0h\0t\0m\0l\0%\02\0` # `%1/dicthtml%2` --> `%1/micthtml%2` replace_string = C9BE1C, `%\01\0/\0d\0i\0c\0t\0h\0t\0m\0l\0%\02\0`, `%\01\0/\0m\0i\0c\0t\0h\0t\0m\0l\0%\02\0` # `%1/%2/dict/dicthtml%3` --> `%1/%2/dict/micthtml%3` replace_string = C9BE80, `%\01\0/\0%\02\0/\0d\0i\0c\0t\0/\0d\0i\0c\0t\0h\0t\0m\0l\0%\03\0`, `%\01\0/\0%\02\0/\0d\0i\0c\0t\0/\0m\0i\0c\0t\0h\0t\0m\0l\0%\03\0` # `dicthtml*` --> `micthtml*` #replace_string = CA98AC, `d\0i\0c\0t\0h\0t\0m\0l\0*\0`, `m\0i\0c\0t\0h\0t\0m\0l\0*\0` # `dicthtml%1` --> `micthtml%1` #replace_string = CC26D0, `d\0i\0c\0t\0h\0t\0m\0l\0%\01\0`, `m\0i\0c\0t\0h\0t\0m\0l\0%\01\0` </Patch> |
05-06-2015, 07:11 PM | #56 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Spoiler:
Quote:
For patches which alter the code itself I use a disassembler ('objdump' from GNU binutils.) |
||
05-06-2015, 07:21 PM | #57 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I've started working on it in the Index to the Metazoa firmware patches thread, but it will take time, like many programming related things it seems to take more effort to explain what something does than it takes to create it in the first place.
That thread will link to the 'Instructions for patching firmware ...' thread for the latest firmware version, and eventually will have a post explaining what each patch does, with screenshots etc. Idealy that thread will be the only sticky one, and this and other 'Instructions for patching ...' threads it links to could be unstuck. |
05-07-2015, 04:43 PM | #58 | |
Wizard
Posts: 3,472
Karma: 48036360
Join Date: Aug 2009
Location: where the sun lives, or so they say
Device: Pocketbook Era, Pocketbook Inkpad 4, Kobo Libra 2, Kindle Scribe
|
Quote:
I never had problems following your patch instructions, but this new structure will be great ! |
|
05-07-2015, 06:42 PM | #59 |
Member
Posts: 23
Karma: 550
Join Date: Jan 2012
Device: Kobo Aura H2O
|
Indeed the new instructions are very helpful! Thanks for the explanations! :-)
|
05-08-2015, 06:02 AM | #60 |
Member
Posts: 15
Karma: 215014
Join Date: Feb 2015
Device: Kobo Aura
|
Many thanks GeoffR for the patches and instructions.
You had a patch previously to change book titles style from Italic to Normal, so that it works for Arabic https://www.mobileread.com/forums/sho...1&postcount=17 I couldn't find it in the new patch files, and when I tried to use it, I got an error, can you please let me know how to update it? Thanks. Just noticed you mentioned that this patch was hard in #8, sorry to hear that, I am not sure if I can be of any help. Thanks again for your efforts, and please let us know when you are able to fix it. Last edited by mamado; 05-08-2015 at 02:53 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.13.1 | GeoffR | Kobo Developer's Corner | 56 | 07-01-2016 10:59 AM |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 06:32 AM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 06:14 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 10:22 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 08:28 AM |