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-28-2018, 10:24 AM   #46
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: 285
Karma: 1747886
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
Sorry, maybe I missed something, is the final answer that the pop-up footnotes cannot be italicized?
Yes, you can.
You must add #text {font-style: italic;} into replace stream.
Perhaps something like this
Spoiler:
Code:
footnotes and alike:
  - Enabled: no
  - Description: |
  - FindZlib: "#ConfirmationDialog"
  - ReplaceZlib:
      Find:    "#ConfirmationDialog {\n  background-color: transparent;\n}\n\
                #ConfirmationDialog[isSansSerifDialog=true][qApp_deviceIsTrilogy=true] {\n  qproperty-widgetSpacing: 0;\n}\n\
                TouchLabel {\n  qproperty-forceRepaintOnInvert: true;\n  qproperty-highQualityInvert: true;\n}\n\
                #frame {\n  background-color: #FFFFFF;\n}\n\
                #header,\n#title,\n#text {\n  padding: 0px;\n  font-family: Georgia;\n  font-style: normal;\n}\n\
                #header[qApp_localeName=\"ja_JP\"],\n#title[qApp_localeName=\"ja_JP\"],\n#text[qApp_localeName=\"ja_JP\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}\n\
                #header[qApp_localeName=\"ja_JP\"],\n#title[qApp_localeName=\"ja_JP\"],\n#text[qApp_localeName=\"ja_JP\"] {\n  qproperty-leading: 5;\n}\n\
                #title[qApp_deviceIsTrilogy=true] {\n  margin-bottom: 15px;\n}\n\
                #title[qApp_deviceIsPhoenix=true] {\n  margin-bottom: 20px;\n}\n\
                #title[qApp_deviceIsDragon=true] {\n  margin-bottom: 28px;\n}\n\
                #title[qApp_deviceIsDaylight=true] {\n  margin-bottom: 36px;\n}\n\
                #text {\n  font-family: Avenir;\n}\n\
                #text[qApp_localeName=\"ja_JP\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}\n\
                #text[qApp_localeName=\"tr_TR\"] {\n  font-family: Georgia;\n}\n\
                #text[isTextEditDialog=true] {\n  qproperty-visible: false;\n}\n\
                #text[isSansSerifDialog=true] {\n  font-family: Avenir;\n  padding: 0px;\n}\n\
                #text[isSansSerifDialog=true][qApp_deviceIsDaylight=true] {\n  padding-bottom: 12;\n}\n\
                #text[isSansSerifDialog=true][qApp_deviceIsDragon=true] {\n  padding-bottom: 8;\n}\n\
                #rejectButton,\n#acceptButton {\n  qproperty-primaryButton: true;\n}\n\
                #pixmapContainerLayout[qApp_deviceIsTrilogy=true] {\n  margin-bottom: 38px;\n}\n\
                #pixmapContainerLayout[qApp_deviceIsPhoenix=true] {\n  margin-bottom: 45px;\n}\n\
                #pixmapContainerLayout[qApp_deviceIsDragon=true] {\n  margin-bottom: 54px;\n}\n\
                #pixmapContainerLayout[qApp_deviceIsDaylight=true] {\n  margin-bottom: 70px;\n}\n\
                #keyboardStatusContainer,\n#keyboardStatusContainer * {\n  background: #000000;\n  color: #FFFFFF;\n}\n\
                #keyboardStatusText {\n  background-color: solid black;\n  font-family: Georgia;\n  padding: 0px;\n}\n\
                #keyboardFrame {\n  qproperty-visible: false;\n}\n\
                #keyboardFrame[isTextEditDialog=true],\n#keyboardFrame[isPasswordDialog=true] {\n  qproperty-visible: true;\n}\n\
                #closeButton {\n  background-color: transparent;\n}\n\
                #contentContainer {\n  qproperty-topMargin: 0px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsTrilogy=true] {\n  font-size: 17px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsPhoenix=true] {\n  font-size: 22px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsDragon=true] {\n  font-size: 26px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsAlyssum=true] {\n  font-size: 30px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsNova=true] {\n  font-size: 30px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text[qApp_deviceIsDaylight=true] {\n  font-size: 34px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsTrilogy=true] {\n  font-size: 19px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsPhoenix=true] {\n  font-size: 23px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsDragon=true] {\n  font-size: 29px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsAlyssum=true] {\n  font-size: 32px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsNova=true] {\n  font-size: 32px;\n}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title[qApp_deviceIsDaylight=true] {\n  font-size: 37px;\n}"
# Font in pop-up text (footnotes and alike) -> #header,#title,#text
# #text italicized
      Replace: "#ConfirmationDialog{background-color:transparent;}\n\
                TouchLabel{qproperty-forceRepaintOnInvert:true;qproperty-highQualityInvert:true;}\n\
                #frame{background-color:white;}\n\
                #header,#title,#text{padding:0px;font-family:Georgia;font-style:normal;}\n\
                #title{margin-bottom:36px;}\n\
                #text{font-style:italic;}\n\
                #text[isTextEditDialog=true]{qproperty-visible:false;}\n\
                #text[isSansSerifDialog=true]{font-family:Avenir;padding:0px;padding-bottom:12;}\n\
                #rejectButton,#acceptButton{qproperty-primaryButton:true;}\n\
                #pixmapContainerLayout{margin-bottom:70px;}\n\
                #keyboardStatusContainer,#keyboardStatusContainer *{background:black;color:white;}\n\
                #keyboardStatusText{font-family:Georgia;padding:0px;background-color:solid black;}\n\
                #keyboardFrame{qproperty-visible:false;}\n\
                #keyboardFrame[isTextEditDialog=true],#keyboardFrame[isPasswordDialog=true]{qproperty-visible:true;}\n\
                #closeButton{background-color:transparent;}\n\
                #contentContainer{qproperty-topMargin:0px;}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #text{font-size:40px;}\n\
                #ConfirmationDialog[longTextDialog=true][qApp_isFontScaleLarge=true] #title{font-size:43px;}"

Good luck.
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	44
Size:	293.2 KB
ID:	168043  
jcn363 is offline   Reply With Quote
Old 11-28-2018, 12:13 PM   #47
icallaci
Evangelist
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 488
Karma: 6483398
Join Date: Sep 2012
Device: Kobo Aura One and H20, Samsung Galaxy Note 4 and Galaxy Tab S2 8.0
I would LOVE the popup footnotes to show italics, but I am not sure how or where to implement jcn363's fix. Does it go in the "Change pop-up footnote font-family" patch? If not, to what file do I add the line "#text{font-style:italic;}\n\"? Thanks for any hints.
icallaci is offline   Reply With Quote
Old 11-28-2018, 03:20 PM   #48
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: 285
Karma: 1747886
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 icallaci View Post
I would LOVE the popup footnotes to show italics, but I am not sure how or where to implement jcn363's fix. Does it go in the "Change pop-up footnote font-family" patch? If not, to what file do I add the line "#text{font-style:italic;}\n\"? Thanks for any hints.
If you don't want to use (or modify) the previous one in nickel patch file, I think you can alter in this way:
Spoiler:
Code:
Change pop-up footnote font-family:
  - Enabled: no
  - Description: |
      This patch allows you to change the font-family for the kepub pop-up footnotes (it
      will also affect a few other dialogs, like no wifi, marked as finished, marked as
      unread, etc).
  # In ReadingController::showFootnoteDialog(Bookmark const&), a ConfirmationDialog is created.
  # This changes the styles for ConfirmationDialog > #text
  - FindZlib: "#ConfirmationDialog[isSansSerifDialog=true]"
  - ReplaceZlib: {Find: "font-family: Avenir;", Replace: "font-style:italic;}"} # with this change you'll have the same font family (for header and message) and italic for message
  - ReplaceZlib: {Find: "font-family: Sans-SerifJP, sans-serif;", Replace: "font-family: Georgia;"}

Note: You can leave the font-family if you want a different one from the header.
Good luck.

Last edited by jcn363; 11-28-2018 at 03:25 PM.
jcn363 is offline   Reply With Quote
Old 11-28-2018, 06:20 PM   #49
icallaci
Evangelist
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 488
Karma: 6483398
Join Date: Sep 2012
Device: Kobo Aura One and H20, Samsung Galaxy Note 4 and Galaxy Tab S2 8.0
Thank you!
icallaci is offline   Reply With Quote
Old 11-29-2018, 04:27 AM   #50
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
Perhaps something like this
Is this your option to change the font of pop-up footnotes? I do not really understand what is there for editing.
Quote:
Originally Posted by jcn363 View Post
Note: You can leave the font-family if you want a different one from the header.
Semicolon? Thanks for the help.
P.S. I change the font in any line - the font of the title of the pop-up window of the footnote does not change.

Last edited by konstantinus; 11-29-2018 at 11:12 AM.
konstantinus is offline   Reply With Quote
Old 11-29-2018, 01:09 PM   #51
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: 285
Karma: 1747886
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
Is this your option to change the font of pop-up footnotes? I do not really understand what is there for editing.

Semicolon? Thanks for the help.
P.S. I change the font in any line - the font of the title of the pop-up window of the footnote does not change.
The red line of the example change the body-text of note in the pop-up.
If you want all the texts of the pop-up to be italicized then you can remove the red line and change this one:
Code:
#header,#title,#text{padding:0px;font-family:Georgia;font-style:normal;}
to become into:
Code:
#header,#title,#text{padding:0px;font-family:Georgia;font-style:italic;}
And if you want another font-family with italic in the body-text, then
Code:
#text{font-family:Arial;font-style:italic;}
Good luck.
jcn363 is offline   Reply With Quote
Old 11-29-2018, 03:19 PM   #52
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
If you want all the texts of the pop-up to be italicized then you can remove the red line and change this one
It works great. It is a pity that this patch is not available along with other patches, with some explanations.
konstantinus is offline   Reply With Quote
Old 11-29-2018, 04:04 PM   #53
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 994
Karma: 2576896
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
It works great. It is a pity that this patch is not available along with other patches, with some explanations.
It can be. All that needs to be done is for a PR to be opened on the GitHub repository, and I'll merge the patch.
geek1011 is offline   Reply With Quote
Old Yesterday, 07:25 AM   #54
Mrs_Often
Wizard
Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.
 
Mrs_Often's Avatar
 
Posts: 1,692
Karma: 2623604
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
Please delete. Sorry, Tapatalk messed up where I was again ... sigh...

Last edited by Mrs_Often; Yesterday at 07:27 AM.
Mrs_Often is offline   Reply With Quote
Reply

Tags
kobopatch, patch, patch32lsb, patches, patching

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 10:59 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 04:40 AM
Instructions for patching firmware 3.16.0 GeoffR Kobo Developer's Corner 74 08-12-2015 03:12 PM
Instructions for patching firmware 3.12.1 GeoffR Kobo Developer's Corner 56 03-20-2015 06:14 AM
Instructions for patching firmware 3.12.0 GeoffR Kobo Developer's Corner 165 02-07-2015 10:22 AM


All times are GMT -4. The time now is 01:03 PM.


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