Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2015, 10:26 PM   #46
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 Nick_1964 View Post
So switching fonts does not much, I only have to adapt the lineheight again,it seems not font related.
The problem occurs in kepubs with all fonts if you make the line spacing close enough, but some fonts allow a closer line spacing than others before the problem starts.

I don't think there is any way to fix this with a patch. My guess is that it is a design fault with the way the KEPUB reader renders pages: it seems like it renders the whole html file at once and then tries to split it into separate pages afterwards. The KEPUB reader is based on the WebKit library which was designed for web pages not ebooks. The EPUB reader does it right, perhaps because it is based on RMSDK which was designed for reading ebooks.

Edit: There is another KEPUB bug which I think has the same cause: If there is a link near the top of a page you can trigger the link by tapping at the bottom of the previous page.

Edit: The Kobo firmware uses a very old version of WebKit. Perhaps the problem will be fixed when they update to a newer version.

Last edited by GeoffR; 07-04-2015 at 11:02 PM. Reason: ... old version of WebKit ....
GeoffR is offline   Reply With Quote
Old 07-05-2015, 06:12 AM   #47
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 GeoffR View Post
Edit: The Kobo firmware uses a very old version of WebKit. Perhaps the problem will be fixed when they update to a newer version.
IF they do that... problem with some books is that they have pre defined line heights in the css.
No problem to edit it, but a big negative point if you are in bed and open the book for the first time, if lineheight is to small,your book turn into unreadable.
Nick_1964 is offline   Reply With Quote
Advert
Old 07-28-2015, 07:14 AM   #48
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
I would like geometric sequence refresh rate, unfortunately, i don't know how to do this, i put it on yes but it doesnt work, anyone would be so kind to help me out here?

<Patch>
patch_name = `Custom page refresh options`
patch_enable = `yes`
# cmp r5, #7; bne.n; --> cmp r5, #6; bls.n;
replace_bytes = 7532EC, 07 2D 9A D1, 06 2D 9A D9
#
# Values for replacement: (Alternative 1, arithmetic sequence e.g. 1,2,3,...,12)
# Base (use this value for the first menu option):
replace_int = 75321C, 1, 1
# Increment (add this value to get each successive menu option):
replace_int = 7532EA, 1, 1
# Maxmium (stop adding options when this value is exceeded):
replace_int = 7532EC, 6, 12
#
# Values for replacement: (Alternative 2, geometric sequence 1,2,4,8,16,32,64)
# Base (use this value for the first menu option):
#replace_int = 75321C, 1, 1
# Double to get each successive menu option:
#replace_bytes = 7532EA, 01 35, 6D 00
# Maxmium (stop adding options when this value is exceeded):
#replace_int = 7532EC, 6, 64
</Patch>

----

Also, when i edit the patch files, and double-click 3.16.0.bat again to make a new KoboRoot.tgz, all i get in the target folder is a usr folder?

Last edited by outlandos; 07-28-2015 at 07:42 AM.
outlandos is offline   Reply With Quote
Old 07-28-2015, 07:53 AM   #49
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 outlandos View Post
I would like geometric sequence refresh rate, unfortunately, i don't know how to do this, i put it on yes but it doesnt work, anyone would be so kind to help me out here?


----

Also, when i edit the patch files, and double-click 3.16.0.bat again to make a new KoboRoot.tgz, all i get in the target folder is a usr folder?
Did you place the firmware file ( kobo-update-3.16.0.zip) in the source directory to ?? if it isn't there, it can't produce a KoboRoot.tgz file in the target folder. The zip file must stay there as a zip (don't unzip it) .
Nick_1964 is offline   Reply With Quote
Old 07-28-2015, 08:04 AM   #50
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by Nick_1964 View Post
Did you place the firmware file ( kobo-update-3.16.0.zip) in the source directory to ?? if it isn't there, it can't produce a KoboRoot.tgz file in the target folder. The zip file must stay there as a zip (don't unzip it) .
One of the lines was faulty, a faulty value, so its fixed, thanks.

All i would like to know is how to get that refresh rate, what should i edit in those lines?
outlandos is offline   Reply With Quote
Advert
Old 07-28-2015, 08:07 AM   #51
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 outlandos View Post
One of the lines was faulty, a faulty value, so its fixed, thanks.

All i would like to know is how to get that refresh rate, what should i edit in those lines?
<Patch>
patch_name = `Custom page refresh options`
patch_enable = `yes`
# cmp r5, #7; bne.n; --> cmp r5, #6; bls.n;
replace_bytes = 7532EC, 07 2D 9A D1, 06 2D 9A D9
#
# Values for replacement: (Alternative 1, arithmetic sequence e.g. #1,2,3,...,12)
# Base (use this value for the first menu option):
#replace_int = 75321C, 1, 1
# Increment (add this value to get each successive menu option):
#replace_int = 7532EA, 1, 1
# Maxmium (stop adding options when this value is exceeded):
#replace_int = 7532EC, 6, 12
#
# Values for replacement: (Alternative 2, geometric sequence 1,2,4,8,16,32,64)
# Base (use this value for the first menu option):
replace_int = 75321C, 1, 1
# Double to get each successive menu option:
replace_bytes = 7532EA, 01 35, 6D 00
# Maxmium (stop adding options when this value is exceeded):
replace_int = 7532EC, 6, 64
</Patch>

If this works successful apply to your reader, then the refresh rate can be changed in the reading menu of your reader, then the refresh rate would be 1,2,4,8...

Last edited by Nick_1964; 07-28-2015 at 08:17 AM.
Nick_1964 is offline   Reply With Quote
Old 07-28-2015, 08:13 AM   #52
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
Delete please
Nick_1964 is offline   Reply With Quote
Old 07-28-2015, 08:15 AM   #53
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by Nick_1964 View Post
Wait please

When making the zip file i get an error, saying line 340 is faulty: replace_int = 7532EC, 6,64

And just now i see your edits
outlandos is offline   Reply With Quote
Old 07-28-2015, 08:18 AM   #54
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 outlandos View Post
When making the zip file i get an error, saying line 340 is faulty: replace_int = 7532EC, 6,64

And just now i see your edits
Try again with the values in this post:
https://www.mobileread.com/forums/sho...5&postcount=51
it should be ok.
Nick_1964 is offline   Reply With Quote
Old 07-28-2015, 08:30 AM   #55
outlandos
Connoisseur
outlandos doesn't litteroutlandos doesn't litter
 
outlandos's Avatar
 
Posts: 68
Karma: 152
Join Date: Jun 2015
Device: Kobo Glo HD
Quote:
Originally Posted by Nick_1964 View Post
Try again with the values in this post:
https://www.mobileread.com/forums/sho...5&postcount=51
it should be ok.
Thanks, it works!
outlandos is offline   Reply With Quote
Old 07-28-2015, 08:31 AM   #56
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 outlandos View Post
Thanks, it works!
Done with pleasure.
Nick_1964 is offline   Reply With Quote
Old 07-31-2015, 03:28 PM   #57
jchtt
Member
jchtt began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2011
Device: Kindle Paperwhite 3, Kobo Aura H2O
I noticed that starting from 3.12.1, you introduced a hyphenation patch for the kepub reader that allows automatic hyphenation for left-aligned books, which is marvellous! May I asked how you figured out the patch and if there is any hope of achieving something similar with the regular epub viewer?
jchtt is offline   Reply With Quote
Old 07-31-2015, 04:06 PM   #58
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,660
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Are there going to be patches for 3.16.10?
JSWolf is offline   Reply With Quote
Old 08-01-2015, 04:16 AM   #59
jupiter276
Junior Member
jupiter276 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: kobo glo hd
Hi everyone. I am using kobo glo HD.

I am trying to see the structure differences between .Patch files from GeoffR and the .txt files from others (like tshering) and don't know how they are structured. I am new to both the kobo firmware and the forum.

What I am trying to do is to fix the Vietnamese font appreance in book titles, Pocket article titles like huuduc1kk2 did here. Though I managed to add more Vietnamese fonts and read books in those fonts (Arial, Times New Roman)

Because the firmwares are different (I am using 3.16.0), so my effort to copy Patch content from huuduc1kk2 to GeoffR's was failed.

Any help is highly appreciated.

Thanks.


P/S: I follow the guidelines from tshering for the patch 3.15.0 and I could now see Book titles, Pocket article titles in Vietnamese, though the Sleeping mode, Pocket title is not in Vietnamese yet. If I could understand the structures of the patch, I would have figure it out.

Last edited by jupiter276; 08-01-2015 at 09:42 AM.
jupiter276 is offline   Reply With Quote
Old 08-01-2015, 11:15 PM   #60
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 jchtt View Post
I noticed that starting from 3.12.1, you introduced a hyphenation patch for the kepub reader that allows automatic hyphenation for left-aligned books, which is marvellous! May I asked how you figured out the patch and if there is any hope of achieving something similar with the regular epub viewer?
The hyphenation for kepubs uses completely different code than is used for epubs. All the patch does is change the built-in stylesheet used by the KEPUB reader so that hyphenation is (or is not) turned on, regardless of the setting of the justification button.

However there is nothing in the built-in stylesheet used by the EPUB reader that affects hyphenation, whether it is off or on seems to be decided automatically by the epub hyphenation code depending on the justification of each individual paragraph.

If you can find a way to make the EPUB reader hyphenate left-aligned text by changing the book's stylesheet then it might be possible to make an addition to the built-in stylesheet too, but I don't know if the EPUB reader allows that.
GeoffR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 09:59 AM
Instructions for patching firmware 3.15.0 GeoffR Kobo Developer's Corner 146 05-24-2016 06:10 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.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


All times are GMT -4. The time now is 02:43 AM.


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