Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2010, 05:20 AM   #1
ExiledV20
Dieselgoth
ExiledV20 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2009
Location: Atlanta, GA
Device: None
Basic CSS For Sony Reader

Has anyone attempted to develop a CSS that mimics the default styling of LRF files?
ExiledV20 is offline   Reply With Quote
Old 01-28-2010, 06:33 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,800
Karma: 12528001
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by ExiledV20 View Post
Has anyone attempted to develop a CSS that mimics the default styling of LRF files?
????????
DoctorOhh is offline   Reply With Quote
 
Enthusiast
Old 01-28-2010, 03:53 PM   #3
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 554
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Like this? The trouble with this approach is that you won't have italics or bold. To get those you need to have italic or bold fonts in the reader.
porkupan is offline   Reply With Quote
Old 01-28-2010, 04:09 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,477
Karma: 17660776
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by ExiledV20 View Post
Has anyone attempted to develop a CSS that mimics the default styling of LRF files?
ADE by default already does that by simulating bold & italics.
JSWolf is offline   Reply With Quote
Old 01-28-2010, 04:22 PM   #5
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 554
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by JSWolf View Post
ADE by default already does that by simulating bold & italics.
Actually, Adobe module doesn't simulate bold and italics, it uses a very limited built-in set of fonts, which are utilized by default when no CSS is present, and no font resources are added. Adobe module doesn't appear to have an internal capability to simulate bold and italics on a regular font, like the LRF and RTF modules do.
porkupan is offline   Reply With Quote
Old 01-28-2010, 04:27 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,477
Karma: 17660776
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by porkupan View Post
Actually, Adobe module doesn't simulate bold and italics, it uses a very limited built-in set of fonts, which are utilized by default when no CSS is present, and no font resources are added. Adobe module doesn't appear to have an internal capability to simulate bold and italics on a regular font, like the LRF and RTF modules do.
When you do not embed any fonts, italic and bold are indeed simulated.
JSWolf is offline   Reply With Quote
Old 01-29-2010, 12:40 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,800
Karma: 12528001
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by porkupan View Post
Like this? The trouble with this approach is that you won't have italics or bold. To get those you need to have italic or bold fonts in the reader.
My ignorance knows no bounds, so the following may not apply. I have a 505 and currently use PRSplus. PRSplus has allowed me to place fonts and a style.css file on my reader. I have placed the free fontin fonts on my reader and my css is:

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);
}

body {
  font-family: "Fontin", serif;
  widows: 0;
  orphans: 0;
}

p {
text-indent:1.1em
}

/* 
   To increase ePub font size Remove rem slashes 
   surrounding the paragraph and division statements below. 
   Then adjust percentage higher, try 110% to start.
*/

/*
p {font-size:110%}

div {font-size:110%}
*/

/* 
   To increase ePub line height Remove rem slashes 
   surrounding the paragraph and division statements below. 
   Then adjust percentage higher, try 110% to start.
*/

/*

p {line-height: 110%}

div {line-height: 110%}

*/
This setup causes all epub files (including DRM'd) I read to use this font. It obviously doesn't mimic lrf files but it is how I have set my reader up. I think this setup would work with any fonts I chose.

Last edited by DoctorOhh; 01-29-2010 at 12:44 AM.
DoctorOhh is offline   Reply With Quote
Old 02-05-2010, 02:38 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,477
Karma: 17660776
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by dwanthny View Post
My ignorance knows no bounds, so the following may not apply. I have a 505 and currently use PRSplus. PRSplus has allowed me to place fonts and a style.css file on my reader. I have placed the free fontin fonts on my reader and my css is:

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);
}

body {
  font-family: "Fontin", serif;
  widows: 0;
  orphans: 0;
}

p {
text-indent:1.1em
}

/* 
   To increase ePub font size Remove rem slashes 
   surrounding the paragraph and division statements below. 
   Then adjust percentage higher, try 110% to start.
*/

/*
p {font-size:110%}

div {font-size:110%}
*/

/* 
   To increase ePub line height Remove rem slashes 
   surrounding the paragraph and division statements below. 
   Then adjust percentage higher, try 110% to start.
*/

/*

p {line-height: 110%}

div {line-height: 110%}

*/
This setup causes all epub files (including DRM'd) I read to use this font. It obviously doesn't mimic lrf files but it is how I have set my reader up. I think this setup would work with any fonts I chose.
But the problem is that this overrides any code in the CSS of the ePub. So if you want to use specific embedded fonts, it won't work. That is a problem and I don't know if there is a solution.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic CSS Font family question! kjk ePub 2 05-27-2010 01:28 PM
CSS odd behavior with ADE/Sony Reader AbominableDavid Sigil 10 03-26-2010 09:16 PM
basic needs, which reader? shmish Which one should I buy? 8 02-08-2010 11:47 PM
Looking for a basic cheap reader! codinh Which one should I buy? 13 02-06-2010 06:57 AM
Is There a Basic Reader? Big Kev Which one should I buy? 9 01-30-2010 09:15 AM


All times are GMT -4. The time now is 12:05 PM.


MobileRead.com is a privately owned, operated and funded community.