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 02-23-2016, 05:34 PM   #31
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,549
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Unfortunately its not really a developer issue; it's marketing....
PeterT is offline   Reply With Quote
Old 02-23-2016, 09:41 PM   #32
jackastor
Wizard
jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.
 
jackastor's Avatar
 
Posts: 1,847
Karma: 3212428
Join Date: Jun 2011
Device: iphone stanza, kobo touch,ASUS TF300,KOBO GLO, Kobo Aura HD, Kobo Mini
Quote:
Originally Posted by Atgm View Post
Good day, GeoffR! Is it possible to make a patch for landscape mode?
I am curious as to what the purpose of a landscape mode would be for Ereading? Unless of course you have a completely different idea for the use of landscape mode?

Either way I cant see why it couldn't be an option of course.

regards

Jack
jackastor is offline   Reply With Quote
Advert
Old 02-24-2016, 10:41 AM   #33
Atgm
Junior Member
Atgm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
Thanks guys for your answers
Atgm is offline   Reply With Quote
Old 02-24-2016, 10:53 AM   #34
Atgm
Junior Member
Atgm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
Quote:
Originally Posted by jackastor View Post
I am curious as to what the purpose of a landscape mode would be for Ereading? Unless of course you have a completely different idea for the use of landscape mode?

Either way I cant see why it couldn't be an option of course.

regards

Jack
In landscape mode does not occur strabismus
Atgm is offline   Reply With Quote
Old 02-24-2016, 11:06 AM   #35
Atgm
Junior Member
Atgm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
Friends, tell me! What is the update removed landscape mode? In what firmware this mode is present?
Atgm is offline   Reply With Quote
Advert
Old 02-24-2016, 11:30 AM   #36
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 Atgm View Post
Friends, tell me! What is the update removed landscape mode? In what firmware this mode is present?
To my knowledge, there has never been a firmware that supported landscape mode.

If you really need to read in landscape mode, you can achieve something like that by converting your files into kepub format and setting
Code:
html {-epub-writing-mode: vertical-rl}
(One could look whether a patch could include this css block so that it overwrites existing settings.)

Cf. this post and that and the ones following it.

Edit: In older FWs, it was possible to make kepubs read an external css file. You can find more information about that by searching this forum.

Edit 2: The simplest way however is to use one of the alternative readers (search for KOReader, and Coolreader from the PBChess package), if you do not insist of using nickel.

Last edited by tshering; 02-24-2016 at 02:35 PM.
tshering is offline   Reply With Quote
Old 02-24-2016, 11:54 AM   #37
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 Atgm View Post
Friends, tell me! What is the update removed landscape mode? In what firmware this mode is present?
There hasn't been a landscape mode enabled in any firmware version that I know of.

It is possible that the RMSDK has code for a landscape mode that Kobo haven't enabled, like they haven't enabled the fetching of books directly from Adobe's server without going through ADE although there is code for doing this in the RMSDK. But this is just my speculation. If it was true then there might be a possibility of a patch enabling it, but if not then there would be next to no chance of implementing something as complicated as landscape mode from scratch just with a patch.
GeoffR is offline   Reply With Quote
Old 02-25-2016, 09:51 AM   #38
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
Help me please with the correct formatting of "Custom reading footer style".
To keep it simple, could someone send me a correctly commented-uncommenetd section of this patch for Aura? Thank you in advance.
LittleBiG is offline   Reply With Quote
Old 02-25-2016, 10:16 AM   #39
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: 79,836
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by LittleBiG View Post
Help me please with the correct formatting of "Custom reading footer style".
To keep it simple, could someone send me a correctly commented-uncommenetd section of this patch for Aura? Thank you in advance.
Try the following.. it goes in libnickel.so.1.0.0.patch and replaces the patch that's there.

Code:
<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
# Multi-version patch: 3.19.5613 - 3.19.5761+
# patch_group = `Reading footer alternatives`
#
## This patch customises the following properties of the reading footer:
##
##  * Footer height (the amount of the screen reserved for the footer.)
##  * Caption font size (Caption = page number or other progress indicator)
##  * Caption top margin, which changes its vertical position within the footer.
##  * Caption font family.
#
# When editing the replacement values below, BE CAREFUL NOT TO CHANGE THE LENGTH
# OF THE REPLACEMENT STRING! If a replacement string is too long you will get
# an error when making the patch, but if one is too short then there will be no
# error, but strange things will happen to the reading footer.
#
find_base_address = `ReadingFooter {\n\tqproperty-footerMargin: 105;\n}\n\n`
replace_string = 0000, `ReadingFooter {\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceIsDragon="true"] {\n\tqproperty-footerMargin: 170;\n}`, `ReadingFooter { qproperty-footerMargin: 105; min-height: 70px; max-height: 70px; }`
#
# 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: 100;`
replace_string = 002D, `min-height: 70px;`, `min-height: 26px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 26px;`
# Example replacement footer height values: AuraHD/H2O/GloHD
#replace_string = 001A, `footerMargin: 105;`, `footerMargin: 100;`
#replace_string = 002D, `min-height: 70px;`, `min-height: 26px;`
#replace_string = 003F, `max-height: 70px;`, `max-height: 26px;`
#
#
find_base_address = `#caption {\n\tfont-size: 16px;`
Replace_string = 0000, `#caption {\n\tfont-size: 16px;\n}\n\n#caption[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 20px;\n}\n\n#caption[qApp_deviceIsDragon="true"] {\n\tfont-size: 26px;\n}\n\n#caption[qApp_deviceIsAlyssum="true"] {\n\tfont-size: 30px;\n}\n\n#caption[qApp_localeName="ja_JP"] {\n\tfont-family: Sans-SerifJP;\n}`, `#caption {font-size: 16px;margin-top: 00px;}\n#caption[qApp_deviceIsPhoenix="true"] {font-size: 20px;}\n#caption[qApp_deviceIsDragon="true"] {font-size: 26px;}\n#caption[qApp_deviceIsAlyssum="true"] {font-size: 30px;}\n#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`
#
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 20px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
#
# Replacement caption top margin value for all devices:
# (A negative top margin moves the caption text upwards,
# further from the bezel and closer to the page content.)
replace_string = 001A, `margin-top: 00px;`, `margin-top:-08px;`
#
# Uncomment to use a fixed replacement caption font family, for all devices:
# (You can change Avenir to another font name of your choice, but Avenir or
# Georgia are recommended because other fonts may not be loaded when the book
# is first opened and so might cause problems. Unlike other strings it is OK
# if this replacement string is a bit longer or shorter than the original.)
replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Avenir;}
</Patch>
JSWolf is offline   Reply With Quote
Old 02-25-2016, 11:13 AM   #40
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
Thanks, but why didn't you do any changes here?
Code:
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 20px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
LittleBiG is offline   Reply With Quote
Old 02-25-2016, 11:19 AM   #41
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: 79,836
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by LittleBiG View Post
Thanks, but why didn't you do any changes here?
Code:
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 20px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
You don't have to change everything. Also, you only have to change things for the device you have. I have an H2O and I don't know how the font size at 20px will look on an Aura. If you find the footer font size too larger or want to try smaller, you can change the 20px to something like 16px and see how it goes.
JSWolf is offline   Reply With Quote
Old 02-25-2016, 11:39 AM   #42
Atgm
Junior Member
Atgm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
If you really need to read in landscape mode, you can achieve something like that by converting your files into kepub format and setting
Code:
html {-epub-writing-mode: vertical-rl}
Tshering, Where to write this code?
Atgm is offline   Reply With Quote
Old 02-25-2016, 02:01 PM   #43
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 Atgm View Post
If you really need to read in landscape mode, you can achieve something like that by converting your files into kepub format and setting
Code:
html {-epub-writing-mode: vertical-rl}
Tshering, Where to write this code?
The code is supposed to go into the css file (that you can find inside of most epub files). Have a look at this post. There, you can also find an example book, so that you can simply test how it looks. The font that I recommended than is not any longer shipped with the kobo firmware, you have to find out yourself which font does the job best (maybe one of the Japanese fonts will work best). Looking at my old post, I see that it is not necessary to convert the books to kepub. I just did not remember correctly. If you are using Calibre you can possibly insert the above line of code without much effort into all your epubs. But I am not much of a Calibre user, so I cannot help you with this.

I would say, try my test file. You will see that there are some problems (many fonts do not display the punctuation marks and similar correctly, the positions for turning the pages is a little unexpected, etc.). If you then still want to go this way, try to figure out how to modify css settings with Calibre (or edit your epubs manually). If you need more help, ask again in this forum, but please not in this thread, with is dedicated to patching firmware 3.19.5761.

Last edited by tshering; 02-25-2016 at 02:08 PM.
tshering is offline   Reply With Quote
Old 02-25-2016, 04:33 PM   #44
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: 79,836
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by LittleBiG View Post
Thanks, but why didn't you do any changes here?
Code:
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 20px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
I tried changing 20px for the H2O to 16px and it was way too small.
JSWolf is offline   Reply With Quote
Old 02-26-2016, 12:30 AM   #45
Atgm
Junior Member
Atgm began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
Quote:
Originally Posted by tshering View Post
The code is supposed to go into the css file (that you can find inside of most epub files). Have a look at this post. There, you can also find an example book, so that you can simply test how it looks. The font that I recommended than is not any longer shipped with the kobo firmware, you have to find out yourself which font does the job best (maybe one of the Japanese fonts will work best). Looking at my old post, I see that it is not necessary to convert the books to kepub. I just did not remember correctly. If you are using Calibre you can possibly insert the above line of code without much effort into all your epubs. But I am not much of a Calibre user, so I cannot help you with this.

I would say, try my test file. You will see that there are some problems (many fonts do not display the punctuation marks and similar correctly, the positions for turning the pages is a little unexpected, etc.). If you then still want to go this way, try to figure out how to modify css settings with Calibre (or edit your epubs manually). If you need more help, ask again in this forum, but please not in this thread, with is dedicated to patching firmware 3.19.5761.
Understand
Atgm 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 07:41 PM.


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