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 12-17-2014, 05:21 AM   #91
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 scoky View Post
I can't find how to modify fonts and size of Collection name, could it be modified? or just don't know the specific position?
I was not able to identify the relevant css block.
tshering is offline   Reply With Quote
Old 12-17-2014, 12:31 PM   #92
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by scoky View Post
That's strange. Can you see Arial in your Font Face in Aa setting?
Yes.

You see an error in the configuration?
Attached Thumbnails
Click image for larger version

Name:	Image4.jpg
Views:	393
Size:	75.1 KB
ID:	132616   Click image for larger version

Name:	Image3.jpg
Views:	417
Size:	114.0 KB
ID:	132617   Click image for larger version

Name:	Image2.jpg
Views:	408
Size:	101.8 KB
ID:	132618  
surquizu is offline   Reply With Quote
Advert
Old 12-17-2014, 05:01 PM   #93
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
surquizu,

things are a little confusing. I just made some test. Take for instance this code.

Code:
newpart=* { font-family: Inklings; font-size: 38px; line-height: 42px; } \n
newpart=div.descriptionFont { font-family: Avenir; }\n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 38px; font-weight:normal;      }
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; }
//newpart=::selection { background: #FFFFFF !important; }

First time after restarting the reader, the font-family had no effect on the dictionary view at all. After opening the font menu, there was a small effect (image 1). If after starting nickel one opens the font menu, and only then uses the dictionary the effect s complete (image 2).
I did not see any effect of div.descriptionFont. Maybe this works only for some dictionaries, or Kobo plans to add new tags in future. So it might be better to remove this part again and re-activate ::selection.
Attached Thumbnails
Click image for larger version

Name:	screen_20141217_222951.png
Views:	373
Size:	56.5 KB
ID:	132637   Click image for larger version

Name:	screen_20141217_223326.png
Views:	358
Size:	85.8 KB
ID:	132638  
tshering is offline   Reply With Quote
Old 12-17-2014, 08:40 PM   #94
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by surquizu View Post
Yes.

You see an error in the configuration?
No, the configuration is the same with mine. So odd... I am definitely sure my font in dictionary has been changed. Maybe you will check your work flow carefully...
Attached Thumbnails
Click image for larger version

Name:	screen141218-093538.png
Views:	357
Size:	180.1 KB
ID:	132641  
scoky is offline   Reply With Quote
Old 12-17-2014, 09:02 PM   #95
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by tshering View Post
I was not able to identify the relevant css block.
I test a lot and find this css block. it's not easy work... So thanks for you job.
Code:
<patch>
name=CollectionName
enabled=true
action=replace_string
position=E04264
oldpart=#hTitle {\n\tqproperty-maxNumLines: 1;\n\tfont-family: Georgia;\n\tfont-size: 36px;\n\tfont-style: italic;\n}\n\n
oldpart=#hTitle[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 28px;\n}\n\n
oldpart=#hTitle[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tfont-style: normal;\n\tqproperty-forceLeading: 0;\n}\n
newpart=#hTitle {\n\tqproperty-maxNumLines: 1;\n\tfont-family: Georgia;\n\tfont-size: 36px;\n\tfont-style: italic;\n}\n\n
newpart=#hTitle[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 28px;\n}\n\n
newpart=#hTitle[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tfont-style: normal;\n\tqproperty-forceLeading: 0;\n}\n
combineparts
</patch>
scoky is offline   Reply With Quote
Advert
Old 12-18-2014, 06:50 AM   #96
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
scoky, thank you for the contribution!

As for the arial font in the dictionary, do you have to open the fonts menu before looking into the dictionary after a reboot, or does it work all the time?
tshering is offline   Reply With Quote
Old 12-18-2014, 07:27 AM   #97
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by tshering View Post
scoky, thank you for the contribution!

As for the arial font in the dictionary, do you have to open the fonts menu before looking into the dictionary after a reboot, or does it work all the time?
no, I don't need to open fonts menu first after a reboot. I have test a lot and it work all the time. I think all sideloads fonts including arial font will be loaded when the book opens.
scoky is offline   Reply With Quote
Old 01-05-2015, 01:54 PM   #98
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 scoky View Post
Hi, teshering, I find some parameters can control the frame size. They can in nickel and libnickel.so.1.0.0 in the attachments. Generally, parameters in nickel can control the frame size and in libnickel.so.1.0.0 can control contents size of dictionary. I modify them use hex editor and it isn't convenient for modification, but I don't know how to make patch like you and GeoffR. So maybe you can add them in you patch if you are interested.
A small issue is sometime the frame will cover the small box contains note, search and share.
Thank you for your efforts! I attach the data in patch format. I left however all values unmodified, since I did not find the time to figure out nicely working values yet. If you (or anybody else) has values that work for him/her satisfactorily, please share them!

Just in case you are interested in experimenting with other css blocks too, I add all materials that I could easily find.
Attached Files
File Type: zip dictionary_view_312.zip (1.5 KB, 221 views)
File Type: zip 312_css.zip (75.8 KB, 234 views)
tshering is offline   Reply With Quote
Old 01-09-2015, 11:08 AM   #99
Cecell3000
Enthusiast
Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 303048
Join Date: Feb 2013
Location: Brazil
Device: Kindle Paperwhite 3
dictionary

Quote:
Originally Posted by tshering View Post
Thank you for your efforts! I attach the data in patch format. I left however all values unmodified, since I did not find the time to figure out nicely working values yet. If you (or anybody else) has values that work for him/her satisfactorily, please share them!

Just in case you are interested in experimenting with other css blocks too, I add all materials that I could easily find.
Attached Thumbnails
Click image for larger version

Name:	screen_005a_orig.png
Views:	326
Size:	34.8 KB
ID:	133576   Click image for larger version

Name:	screen_005b_mod1.png
Views:	326
Size:	38.3 KB
ID:	133577   Click image for larger version

Name:	screen_005c_mod-big.png
Views:	356
Size:	36.0 KB
ID:	133578  
Cecell3000 is offline   Reply With Quote
Old 02-07-2015, 04:52 AM   #100
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
As to how to prepare the patch, I basically take the patch files of the previous version, try to identify the css codes in nickel and libnickel.so.1.0.0 of the new FW package and change the addresses ("position=xxx") accordingly.
Quote:
Originally Posted by tshering View Post
Try opening the files with hex-editor.
Quote:
Originally Posted by tshering View Post

I open the binary with a hex/binary editor and watch for things that look like css code. Then I try to guess for which element this code is used. I modify the code, load the file to the Kobo reader, and see whether my guess was right.

I apologize for my ignorance, but I do not understand how to update patches. I open the libnickel with a hexadecimal editor but not how to locate the new values of the patches

[Image violates guidelines for size - MODERATOR]

Last edited by Dr. Drib; 02-08-2015 at 11:26 AM.
surquizu is offline   Reply With Quote
Old 02-07-2015, 10:08 AM   #101
pakoe
Member
pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.pakoe knows what's going on.
 
Posts: 23
Karma: 25468
Join Date: Jul 2013
Location: Germany
Device: Kobo mini
Thank you

Thank you very much, tshering, for this patch. I only increased the font size in the dictionaries, but that makes an awful difference for me. Actually, I didn't use your patch, but modified libnickel.so.1.0.0 directly (first I DID change the length of the respective section in libnickel.so.1.0.0, so I had to make a factory reset ). Now all is fine. I have a Kobo Mini, used font-size:26px;line-height:30px and did not change font-family. By the way, if someone uses only dictionaries he produced with penelope.py, penelope.py can be modified to define the font-size one likes without modifying libnickel.
pakoe is offline   Reply With Quote
Old 02-07-2015, 10:58 AM   #102
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 pakoe View Post
(first I DID change the length of the respective section in libnickel.so.1.0.0, so I had to make a factory reset ).
No need to factory reset in such a case if one uses KSM!

Quote:
Originally Posted by pakoe View Post
By the way, if someone uses only dictionaries he produced with penelope.py, penelope.py can be modified to define the font-size one likes without modifying libnickel.
Thank you for this information.
tshering is offline   Reply With Quote
Old 02-07-2015, 11:01 AM   #103
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 surquizu View Post
I apologize for my ignorance, but I do not understand how to update patches. I open the libnickel with a hexadecimal editor but not how to locate the new values of the patches
I know this is a cumbersome job! I will provide some materials in the next post
tshering is offline   Reply With Quote
Old 02-07-2015, 11:05 AM   #104
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
Modification for Bad Eyes FW 3.12.1

Follow the instructions of version 3.12.0 (but read 3.12.1 whenever there is written 3.12.0). I did not test this package on my reader, since I have not yet installed the 3.12.1 FW.

The css blocks for Dictionary View are included, I did however not modify the values.
Attached Files
File Type: zip KBPatcher11_3.12.1.zip (508.5 KB, 248 views)

Last edited by tshering; 02-07-2015 at 12:42 PM.
tshering is offline   Reply With Quote
Old 02-07-2015, 12:18 PM   #105
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
I know this is a cumbersome job! I will provide some materials in the next post
Thanks, I hope. I like learning how to do things for myself. They are a challenge for me.


Quote:
Originally Posted by tshering View Post
Follow the instructions of version 3.12.0 (but read 3.12.1 whenever there is written 3.12.0). I did not test this package on my reader, since I have not yet installed the 3.12.1 FW.
It works fine on my aurahd (v.3.12.1)
surquizu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Ebook reader is easiest on the eyes? i.e doesn't strain your eyes when reading Berabouman Which one should I buy? 2 02-08-2013 09:07 AM
Glo Is the screen of my Glo bad or is it my eyes? Polly7 Kobo Reader 5 01-29-2013 03:56 AM
help with some modifications moller Kindle Developer's Corner 3 10-12-2012 02:31 PM
Eyes of Silver, Eyes of Gold, historical romance ellenoc Self-Promotions by Authors and Publishers 18 08-22-2011 02:34 PM
iLiad Registry modifications Martijn iRex Developer's Corner 7 03-27-2008 05:37 PM


All times are GMT -4. The time now is 03:00 AM.


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