View Single Post
Old 04-22-2012, 04:43 AM   #3640
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
That depends on the EPUB itself. If you have good luck, it works out of the box.


Points responsible for working/not working:

1) What version of PRS+ do you use? (official version or for example my 'ZORK' edition)

2) If you use the official version, you have to prepare your own CSS-file(s). You have to do it the right way.

3) If you use the ZORK-edition you have a couple CSS-files on your reader. They will not work with all ebooks.

4) Did you copy one of the 'ready-made-packages' from my website? They will not work with every ebook out of the box.

In all cases the crucial point is:

Most EPUBs use their own intern CSS-file. You can override its definitions with mentioned CSS-files, but you need to use appropriate CSS-tags (p, @page, div, ...). Most problematic are EPUBs with embedded fonts.
My ready-made-packages CSS-files use common CSS-tags. Sad but true - it's not possible to cover any EPUB file existing.

To add CSS-tags in your CSS-files you have to find out which tag is responsible for the formatting in your epub-file. I use CALIBRE therefor:
Open an ebook with calibre (just double-click on it) --> scroll further to the main text --> right-click on it and select 'inspect'. Have a look there and learn how to use those informations you will be offered there...

Often a quick solution is to remove embedded fonts from the ebook and/or convert the ebook with CALIBRE from epub to epub. Sounds senseless but works well. CALIBRE in that case alters CSS-tags, which can be the solution.

A very rough and brute solution is to remove the internal CSS-file from the ebook.

Removing fonts and removing CSS-file goes that way:

Use a PC and rename the ebook-file. Change the file-ending from 'epub' to 'zip'. Open the ZIP-file and remove fonts and CSS-file you find inside.

Other way is to use CALIBRE. use right-mouse onto your file. The menu-point should be 'enhance ebook' or something like that. This functions 'explodes' the EPUB-file in the same manner as described above with using ZIP-functionality.


A view words at the end:


I fear you will not be able to bypass the necessity to edit CSS-files in the one or the other way and gain at least little knowledge about CSS-code if you want to change font in epub with using PRS+.

I myself have had no knowledge about CSS and very, very little knowledge about developing. But Sony's PRS-x50 series in combination with PRS+ made it worth improving skills in those topics. What I want to say is:

Do not give up too early ;-)

A.

Last edited by Analogus; 04-22-2012 at 04:57 AM.
Analogus is offline   Reply With Quote