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 12-14-2013, 08:06 AM   #631
pietro77
Member
pietro77 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2013
Device: KO3
Thanks. I checked few last page but I missed that.
pietro77 is offline   Reply With Quote
Old 12-18-2013, 01:14 AM   #632
fionvarre
Junior Member
fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.fionvarre knows the square root of minus one.
 
Posts: 8
Karma: 7940
Join Date: Mar 2013
Device: Kindle 3 Wifi, Pocketbook 360, Nook Simple Touch
Just managed to successfully patch my Aura HD using the zip file GeoffR provided in post #605. Thanks GeoffR! Will use the patch you provided as is for now, but I'll try to play with values later on.

Anyway, just wanted to ask, is there also a patch to override CSS settings? I have a few sideloaded epubs who stay in default settings even when I try to change the viewing font. Only the font won't change (font sizes and line spacing do, but if I go up a font setting the default font displays really huge, so I'd like to change the font to a more viewable one).
fionvarre is offline   Reply With Quote
Old 12-18-2013, 12:44 PM   #633
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 fionvarre View Post
Anyway, just wanted to ask, is there also a patch to override CSS settings? I have a few sideloaded epubs who stay in default settings even when I try to change the viewing font. Only the font won't change (font sizes and line spacing do, but if I go up a font setting the default font displays really huge, so I'd like to change the font to a more viewable one).
There is a patch that strips all css, but in most cases it ruins the formatting of the book. A patch that just strips the font-family settings would have the effect you want for some books, perhaps even a majority of books, but would still ruin some.

A better solution is just to edit the css of the offending books.

Find out which font is used for the main text, say it is font-family: Charis; Then delete all font-family: Charis; lines in the css (or if you prefer, leave the ones that apply to titles and chapter headings, etc) and add one new line at the top of the file: body {font-family: Charis;}

With these changes you will be able to see the book as it originally was by selecting the "Document Default" font, but the font used for the main text will change when you select another font.

Last edited by GeoffR; 12-18-2013 at 12:48 PM. Reason: minor clarification
GeoffR is offline   Reply With Quote
Old 12-18-2013, 08:31 PM   #634
byblo
Traumatized
byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.
 
byblo's Avatar
 
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
See this post to unlock fonts and line spacing patch without ignoring entirely the CSS settings: https://www.mobileread.com/forums/sho...&postcount=456

Maybe you missed it. (btw, I've been using these during one month now with my epub books, and did not encountered yet any problem using them)
byblo is offline   Reply With Quote
Old 12-19-2013, 03:09 PM   #635
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
@GeoffR

I've tried to run your "patch32lsb" program in my computer but it doesn't work.

Code:
[inigo@inigo 0]$ ./patch32lsb -p kpg-311.conf -i libnickel.so.1.0.0 -o ./usr/local/Kobo/libnickel.so.1.0.0
Read 21284216 bytes from input file 'libnickel.so.1.0.0'
./patch32lsb: line 13 in 'kpg-311.conf': replace_string unescaped '\' character.
Is it compatible with 64 bits or only for 32 bits linux?

Thanks,
Iņigo
Iņigo is offline   Reply With Quote
Old 12-19-2013, 03:27 PM   #636
henriquemaia
Ignorant of many things
henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.
 
henriquemaia's Avatar
 
Posts: 63
Karma: 9304
Join Date: Feb 2011
Device: Kobo Libra 2
Quote:
Originally Posted by byblo View Post
See this post to unlock fonts and line spacing patch without ignoring entirely the CSS settings: https://www.mobileread.com/forums/sho...&postcount=456

Maybe you missed it. (btw, I've been using these during one month now with my epub books, and did not encountered yet any problem using them)
byblo, thanks for this. Is this patch still compatible with the latest firmware?
henriquemaia is offline   Reply With Quote
Old 12-19-2013, 04:45 PM   #637
byblo
Traumatized
byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.
 
byblo's Avatar
 
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
Currently only on 3.0.0 firmware, since i didnt bothered to upgrade my glo yet.

In theory, it should not be hard to adapt these patches to the latest firmware (unless fundamental changes between 3.0.0 and latest)

If you are interested in testing these with the latest firmware (3.1.1?) I can quickly provide the updated patches values.
byblo is offline   Reply With Quote
Old 12-19-2013, 05:16 PM   #638
henriquemaia
Ignorant of many things
henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.
 
henriquemaia's Avatar
 
Posts: 63
Karma: 9304
Join Date: Feb 2011
Device: Kobo Libra 2
I'm running 3.1.1, so I'm sure willing to give it a try. I'll be thankful if you provide such values.
henriquemaia is offline   Reply With Quote
Old 12-19-2013, 05:45 PM   #639
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 Iņigo View Post
./patch32lsb: line 13 in 'kpg-311.conf': replace_string unescaped '\' character.
Just remove the "\x00" from the end of the footer string, I haven't added code to parse that yet. The \x00 adds a null terminator to the string because patcher doesn't do it itself when the replace_xor method is used. However patch32lsb does it automatically, so the \x00 is not needed.

(BTW it should run correctly on 32- and 64-bit machines, the 32lsb in the name refers to the executable that is being patched, i.e. Kobo devices run 32-bit little-endian code.)
GeoffR is offline   Reply With Quote
Old 12-19-2013, 06:15 PM   #640
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by GeoffR View Post
Just remove the "\x00" from the end of the footer string, I haven't added code to parse that yet. The \x00 adds a null terminator to the string because patcher doesn't do it itself when the replace_xor method is used. However patch32lsb does it automatically, so the \x00 is not needed.

(BTW it should run correctly on 32- and 64-bit machines, the 32lsb in the name refers to the executable that is being patched, i.e. Kobo devices run 32-bit little-endian code.)
Oh,ok. That was it.

Thanks a lot.
Iņigo is offline   Reply With Quote
Old 12-19-2013, 08:08 PM   #641
byblo
Traumatized
byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.
 
byblo's Avatar
 
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
Quote:
Originally Posted by henriquemaia View Post
I'm running 3.1.1, so I'm sure willing to give it a try. I'll be thankful if you provide such values.
Here you have: (to whoever want to apply these patches, please do not forget to read this post first https://www.mobileread.com/forums/sho...&postcount=456 ,for all details and notes related)
edit: warning: untested yet on 3.1.1
Code:
# For 3.1.1

<Patch>
patch_name = `Force user selected font (Ignore external font-family in CSS and style tag)`
patch_enable = `yes`
# Warning: This is an EXPERIMENTAL patch will replace all "font-family" to "_ont-family"
#          ALL patches - except the last one - are necessary since they all rely to the change of the last one.
#          This is barbarian, dirty workaround and maybe unsafe, but in waiting for better... (ONLY for .epub Does NOT work for .kepub)
#          Patch by byblo
replace_string = 010FDF8C, `f`, `_`
replace_string = 010FDFB8, `f`, `_`
replace_string = 010FDFD4, `f`, `_`
replace_string = 01117DA1, `f`, `_`
replace_string = 01117E19, `f`, `_`
replace_string = 01117E91, `f`, `_`
replace_string = 01117F09, `f`, `_`
replace_string = 01117F7A, `f`, `_`
replace_string = 01145CD4, `f`, `_`
replace_string = 01145F25, `f`, `_`
replace_string = 01146511, `f`, `_`
replace_string = 011490C0, `f`, `_`
replace_string = 01149250, `f`, `_`
replace_string = 01149498, `f`, `_`
replace_string = 01149C06, `f`, `_`
replace_string = 0114A03D, `f`, `_`
replace_string = 0114C6D9, `f`, `_`
replace_string = 011506B2, `f`, `_`
replace_string = 011668C8, `f`, `_`
#Note: this is the main entry that has to be replaced to avoid reading font-family on CSS and <style> tags
replace_string = 01445924, `f`, `_`
</Patch>

<Patch>
patch_name = `Force user selected line spacing (Ignore external line-height in CSS and style tag)`
patch_enable = `yes`
# Warning: This is an EXPERIMENTAL patch will replace all "line-height" to "_ine-height"
#          ALL patches - except the last one - are necessary since they all rely to the change of the last one.
#          This is barbarian, dirty workaround and maybe unsafe, but in waiting for better... (ONLY for .epub Does NOT work for .kepub)
#          Patch by byblo
replace_string = 01117FCD, `l`, `_`
replace_string = 01145AF6, `l`, `_`
replace_string = 011494AC, `l`, `_`
replace_string = 0114A079, `l`, `_`
replace_string = 0114C70D, `l`, `_`
replace_string = 01150687, `l`, `_`
replace_string = 01167DA6, `l`, `_`
replace_string = 0116A5E8, `l`, `_`
replace_string = 0116A611, `l`, `_`
replace_string = 0116A64C, `l`, `_`
#Note: this is the main entry that has to be replaced to avoid reading line-height on CSS and <style> tags
replace_string = 014445F0, `l`, `_`
</Patch>

<Patch>
patch_name = `Force aspect ratio on pictures (Ignore preserveAspectRatio)`
patch_enable = `yes`
#force to keep aspect ratio of the picture by ignoring the preserveAspectRatio entry (half confirmed. works well when preserveAspectRatio=none)
#can be useful to keep aspect ratio on covers ect...
#          Patch by byblo (ONLY for .epub Does NOT work for .kepub)
replace_string = 01442620, `p`, `_`
</Patch>
Note: BTW, I just tried the .epub.kepub edit:'in 3.0.0', without any success (font and line spacing still locked)

This suggest that the values patched (see the code above) are NOT used by the .kepub renderer. (and if needed, the values to patch for kepub should be to find in another file of the firmware package?)

Last edited by byblo; 12-19-2013 at 08:10 PM.
byblo is offline   Reply With Quote
Old 12-22-2013, 10:49 AM   #642
evanft
Zealot
evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.
 
Posts: 108
Karma: 695156
Join Date: Apr 2013
Device: Kindle 4 NT
I haven't updated my Aura HD since 2.8. If I want to go to 3.1.1, do I use version 11 of the patcher along with GeoffR's conf file? Where do I get the libnickel file?
evanft is offline   Reply With Quote
Old 12-22-2013, 11:01 AM   #643
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Quote:
Originally Posted by evanft View Post
I haven't updated my Aura HD since 2.8. If I want to go to 3.1.1, do I use version 11 of the patcher along with GeoffR's conf file?
Yes, exactly. After installing FW 3.1.1 of course...
Quote:
Originally Posted by evanft View Post
Where do I get the libnickel file?
Very nicely explained by GeoffR here.
doubleshuffle is offline   Reply With Quote
Old 12-22-2013, 05:07 PM   #644
evanft
Zealot
evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.
 
Posts: 108
Karma: 695156
Join Date: Apr 2013
Device: Kindle 4 NT
I patched my Aura HD and got the footer to just where I like it, but it appears that opening up the little tool that lets you move quickly through the book and then using it to jump chapters reverts all the changes.
evanft is offline   Reply With Quote
Old 12-22-2013, 05:08 PM   #645
henriquemaia
Ignorant of many things
henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.henriquemaia can eat soup with a fork.
 
henriquemaia's Avatar
 
Posts: 63
Karma: 9304
Join Date: Feb 2011
Device: Kobo Libra 2
Quote:
Originally Posted by byblo View Post
Here you have [...]

This suggest that the values patched (see the code above) are NOT used by the .kepub renderer. (and if needed, the values to patch for kepub should be to find in another file of the firmware package?)
Thanks so much for the patch. I have already tried and works perfectly.

Note: Sorry for taking longer to reply, but I have no internet at home, so I have to travel to a relative's place in order to 'get connected'.
henriquemaia is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? the_m Kobo Reader 5 12-13-2012 03:40 PM
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys sufue Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-15-2012 10:39 AM
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless shaf Kobo Reader 5 12-04-2011 05:10 PM
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 JBlyth Kobo Reader 11 08-03-2011 05:38 PM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 06:50 AM


All times are GMT -4. The time now is 05:52 PM.


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