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

Go Back   MobileRead Forums > E-Book Formats > ePub

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

ePub ePub (or OEBPS) is an open e-book standard by the IDPF

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-30-2009, 01:01 PM   #46
radius
Lector minore
radius has a complete set of Star Wars action figures.radius has a complete set of Star Wars action figures.radius has a complete set of Star Wars action figures.radius has a complete set of Star Wars action figures.
 
radius's Avatar
 
Posts: 167
Karma: 386
Join Date: Jan 2008
Device: Palm Centro, Apple iPhone 3G and Sony PRS-505
Quote:
Originally Posted by quillaja View Post
using the definition list <dl></dl> works really well for plays.
Hey, great idea!
radius is offline   Reply With Quote
Old 09-30-2009, 01:29 PM   #47
JSWolf
Mobile Reader Geek
JSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic somethingJSWolf has a certain pleonastic something
 
JSWolf's Avatar
 
Posts: 16,132
Karma: 18503
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-505
Does anyone have an ePub to show <dl></dl>?
__________________
Jon



If you want to listen to really good music while you surf Mobileread, here.
JSWolf is offline   Reply With Quote
Old 10-02-2009, 09:28 PM   #48
quillaja
Enthusiast
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 47
Karma: 12
Join Date: Sep 2009
Device: sony reader touch (prs-600)
Quote:
Originally Posted by JSWolf View Post
Does anyone have an ePub to show <dl></dl>?
well, i have one or two, but i haven't yet made them "public" on feedbooks, because i'm still editing them. the example code shows basically the same way i used this in the epubs, though the words are different. this works, at least on my prs-600 and ADE, and mostly works in FBReader (the formatting is off, but fbreader doesn't full support epub anyway).

do you want a pic of <dl> on the sony reader?
quillaja is offline   Reply With Quote
Old 10-09-2009, 03:45 AM   #49
quillaja
Enthusiast
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 47
Karma: 12
Join Date: Sep 2009
Device: sony reader touch (prs-600)
Smile super easy ePub columns

To make columns in an ePub, use the following CSS property on any block element, such as "body" or "div":

Code:
oeb-column-number: [integer] | auto;
from the ePub OPS specification:

Quote:
Specifies a number of columns in which to render content; may be applied to all block level elements. Reading Systems are free to support integer values other than 1, or may map them to 1. Reading Systems may support column balancing. A value of auto allows the Reading System to decide on the optimal number of columns in which to render content, considering available width, font sizes, or any other metrics it considers relevant for readability.
Anyway, I tested "2" and "auto" on my prs-600 and in ADE. Both worked, although the prs-600 "decided" just to use 1 column. I had to make the font size very small in ADE to make AUTO display as 2 columns. However, hard-coding 2 into the CSS made 2 columns display on the sony reader.

Pretty cool! =)
quillaja is offline   Reply With Quote
Old 10-09-2009, 05:01 AM   #50
quillaja
Enthusiast
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 47
Karma: 12
Join Date: Sep 2009
Device: sony reader touch (prs-600)
Quote:
Originally Posted by quillaja View Post
well, i have one or two, but i haven't yet made them "public" on feedbooks, because i'm still editing them.
I've since "published" the books i mentioned earlier. They are Jane Austen's Juvenilia, volumes 1, 2, and 3. Volumes 1 and 2 use <dl> for the few mini plays that Austen wrote. http://feedbooks.com/author/18

My personal favorite of these mini plays is "The Mystery." =)
quillaja is offline   Reply With Quote
Old 11-06-2009, 07:54 PM   #51
charleski
Connoisseur
charleski has a complete set of Star Wars action figures.charleski has a complete set of Star Wars action figures.charleski has a complete set of Star Wars action figures.
 
Posts: 78
Karma: 284
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by Jellby View Post
When there is some punctuation before the drop cap, this code may be useful:

Code:
span.predrop {
  font-size: 25%;
  font-weight: normal;
  vertical-align: top;
  line-height: 1.9;
}
use it with:

Code:
<span class="drop"><span class="predrop">&lsquo;</span>I</span><span class="first"> was</span> never so upset in my life!&rsquo;
I've been experimenting with this code (testing it in ADE), and found it was causing the dropcap to be shifted over to the right for some reason I can't fathom. I finally fixed it by adding a margin-left correction:
Code:
span.predrop {
  font-size: 25%;
  font-weight: normal;
  vertical-align: top;
  line-height: 1.9;
  margin-left: -0.5em
}
This is for a dropcap on lines that start with a quotemark. If I remove the quote and the predrop code so that the dropcap is a single character, then it works fine and is aligned properly. If I add just the quotemark (so the dropcap span is
Code:
<span class="drop">&lsquo;I</span>
)
then the left margin of the dropcap region shifts over to the right by about 0.5em. Adding the predrop span as originally coded doesn't change this, though it aligns properly when I add the margin-left correction.

My familiarity with CSS is stilll somewhat rudimentary, so I wonder if there's something I'm missing here, though it works right now.
charleski is offline   Reply With Quote
Old 11-07-2009, 06:20 AM   #52
GeoffC
Chocolate-fed
GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.
 
GeoffC's Avatar
 
Posts: 7,908
Karma: 35892
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3
Quote:
Originally Posted by quillaja View Post
To make columns in an ePub, use the following CSS property on any block element, such as "body" or "div":

Code:
oeb-column-number: [integer] | auto;
from the ePub OPS specification:



Anyway, I tested "2" and "auto" on my prs-600 and in ADE. Both worked, although the prs-600 "decided" just to use 1 column. I had to make the font size very small in ADE to make AUTO display as 2 columns. However, hard-coding 2 into the CSS made 2 columns display on the sony reader.

Pretty cool! =)
Creating two columns may be a useful ploy with poetry, there is nothing worse than having a verse split at the screen base. But this as a solution raises the question as to whether there is sufficient width in reading devices for it to work satisfactorily.

Do you have any screenshots of the Sony to 'see' how it looks ?
__________________
The power of positive thoughts works.

"That, my dear friend, is because you are not an anagram, but an acronym. Guzzles Extreme Overdoses of Fabulously Flavoursome Chocolate" ... Courtesy of LazyScot


GeoffC is offline   Reply With Quote
Old 11-07-2009, 09:42 AM   #53
GeoffC
Chocolate-fed
GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.GeoffC turned on, tuned in, and dropped out.
 
GeoffC's Avatar
 
Posts: 7,908
Karma: 35892
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3
...OOOoooooohhhh....

now that is a very nifty trick [I also see Nrapallo mentioned it on .imp].
I only tested this on a small book and on ADE (and yes, even with the full width of my PC screen) the font has to be tweeked to the minimum.

thank you - I shall now go and 'play' some more with this .....
__________________
The power of positive thoughts works.

"That, my dear friend, is because you are not an anagram, but an acronym. Guzzles Extreme Overdoses of Fabulously Flavoursome Chocolate" ... Courtesy of LazyScot


GeoffC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifier le .css d'un .epub freak Software 8 Yesterday 09:05 PM
css override code for <h2> and <h1> tags Amalthia Calibre 2 03-29-2009 07:51 PM
Calibre's generated css for epub brewt Calibre 7 12-29-2008 10:59 AM
Supported HTML/CSS tags and properties Jellby Gen3 Content 9 05-04-2008 05:55 PM
HTML and CSS for Mobiles Colin Dunstan Handhelds and Smartphones 0 06-14-2004 12:19 PM


All times are GMT -4. The time now is 09:18 AM.


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