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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2013, 04:42 AM   #1
democrite
Connoisseur
democrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notes
 
Posts: 72
Karma: 24566
Join Date: Sep 2011
Device: Sony PRS-T1, iPad, iPhone
Conditional CSS for ADE readers

Hi,

I have an ePub with Greek characters as well as words placed in emphasis with letter-spacing instead of italics. For ADE readers, I'm embedding a font. What I'd like is for ADE readers to use that font with a specific line-height and default font size.

For the letter-spacing, I've specified that although since ADE doesn't support it, I'd like a custom font used in that case.

The ADE specific xpgt file seems to be the way although I haven't spent much time figuring how to do it with that. I think that would cover all cases: ADE would use the custom font, and all others readers, would likely support letter-spacing.

If that's the preferred method, any examples would be helpful.

Thanks.
democrite is offline   Reply With Quote
Old 09-22-2013, 05:05 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,258
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
"letter-spacing" is not a required property in the ePub 2 spec, so there could be many other readers that don't support it, other than ADE.
Jellby is offline   Reply With Quote
Old 09-22-2013, 05:41 AM   #3
democrite
Connoisseur
democrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notes
 
Posts: 72
Karma: 24566
Join Date: Sep 2011
Device: Sony PRS-T1, iPad, iPhone
Ah. I thought that would be a likely response. The epub isn't for commercial purposes but for several friends so I think any of those cases I can ignore for the moment. Though, I am curious which readers don't use ADE and also do not use a modern HTML like likely all tablets and smart phones.
democrite is offline   Reply With Quote
Old 09-22-2013, 06:15 AM   #4
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,048
Karma: 4836606
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by democrite View Post
The ADE specific xpgt file seems to be the way although I haven't spent much time figuring how to do it with that.
It's actually pretty straightforward, for more information see this post by Jellby.

Quote:
Originally Posted by democrite View Post
If that's the preferred method, any examples would be helpful.
I used the XPGT method in a simple German blackletter epub. (I used   between letters as a workaround for ADE readers and regular CSS styling for all other readers.)

(This method was used in the (FRAKTUR).epub file only.)
Doitsu is offline   Reply With Quote
Old 09-23-2013, 10:10 PM   #5
democrite
Connoisseur
democrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notesdemocrite can name that song in three notes
 
Posts: 72
Karma: 24566
Join Date: Sep 2011
Device: Sony PRS-T1, iPad, iPhone
Thanks Doitsu,

I was able to figure it out.
democrite 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
ADE breaks CSS --> CSS Validation: Parse Error / Value Error dasboeh ePub 4 12-10-2012 04:25 AM
CSS troubles in ADE xmlgirl ePub 7 03-26-2012 01:50 PM
css formatting not showing in ADE? bfollowell Sigil 9 10-09-2011 08:28 PM
ADE mit userstyle css mtravellerh PocketBook 0 05-21-2010 04:40 PM
Conditional CSS rules Jellby ePub 10 01-20-2009 09:32 AM


All times are GMT -4. The time now is 11:45 AM.


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