View Single Post
Old 04-23-2012, 04:13 PM   #3655
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
Hi

ZORK-Edition (in my case it does work) functions that way:

It combines the CSS-file on the fly.

Base ist the CSS-file you choose over PRS-menu. Code could be like that:
Spoiler:
@font-face {
font-family: serif;
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/CharisSIL-R.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/CharisSIL-B.ttf);
}

@font-face {
font-family: serif;
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/CharisSIL-I.ttf);
}

@font-face {
font-family: serif;
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/CharisSIL-BI.ttf);
}



At the end of this file in any case a line from extern.css will be added:
Spoiler:
//SerifFonts (Line 20)
body , body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book, html, p, div, ul, dl{font-family: serif !important;}

You can edit this line by editing extern.css.

After this line lines for size, height, endent, ... will be added if you choose it over options or the overlay-menue.
Like this:
Spoiler:
p.body-enger, .mainBody, body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book, .calibre, .epub, html, p, div, ul, dl, .fmtx, .fmtx1, p.body-ohne {text-indent: 0em !important} /* MARKER MTEXTINDENT */
@page, body {padding: 0px 0px 0px 0px !important;} /* MARKER MPADDING */
@page, body {margin: 0em !important;} /* MARKER MMARGIN */
p.body-enger, span.font2, .mainBody, body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book, .calibre, .epub, html, p, div, ul, dl, .fmtx, .fmtx1, p.body-ohne {line-height: 2em !important} /* MARKER MLINEHEIGHT */
p.body-enger, span.font2, .mainBody, body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book, .calibre, .epub, html, p, div, ul, dl, .fmtx, .fmtx1, p.body-ohne {font-size: 1.10em !important;} /* MARKER MFONTSIZE */


If you have chosen 'Use External File for CSS-Tags' in 'EPUB-Formatting' (you should do this!) you can edit this part:

Solution (or better 'idea') is to add different tags. You can do it by editing 'extern.css' on the reader.

Take the newest file I upload on this posting and copy it onto your reader in the folder database\system\PRSPlus\epub\CSS\
extern.zip

In my case it works flawless. But from time to time I have to add more tags when reading a new book. As I am new to CSS the file have to be tweaked. I use CALIBRE to get the name of the tag.

But be sure you have chosen the options to use this external file!

A.

Last edited by Analogus; 04-23-2012 at 04:19 PM.
Analogus is offline   Reply With Quote