View Single Post
Old 12-24-2010, 12:24 PM   #5
Buggins
Zealot
Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.Buggins ought to be getting tired of karma fortunes by now.
 
Posts: 133
Karma: 1006618
Join Date: Aug 2008
Location: Russia
Device: Nook Simple Touch
Quote:
Originally Posted by Carl314 View Post
What does "css styles" mean? Only inline CSS? Virtually all of my e-books use CSS style sheets, which Cool Reader does not appear to support.
I mean default styles for formats.

When opening file, CoolReader loads corresponding .css file (e.g. txt.css for txt, epub.css for epub, rtf.css for rtf) from /.cr3/, or from package if external file is not found.
This loaded style is used as base style.
If some additional style is defined for document (e.g. element style attribute specified, or document specific stylesheet), additional styles override base styles.

If document specific style is not loaded/used, it's a bug. Could you provide some samples of such files?

Supported subset of CSS is described on SF Wiki

TXT files are actually being converted internally into fb2 like XML format.
So you can define style p {} for paragraphs and title {} for headings.

Sample .css files can be found in SourceForge GIT repository.
Buggins is offline   Reply With Quote