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 11-26-2018, 12:43 PM   #256
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 318
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by konstantinus View Post
Unfortunately I could not make a patch for kobo forma 4.11.11982
Spoiler:
Code:
Footnotes and alike:
  - Enabled: no
  - Description: |
      Change footnotes and alike font-size
#        - Touch # Trilogy
#        - Touch2 # Pika
#        - Mini # Pixie
#        - AuraHD # Dragon
#        - Aura # Phoenix
#        - Aura2 # Star
#        - Glo # Kraken - uses the values of Phoenix
#        - H2O # Dahlia - uses the values of Dragon
#        - H2O2 # Snow
#        - GloHD # Alyssum
#        - ClaraHD # Nova
#        - AuraOne # Daylight
  - FindZlib:  "QWidget[small"
# Pop-up header (footnotes and alike)
  - ReplaceZlib:
      Find:    "HeaderMediumElidedLabel[qApp_deviceIsTrilogy=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsTrilogy=true],\n\
                HeaderMediumLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 30px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsPhoenix=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsPhoenix=true],\n\
                HeaderMediumLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 36px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsDragon=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsDragon=true],\n\
                HeaderMediumLabel[qApp_deviceIsDragon=true] {\n  font-size: 46px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsAlyssum=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsAlyssum=true],\n\
                HeaderMediumLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 50px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsNova=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsNova=true],\n\
                HeaderMediumLabel[qApp_deviceIsNova=true] {\n  font-size: 50px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsDaylight=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsDaylight=true],\n\
                HeaderMediumLabel[qApp_deviceIsDaylight=true] {\n  font-size: 60px;\n}\n\
                HeaderMediumElidedLabel[qApp_deviceIsFrost=true],\n\
                HeaderMediumTouchLabel[qApp_deviceIsFrost=true],\n\
                HeaderMediumLabel[qApp_deviceIsFrost=true] {\n  font-size: 60px;\n}"
      Replace: "HeaderMediumElidedLabel,HeaderMediumTouchLabel,HeaderMediumLabel{font-size:60px;}"
# Pop-up text (footnotes and alike)
  - ReplaceZlib:
      Find:    "RegularTouchLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}\n\
                RegularTouchLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}\n\
                RegularTouchLabel[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}\n\
                RegularTouchLabel[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}\n\
                RegularTouchLabel[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}\n\
                RegularTouchLabel[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}\n\
                RegularTouchLabel[qApp_deviceIsFrost=true] {\n  font-size: 37px;\n}"
      Replace: "RegularTouchLabel{font-size:46px;}"

ReplaceZlib: find string not found in stream
You can't add anything inside find string. Definitively, red lines aren't in the version of nickel 4.11.11982 I have. There isn't any deviceIsFrost.
Good luck.
jcn363 is offline   Reply With Quote
Old 11-26-2018, 12:56 PM   #257
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by jcn363 View Post
You can't add anything inside find string. Definitively, red lines aren't in the version of nickel 4.11.11982 I have. There isn't any deviceIsFrost.
Good luck.
Yes, it was a wrong assumption. Everything works on Forma in its original form )) Thanks!
konstantinus is offline   Reply With Quote
Old 11-27-2018, 02:56 PM   #258
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 318
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by konstantinus View Post
Yes, it was a wrong assumption. Everything works on Forma in its original form )) Thanks!
You're welcome.
jcn363 is offline   Reply With Quote
Old 01-10-2019, 04:43 PM   #259
ebok
Junior Member
ebok began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2017
Device: Kobo Aura One
Is there a mod/patch for a reboot/shutdown button? I'm on the KA1 on the latest patch.

EDIT: In addition, is there a forced left/center/right justify option?

Last edited by ebok; 01-10-2019 at 04:46 PM.
ebok is offline   Reply With Quote
Old 01-10-2019, 07:06 PM   #260
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: 15,887
Karma: 25956868
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by ebok View Post
EDIT: In addition, is there a forced left/center/right justify option?
When reading, bring up the menus, tap the "Aa" icon to open the font settings. That has left and centred justification options. When you change this, it is saved for the current book and becomes the default for future books.
davidfor is offline   Reply With Quote
Old 01-11-2019, 09:15 AM   #261
dmapr
Evangelist
dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.
 
Posts: 402
Karma: 126590
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by davidfor View Post
When reading, bring up the menus, tap the "Aa" icon to open the font settings. That has left and centred justification options. When you change this, it is saved for the current book and becomes the default for future books.
Does that override the CSS justification rules applied at the p/div level? Or only default/body level?
dmapr is offline   Reply With Quote
Old 01-11-2019, 10:03 AM   #262
jackie_w
Wizard
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: 4,703
Karma: 11300109
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by dmapr View Post
Does that override the CSS justification rules applied at the p/div level? Or only default/body level?
As usual with Kobo CSS, the answer depends on whether you're talking about epub or kepub.

Kobo's current override defaults when using the Aa font menu:
epub:
Code:
body {text-align: %1 !important;}
body {line-height: %1 !important;}
body, p { font-family: -ua-default !important;}
kepub:
Code:
div, p {text-align: %1 !important;}
body, p { line-height: %1 !important; }
* { font-family: %1 !important; }
In general, kepub uses more aggressive overrides. Which override policy is "better" is entirely subjective and will usually depend on how much TLC you've put into correcting the book's own internal CSS

No matter what the current defaults are, there are a few Kobo patches available to change override defaults for those who want them.
jackie_w is offline   Reply With Quote
Old 01-12-2019, 12:38 AM   #263
dmapr
Evangelist
dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.
 
Posts: 402
Karma: 126590
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Thanks @jackie_w. I read exclusively epub and a fair number of books use div, not p. That explains why I was struggling to set the alignment I wanted using the Aa menu when I got my first Kobo

I "fix" (or rather tune to my liking) the CSS of every book I own so I'm mostly oblivious to how the overrides work as I take out those styles.
dmapr 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
Unofficial Sigil patches varlog Sigil 8 11-12-2014 07:14 PM
Index: Making a linked index in epub virtual_ink ePub 21 10-20-2011 12:23 AM
DR800 Long time to index files after upgrading firmware? Albyr iRex 29 06-18-2011 06:23 PM
How to apply the enhancements/patches ? nubbol Calibre 2 09-05-2010 12:42 AM
iLiad Applying DR GTK+ patches to iLiad ericshliao iRex Developer's Corner 16 03-14-2010 06:39 AM


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


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