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 11-19-2013, 09:50 AM   #451
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 dmapr View Post
Not that I know of. Metazoa just mentioned that he hasn't done it yet, but didn't say if he had a chance to even start looking into it.
I hope he wont give up. His patch would be perfect with these additions
byblo is offline   Reply With Quote
Old 11-19-2013, 11:19 PM   #452
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by byblo View Post
I hope he wont give up. His patch would be perfect with these additions
He didn't And there's some other goodies in there, too

http://rghost.ru/50295847
dmapr is offline   Reply With Quote
Advert
Old 11-20-2013, 12:05 AM   #453
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
MZ's Kobo Patcher 10

Here's a translation of Metazoa's post about patcher 10


mz_koboreaderpatch_10, anniversary release

In the new version:

- Kobo Patch Generator updated to version 1.5: The correction of minor bugs;
- For 2.10.0 and 3.0.0 new patch 'Search in Library by default': does the default search in the device library, not in the store BookStore;
- For 2.10.0 and 3.0.0 new patch 'Ignore book internal CSS stylesheet': reader ignores the built-in styles of the book, which makes it impossible to have unregulated leading, non-removable fonts, etc.;
- For 2.10.0 and 3.0.0 new patch 'Ignore book TOC navpoints' (disabled by default!) NavPoint reader ignores directives in the file with the contents of the book, as a result - the book is always opened on the first page of the first HTML-section. This patch is disabled by default because there is no guarantee that such behavior is always correct: the authors epub-file is usually knows best which page of the book should be opened first.

How to install a personal patch:

1. Download archive: http://rghost.ru/50295847
2. Unpack the archive to a convenient folder.
3. Copy the kpg.conf and libnickel.so.1.0.0 files for your version of firmware to a convenient folder along with kpg.exe.
4. With any text editor edit the file kpg.conf to your liking and understanding.
5. Run kpg.exe (preferably in the console) and wait for it to finish.
5a. Connect your Kobo ereader to your computer
6. Transfer the KoboRoot.tgz file generated by the patcher to the .kobo directory on the Kobo's internal storage.
7. Safely eject the Kobo ereader from your OS.
8. Disconnect the USB cable from the Kobo ereader.
9. Wait for the installation to complete. The patch will install and the device will reboot.
10. Rejoice.

How to remove personal patch (return-reader in the "factory" condition):

Replace a previous statement on paragraph 4: "4. Any file with a text editor do kpg.conf empty (or comment out all lines in it)." and execute it.


Regards,
David

Last edited by DNSB; 11-20-2013 at 12:39 AM.
DNSB is offline   Reply With Quote
Old 11-20-2013, 12:36 AM   #454
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Patcher v10 has an item to have the search from the home screen to go to the library first. While it works, when you open the search, neither option is shown as selected which is a touch odd the first couple of times you see it.

Also the disable stylesheet only works for CSS in stylesheet files. If you have one of those %^&*(\- epubs that does all the CSS in the chapter files using the <style></style> tags or inline, this has no effect.

Regards,
David
DNSB is offline   Reply With Quote
Old 11-20-2013, 02:27 PM   #455
Mora
Junior Member
Mora began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2013
Device: PocketBook Touch HD 3
Okay i installed the patch and its working fine. But is there anyway to go real fullscreen. Because even after removing the footer there is still space around the edges and the top. I want to use the entire screen. So is there anyway i can remove the header too?

Im on kobo glo 2.10.0
Mora is offline   Reply With Quote
Advert
Old 11-20-2013, 05:27 PM   #456
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 dmapr View Post
He didn't And there's some other goodies in there, too
Great ^^ Many thanks to Metazoa.

Unfortunately, the patch: "Ignore book internal CSS stylesheet" is too aggressive, since it disables everything, even the justification, making text presentation very bad looking. (this said, I made some patches that should help, see below)

Quote:
Originally Posted by DNSB View Post
Also the disable stylesheet only works for CSS in stylesheet files. If you have one of those %^&*(\- epubs that does all the CSS in the chapter files using the <style></style> tags or inline, this has no effect.
Here are some patches which seems to work pretty well (ONLY tested with .epub)

There are 3 additions:
- Force user selected font (Ignore external font-family in CSS and style tag)
- Force user selected line spacing (Ignore external line-height in CSS and style tag)
And the little bonus, a fix for something that have been annoying me for a long time, the stretched cover ^^;
- Force aspect ratio on pictures (Ignore preserveAspectRatio)

This is for 3.0.0 firmware only (but it should be easy to apply them to older firmwares)
Code:
<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... (tested ONLY on .epub)
#          Patch by byblo
replace_string = 010FB4B1, `f`, `_`
replace_string = 010FB529, `f`, `_`
replace_string = 010FB5A1, `f`, `_`
replace_string = 010FB619, `f`, `_`
replace_string = 010FB68A, `f`, `_`
replace_string = 0112B63D, `f`, `_`
replace_string = 0112BFAC, `f`, `_`
replace_string = 0112C1FD, `f`, `_`
replace_string = 0112EDE9, `f`, `_`
replace_string = 0112F4B2, `f`, `_`
replace_string = 01130690, `f`, `_`
replace_string = 01130FC4, `f`, `_`
replace_string = 0113114C, `f`, `_`
replace_string = 01159268, `f`, `_`
replace_string = 0115D385, `f`, `_`
replace_string = 01161C24, `f`, `_`
replace_string = 01161C50, `f`, `_`
replace_string = 01161C6C, `f`, `_`
replace_string = 01400C27, `f`, `_`
replace_string = 01400E4E, `f`, `_`
#Note: this is the main entry that has to be replaced to avoid reading font-family on CSS and <style> tags
replace_string = 0143C65C, `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... (tested ONLY on .epub)
#          Patch by byblo
replace_string = 010FB6DD, `l`, `_`
replace_string = 0112BE32, `l`, `_`
replace_string = 0112EE25, `l`, `_`
replace_string = 011306A4, `l`, `_`
replace_string = 0113A3C4, `l`, `_`
replace_string = 0113A3ED, `l`, `_`
replace_string = 0113A428, `l`, `_`
replace_string = 0115806A, `l`, `_`
replace_string = 0115D3B9, `l`, `_`
replace_string = 0115FB1F, `l`, `_`
#Note: this is the main entry that has to be replaced to avoid reading line-height on CSS and <style> tags
replace_string = 0143B328, `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 (tested ONLY on .epub)
replace_string = 1439358, `p`, `_`
</Patch>
Note: Do not forget to disable the "Ignore book internal CSS stylesheet", or the 2 first patches wont have any effect...

As you can see, the patches will force the ereader to totally ignore the font-famliy & line-height (someone wants to try the net browser?). So I'm not sure it wont mess something else. But as far as I tested, everything on the ereader seems working well.

Here is a test epub, in case needed (attached)
Attached Files
File Type: epub locked_test.epub (11.3 KB, 307 views)
byblo is offline   Reply With Quote
Old 11-20-2013, 10:26 PM   #457
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Mora View Post
Okay i installed the patch and its working fine. But is there anyway to go real fullscreen. Because even after removing the footer there is still space around the edges and the top. I want to use the entire screen. So is there anyway i can remove the header too?

Im on kobo glo 2.10.0
The space around the edges are the right and left margins. You can set the CSS to reduce those margins to 0 and with the margin slider set to 0, you get pretty much edge to edge text. The top margin is pretty minimal on epubs in 2.10.0 and 3.0.0, on kepubs, it is set quite a bit larger making it rather similar to most dead tree books. At this point in time, there is no method of controlling the header size in kepubs.

Regards,
David
DNSB is offline   Reply With Quote
Old 11-21-2013, 08:06 AM   #458
skip_sands
Enthusiast
skip_sands began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Apr 2013
Device: Kobo Aura HD, Kindle Paperwhite
version 10 is fantastic as far as I used it. but is there a way to get rid of the empty lines between paragraphs? it seems the use of the "ignore css" patch adds those empty lines again.
skip_sands is offline   Reply With Quote
Old 11-21-2013, 08:37 AM   #459
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,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by skip_sands View Post
version 10 is fantastic as far as I used it. but is there a way to get rid of the empty lines between paragraphs? it seems the use of the "ignore css" patch adds those empty lines again.
Gee... possibly inter-paragraph spacing was specified in CSS which is now disabled?
PeterT is offline   Reply With Quote
Old 11-21-2013, 09:20 AM   #460
Bonex
Connoisseur
Bonex began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Oct 2010
Device: KDXG, Kobo Glo, Kobo Aura HD
Quote:
Originally Posted by skip_sands View Post
version 10 is fantastic as far as I used it. but is there a way to get rid of the empty lines between paragraphs? it seems the use of the "ignore css" patch adds those empty lines again.
I think that happens because if the CSS is completely ignored then defaults apply, and if I'm not mistaken <p> paragraph tags usually have a non-zero margin around them.

IMHO this patch can cause more problems than benefits, because you completely lose all styling and formatting, and it's not some option you can tap when you need it, so I'll pass on this.
Bonex is offline   Reply With Quote
Old 11-21-2013, 10:36 AM   #461
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
@dmapr: I've been trying the 'Ignore book TOC navpoints' patch.

Unfortunately, it does not work everytime, and when it does, the TOC is obviously missing from the book, making the patch barely useful, since it breaks the TOC navigation.

I know I'm annoying, but could Metazoa take in consideration again the david's advice :
Quote:
Originally Posted by davidfor View Post
But, he also needs to consider the reading status of the book. This is stored in the database for the book.

- Unread - ReadStatus=0 - Open to first TOC entry
- Reading - ReadStatus=1 - Open using reading position stored in database
- Finished - ReadStatus=2 - Open to first page of the book.

That is why I suggested looking at the path for opening a finished book. As there is already an execution path that will do what is desired, finding a way to use that would solve the problem.
This is the last feature that I need to be fully happy with my Glo

Last edited by byblo; 11-21-2013 at 10:36 AM. Reason: typo
byblo is offline   Reply With Quote
Old 11-21-2013, 10:38 AM   #462
skip_sands
Enthusiast
skip_sands began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Apr 2013
Device: Kobo Aura HD, Kindle Paperwhite
Quote:
Originally Posted by Bonex View Post
I think that happens because if the CSS is completely ignored then defaults apply, and if I'm not mistaken <p> paragraph tags usually have a non-zero margin around them.

IMHO this patch can cause more problems than benefits, because you completely lose all styling and formatting, and it's not some option you can tap when you need it, so I'll pass on this.
Thanks a lot for the fast reply!

Is it possible to change the default margins in the kobo reader itself or anything I can apply in conversion in calibre?
skip_sands is offline   Reply With Quote
Old 11-21-2013, 11:10 AM   #463
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
In calibre there is an option at the conversion side that removes empty lines between paragraps, even an option to insert an ident at the place it originally was.
The same with margins.
Nick_1964 is offline   Reply With Quote
Old 11-21-2013, 01:15 PM   #464
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Nick_1964 View Post
In calibre there is an option at the conversion side that removes empty lines between paragraps, even an option to insert an ident at the place it originally was.
The same with margins.
No there's nothing you can do in calibre. The css patch says 'ignore all epub stylesheets'. At least this is true for standard epubs, I don't know if it would be the same for kepubs.

For those who don't care if their epubs are turned into glorified TXT files, this particular patch may be seen as a good thing. For everyone else, it's far too much of a sledgehammer to crack a nut.
jackie_w is offline   Reply With Quote
Old 11-21-2013, 02:17 PM   #465
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by jackie_w View Post
No there's nothing you can do in calibre. The css patch says 'ignore all epub stylesheets'. At least this is true for standard epubs, I don't know if it would be the same for kepubs.

For those who don't care if their epubs are turned into glorified TXT files, this particular patch may be seen as a good thing. For everyone else, it's far too much of a sledgehammer to crack a nut.
With Calibre you can insert a @page rule in every HTML with margins and stuff like that, as it is not in the .css it can't be ignored.
And you can use an xpgt file in the misc directory of the book with the styles in it, that will also be ignored by the patch.
Only.. what takes more time, to adjust an ebook taking out the wrong lines in the .css file and don't use the patch, or use the patch but build an alternative way in the book so margins are not ignored.
For myself, I won't use that part of the patch, because I have more readers, so I convert all books with calibre, insert Amasis font in it, with my margins, so it works in every reader.
Nick_1964 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 09:58 AM.


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