Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-01-2016, 05:04 AM   #61
344a
Groupie
344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.
 
344a's Avatar
 
Posts: 188
Karma: 505964
Join Date: Feb 2016
Location: Hong Kong
Device: Hong Kong is done.
Not yet patch my device. Does the patch apply to both epub and kepub the same ways?
Thx for sharing.
344a is offline   Reply With Quote
Old 05-01-2016, 05:03 PM   #62
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by 344a View Post
Not yet patch my device. Does the patch apply to both epub and kepub the same ways?
Not really. Some of the patches have separate ePub and a KePub versions, but they might work slightly differently. There are a few patches apply to both ePub and KePub, but even those can have slightly different effects in each.

For example the `My 15 line spacing values` patch changes the line spacings that are selected with the line spacing slider, which is used by both ePub and KePub readers. But while the ePub reader works correctly with any line spacing value you choose, the KePub reader has problems with the narrower spacings that can result in the first and last line of text on the page being clipped. This means that you might want to customise the patch differently depending on which format you mainly read, perhaps leaving out the narrower settings and including more wide settings if you mainly read KePubs.
GeoffR is offline   Reply With Quote
Advert
Old 05-04-2016, 08:32 AM   #63
344a
Groupie
344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.344a ought to be getting tired of karma fortunes by now.
 
344a's Avatar
 
Posts: 188
Karma: 505964
Join Date: Feb 2016
Location: Hong Kong
Device: Hong Kong is done.
Quote:
Originally Posted by GeoffR View Post
Not really. Some of the patches have separate ePub and a KePub versions, but they might work slightly differently. There are a few patches apply to both ePub and KePub, but even those can have slightly different effects in each.

For example the `My 15 line spacing values` patch changes the line spacings that are selected with the line spacing slider, which is used by both ePub and KePub readers. But while the ePub reader works correctly with any line spacing value you choose, the KePub reader has problems with the narrower spacings that can result in the first and last line of text on the page being clipped. This means that you might want to customise the patch differently depending on which format you mainly read, perhaps leaving out the narrower settings and including more wide settings if you mainly read KePubs.
Thanks GeoffR.

Last edited by 344a; 05-04-2016 at 08:38 AM.
344a is offline   Reply With Quote
Old 05-06-2016, 12:47 AM   #64
hounddog
Banned
hounddog began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2016
Device: none
Question. How does patching relate to the mods on this sub-forum? Is patching necessary to use them?
hounddog is offline   Reply With Quote
Old 05-06-2016, 01:00 AM   #65
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by hounddog View Post
Question. How does patching relate to the mods on this sub-forum? Is patching necessary to use them?
It depends on the mod. Some mods require particular patches, other require that particular patches are not done. But, mostly they are independent. If there are dependencies, it should be mentioned in the thread for the mod.
davidfor is offline   Reply With Quote
Advert
Old 07-23-2016, 02:56 PM   #66
superjoefly
Member
superjoefly began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2016
Location: Houston, Texas, USA
Device: Kobo Glo HD
In Step 3 of the patching process it says: "Read and edit all the *.patch files in the 3.19.5761_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."

How do I read and edit these patches? Do I need a certain program? I keep getting the "Windows can't open this file" message.

In Step 4 of the patching process it says: "In Windows double-click 3.19.5761.bat; For Linux/Mac open a terminal, change to the patch_kobo_3195761/ subdirectory, and run ./3.19.5761.sh from the command line."

I don't see a ".bat" file anywhere. Where is this file supposed to be located?

Thanks for your help :-)

Last edited by superjoefly; 07-23-2016 at 03:01 PM.
superjoefly is offline   Reply With Quote
Old 07-23-2016, 03:58 PM   #67
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
You can use Notpade++ to edit .patch file, https://notepad-plus-plus.org/download/v6.9.2.html

Also you can use Kobo Patch GUI, to enable/disable patchs.

Quote:
I don't see a ".bat" file anywhere. Where is this file supposed to be located?
The bat file is in the zip file in post #1 "patch_kobo_3195761.zip", see Step 1 again.

Last edited by oren64; 07-23-2016 at 04:08 PM.
oren64 is offline   Reply With Quote
Old 07-23-2016, 04:09 PM   #68
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by superjoefly View Post
In Step 3 of the patching process it says: "Read and edit all the *.patch files in the 3.19.5761_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."

How do I read and edit these patches? Do I need a certain program? I keep getting the "Windows can't open this file" message.
Any text editor should do to edit the .patch files, e.g. Notepad.

Quote:
In Step 4 of the patching process it says: "In Windows double-click 3.19.5761.bat; For Linux/Mac open a terminal, change to the patch_kobo_3195761/ subdirectory, and run ./3.19.5761.sh from the command line."

I don't see a ".bat" file anywhere. Where is this file supposed to be located?
It is located in the patch_kobo_3195761/ directory, same place as the .sh file. Maybe Windows is not displaying the file extension but using an icon to indicate that it is a .bat file?
GeoffR is offline   Reply With Quote
Old 07-23-2016, 04:16 PM   #69
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by superjoefly View Post
How do I read and edit these patches? Do I need a certain program? I keep getting the "Windows can't open this file" message.
You can use any program that can edit simple text files.
Quote:
Originally Posted by superjoefly View Post
I don't see a ".bat" file anywhere. Where is this file supposed to be located?
It is in the patch_kobo_3195761 directory. If the file explorer shows two files as "3.19.5761", then you have "show file extensions" disabled (this is unfortunately the default setting). The .bat file should however be identifiable by the 'executable'-icon and by the identification as 'windows batch file' in the column 'type.'

Edit: I was to slow it seems!
tshering is offline   Reply With Quote
Old 07-23-2016, 05:13 PM   #70
superjoefly
Member
superjoefly began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2016
Location: Houston, Texas, USA
Device: Kobo Glo HD
Thank you for the quick reply!

I had to change "Opens with:" settings in file properties so that it would open with Notepad. The .bat file did have an icon and I was able to find it.

I took a look at the .patch files and they seem to me to be somewhat complicated. Are the patches already set up to make certain adjustments without having to edit them? I see that some of them are already enabled, and I don't want to mess anything up.

Thanks :-)
superjoefly is offline   Reply With Quote
Old 07-23-2016, 05:43 PM   #71
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,432
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Its often easier just to open your text editor (Notepad or Notepadd++), select it's file p-epen menu, and then find the file you want to edit.
PeterT is offline   Reply With Quote
Old 07-23-2016, 06:16 PM   #72
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by superjoefly View Post
I took a look at the .patch files and they seem to me to be somewhat complicated. Are the patches already set up to make certain adjustments without having to edit them? I see that some of them are already enabled, and I don't want to mess anything up.
The patches that are enabled by default are just ones that are most popular but that also don't cause too many bad side-effects. It is fine to disable any of these that you don't want, none of them are necessary.

For most of the patches that are not enabled by default you can just enable them to make them take effect, but some will also need to be adjusted to suit a particular device or preference. An example is the `Custom reading footer style` patch where there doesn't seem to be any agreed ideal for size or style, and any particular setting will have different results on different devices depending on screen size/resolution/DPI.

A popular patch that is not enabled by default is the `Freedom to advanced font controls`, as it might cause problems for some users who read Japanses books. (I don't know exactly what the side-effects would be though, since I never read Japanese, I just see that the patch can cause a garbage value to be passed to a subroutine if Japanese is selected.)

Beware that many patches do things that most people would not want, so it is best not to enable them unless they do something you know you want and you can live with the side-effects (if any). I suggest starting by asking yourself what is it about the stock firmware that you want to change, and then see if there is a patch for that. If the stock firmware already does what you want then no need to patch it.
GeoffR is offline   Reply With Quote
Old 07-23-2016, 07:33 PM   #73
superjoefly
Member
superjoefly began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2016
Location: Houston, Texas, USA
Device: Kobo Glo HD
Great reply and thanks for your help!

I notice that the footer patch, by default, on lines 62, 63, and 64 (Example replacement footer height values: Glo/Aura), that there is no '#'sign. However, I am doing this patch for the Glo HD. Should I comment out the above mentioned lines and uncomment (remove the '#' sign) lines 66, 67, and 68 in order to apply it to the Glo HD?

Just want to check if I've got the right idea.

I'm also wondering if anyone has a picture of how this particular patch would appear once completed.

Thanks for your help :-)

Last edited by superjoefly; 07-23-2016 at 07:51 PM.
superjoefly is offline   Reply With Quote
Old 07-23-2016, 08:22 PM   #74
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by superjoefly View Post
I notice that the footer patch, by default, on lines 62, 63, and 64 (Example replacement footer height values: Glo/Aura), that there is no '#'sign. However, I am doing this patch for the Glo HD. Should I comment out the above mentioned lines and uncomment (remove the '#' sign) lines 66, 67, and 68 in order to apply it to the Glo HD?
Yes uncomment the lines for the GloHD, but for this patch you also need to comment out the lines for the Glo/Aura. I.e. afterwards it should look like this:
Code:
# Example replacement footer height values: Touch/Mini
#replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;`
#replace_string = 002D, `min-height: 70px;`, `min-height: 32px;`
#replace_string = 003F, `max-height: 70px;`, `max-height: 32px;`
# Example replacement footer height values: Glo/Aura
#replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;`
#replace_string = 002D, `min-height: 70px;`, `min-height: 40px;`
#replace_string = 003F, `max-height: 70px;`, `max-height: 40px;`
# Example replacement footer height values: AuraHD/H2O/GloHD
replace_string = 001A, `footerMargin: 105;`, `footerMargin: 170;`
replace_string = 002D, `min-height: 70px;`, `min-height: 52px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 52px;`
Quote:
I'm also wondering if anyone has a picture of how this particular patch would appear once completed.
This post has a screenshot with and ePub from my Glo, if you use the settings for the GloHD then it should be similar on that device. But things are complicated because while the patch controls the size of the footer itself there are a lot of other factors that affect the amount of space between the footer and the last line of text on the page, such as the font face, font size, line spacing selected as well as page margins in the book itself. Also the same footer is used for ePub and KePub books, but KePub books have a non-adjustable header which can make the proportions look wrong in KePubs if you change the footer.
GeoffR is offline   Reply With Quote
Old 07-23-2016, 11:39 PM   #75
superjoefly
Member
superjoefly began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2016
Location: Houston, Texas, USA
Device: Kobo Glo HD
Excellent, thank you!

I only have one more question at the moment, and that is...do updates to the Kobo firmware interrupt the patches?

Thank you so much for your assistance...you've been very helpful :-)
superjoefly is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:40 PM.


MobileRead.com is a privately owned, operated and funded community.