View Single Post
Old 01-15-2012, 09:12 AM   #293
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: 2,569
Karma: 3783765
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, Kobo Glo/AuraHD/Aura6"
Quote:
Originally Posted by Phil_C View Post
My books are edited in RTF for cleanup, then imported into Book Designer for layout, and output as htm. When the htm is placed in Calibre, it's saved as a zip file (by Calibre).

I use Calibre to convert the zip (htm) to epub while setting fonts, chapter breaks, line height, etc. Everything works except the problem with the <body> tag in Extra CSS. Can't get the font name right without workaround as stated in previous posts.
To answer your 'html editor' question... an html file is just a text file and can be edited with any old text editor, e.g. Notepad in Windows. The reason people refer to 'html editors' is that some of the better text editors (e.g. the free Notepad++ on Windows) recognise the file extension as an html file and will colour-code the text and tags to make it much easier to see what you're doing.

If you want to be able to change fonts from your PRS350 (or PRS300) whilst you're reading, as the mood takes you, then you should really take a look at installing the PRSPlus custom firmware. Font changing is only one of many very nice features which will be added to the standard Sony features.

If you do install PRSPlus (it really is very easy to install) then you do not need to do anything at all with fonts in Calibre ExtraCSS. You would put all these Amasis @font-face statements in a .css file (created with a simple text editor) and store it in the designated directory on your Sony. You create one .css file for each font-family you may want to use. PRSPlus then has a menu feature which allows you to pick which .css you want from a list. Once you've set up all your .css files, it couldn't be easier to switch from one to another. One of the main benefits of doing it this way is that it keeps the epubs in your Calibre library nice and clean, free of device-specific and font-specific code. So when you want to re-read the epub in a few years you won't need to clear it all out so you can read it on a completely different device.

As an additional benefit, these PRSPlus css files can also be set up to display your epubs in a range of font sizes. This helps to overcome the poor Sony only-3-zoom-levels-available.

Edit: On re-reading your earlier post, do you already have PRSPlus? If so, then perhaps we need to look at generalising your existing PRSPlus css files to be 'more accommodating'.

Last edited by jackie_w; 01-15-2012 at 09:20 AM. Reason: ... on second thoughts ...
jackie_w is online now   Reply With Quote