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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2017, 09:14 AM   #4186
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: 50,300
Karma: 43270719
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by gingerbeardman View Post
I've finished my "font size normalization" tool and it works perfectly. Not specifically PRS+ so I'll start another thread about it somewher more general.
Can you make your font size normalization tool a Calibre Editor plugin?
JSWolf is offline   Reply With Quote
Advert
Old 12-06-2017, 08:54 PM   #4187
gingerbeardman
Connoisseur
gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.gingerbeardman ought to be getting tired of karma fortunes by now.
 
gingerbeardman's Avatar
 
Posts: 59
Karma: 1001000
Join Date: Apr 2010
Location: Cornwall, UK
Device: Sony PRS-T3/650/500, Kobo Touch, iPhone
Quote:
Originally Posted by JSWolf View Post
Can you make your font size normalization tool a Calibre Editor plugin?
Right now it is written in PHP and relies on a command line tool called font-line to access the font dimensions data. I should be able to convert into python and make a calibre plugin.

here's the code
https://gist.github.com/gingerbeardm...afee9829828ed1

i get the Ascender+Descender sum from the font metrics, and divide 1 by that number. This normalises the values to make the larger fonts smaller and vice versa. Then I just write that data into the CSS.

I'd have to look into how calibre handles ebook CSS to make sure my approach is general enough.

Last edited by gingerbeardman; 12-06-2017 at 09:01 PM.
gingerbeardman 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
Using HD Folders as Collections on Sony PRS-505 fglaysher Calibre 8 07-26-2010 10:55 PM
Enhanced Firmware for V3 keng2000 HanLin eBook 12 04-12-2010 10:30 AM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 07:34 PM
Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 23 12-08-2008 07:56 AM
Sub folders in firmware v1.08 Prince Hal Amazon Kindle 28 10-23-2008 04:20 PM


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


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