View Single Post
Old 01-14-2010, 06:53 PM   #142
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by daffy4u View Post
(...)

I loved the flexibility of being able to read it with the fontin font. One thing I noticed was that occasionally I would still have slow page turns. For maybe 10 pages in a row several times through out the book, I would see "formatting" during a page turn. I could see the new page under the "formatting" symbol but it still made the page turn 2 seconds or so long (about as slow as the embedded font LRF version of the book). The book was in the main memory. I removed the SD card with other books (only 2 books in the main memory) but I would still get the "formatting" symbol. I'm not sure what to do about this.
usually, that is a sign of a badly-made epub, bad (not clean) xhtml code. if i'm feeling courageous i sometimes will open it in sigil and strip out all the extraneous junk (it's a bit horrifying all the crap that can end up in there).

Quote:
Originally Posted by daffy4u View Post
I finally figured out how make the font substitution work with PRSPlus so that I don't have to go through Calibre to embed the font.

Per the PRSPlus site.

Code:
(path to custom css is: internal memory /database/system/PRSPlus/epub/style.css)
I already had my fontin css file saved as a txt file. I just renamed a copy as "style.css" and droped it in the PRSPlus/epub/ folder. I already had a fonts folder per Zelada's instructions. I then downloaded a book from Feedbooks and moved it directly onto the 505 without every opening Calibre. It worked!

Now does anyone know how I would add the border parameter to my css file?

Code:
@font-face {
  font-family: "Fontin";
  font-weight: normal;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin-Regular.ttf);
}

@font-face {
  font-family: "Fontin";
  font-weight: bold;
  font-style: normal;
  src: url(res:///Data/fonts/Fontin-Bold.ttf);
}

@font-face {
  font-family: "Fontin";
  font-weight: normal;
  font-style: italic;
  src: url(res:///Data/fonts/Fontin-Italic.ttf);
}

@font-face {
  font-family: "Fontin Sans";
  font-weight: bold;
  font-style: italic;
  src: url(res:///Data/fonts/Fontin_Sans_BI.otf);
}

body {
  font-family: "Fontin", serif;
}
nice !!! i haven't checked lately, did anybody confirm if this hack will work with a 600 and / or 700 ?

Quote:
Originally Posted by daffy4u View Post
Since there is so much html code in ePub books, should I be able to open an ePub book in Dreamweaver? I tried changing the extension to .html but that didn't work.
as jon said, you can extract the context files from the epub and use dreamweaver (or, in fact, any text or code editor, including something as basic as notepad). one warning : i used dreamweaver before sigil appeared on the scene, and when it's working on long-ish text flows it can be maddeningly S..L..O..W. unless you need auto-completing code-hints or similar i recommend you do most of your code editing in sigil, if you can. it's much faster.
zelda_pinwheel is offline   Reply With Quote