|
View Poll Results: What are you feelings about .epub right now: | |||
.epub is the greatest thing since paper! |
![]() ![]() ![]() ![]() |
4 | 9.30% |
.epub is ok, I'll get around to using it someday. |
![]() ![]() ![]() ![]() |
9 | 20.93% |
Why do we need another format? |
![]() ![]() ![]() ![]() |
6 | 13.95% |
I'm waiting till someone other than adobe has a viewer. |
![]() ![]() ![]() ![]() |
2 | 4.65% |
I'm waiting till my reader can natively support it |
![]() ![]() ![]() ![]() |
15 | 34.88% |
How is this different that .oeb? |
![]() ![]() ![]() ![]() |
1 | 2.33% |
What was the IDPF thinking!?! |
![]() ![]() ![]() ![]() |
1 | 2.33% |
What the heck is .epub? |
![]() ![]() ![]() ![]() |
5 | 11.63% |
Voters: 43. You may not vote on this poll |
![]() |
|
Thread Tools | Search this Thread |
![]() |
#76 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Do you frequently find yourself paging backward and forward through books? If you simply read a book from cover to cover (which I'd imagine is what most people do), the paging is perfectly consistent. Hardly "crap", IMHO, at least.
|
![]() |
![]() |
![]() |
#77 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
Banned
![]() ![]() ![]() Posts: 269
Karma: -273
Join Date: Sep 2006
Location: los angeles
|
harry said:
> Do you frequently find yourself paging > backward and forward through books? all the time, harry, all the time... :+) however, mobipocket's inconsistency bothers me for _philosophical_ reasons more than _practical_ ones. pages in paper-books have consistency. i like that... besides, i don't want the book's text "reflowing" on me unless _i_ reflow it. by the way, that's one reason why i will never use adobe's digital-editions viewer-program; i simply detest that _it_ decides how many columns i get with a certain combination of the view-port and text-size, and even switches them up sometimes when i do a resize. that's a decision that _i_ want to make, thank you kindly... -bowerbird |
![]() |
![]() |
![]() |
#79 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#80 |
Zealot
![]() ![]() ![]() ![]() Posts: 107
Karma: 308
Join Date: Oct 2007
Location: Perth Australia
Device: EZ Reader 5", Iliad
|
I am looking at the .epub documents at the moment.
Can anyone with experience, save me a lot of searching by telling me if the following is possible: To have rendered in the margin an element ID number for referencing paragraphs and in plays, lines? ie. 1.122 Chapter 1 paragraph 122 Book 2 Section 3 Chapter 22 paragraph 45 2.3.22.45 CSS can do it but will reader software be able to? Being in one of the shades of eink grey would help as well (rather than black). It would be nice to have a standard reference system. It is possible to give each edition a World Unique ID which when combined with relative reference would give an absolute and unambiguous reference. Any comment would be welcome. |
![]() |
![]() |
Advert | |
|
![]() |
#81 | |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
Quote:
I'm not sure what you are getting at with the rest of your question about a World Unique ID. Please elaborate. |
|
![]() |
![]() |
![]() |
#82 |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
Paragraph Numbers
Just fooling around, I tried a few things to implement paragraph numbers. The CSS 2.0 spec talks about "Generated content" http://www.w3.org/TR/REC-CSS2/generate.html. I tried this, but the examples would not work in Firefox, so I didn't even try it in Digital Editions.
The next thing I tried was floating a span next to a paragraph, like so: span.pnum { float:left; width:4em; } This seemed to work. After adding the same amount of left margin to the paragraph to simulate a separate column, things looked good in Firefox.p { margin-left: 4em; } I then created an epub, using this method. The epub is attached. Rename if from .zip to .epub. If you want to see how this looks in your browser, just extract the HTML file from the archive.Since FBReader still does not support CSS, of course things displayed badly. The Lector plugin, using Firefox for rendering, displayed exactly as native Firefox. The only real test at this point was Digital Editions. Sorry to say, DE got it almost right. The numbers and paragraphs are in their own columns, as they should be. However, the paragraphs all start one line below the corresponding number. This isn't what we wanted, but is still useable. It is possible that my quickly thrown together example is not correct in some way and that this may be the reason that DE isn't doing what we want. I will have to look at this a little closer before laying the blame on DE. EDIT: I was thinking that using span outside a block element was probably not correct XHTML, so I wrapped each span/paragraph pair in a div for correctness. This didn't make any difference in how things displayed in FF or DE. Edit: Using a separate div for each column was my first thought (like the way you would do it on a web page). However, since these are separate block elements, how would you keep the numbers in sync with the paragraphs? Using an in-line span was a lot easier. Last edited by jbenny; 10-30-2007 at 01:46 PM. |
![]() |
![]() |
![]() |
#83 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use tables.
|
![]() |
![]() |
![]() |
#84 |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
The use of tables as a method of layout, although common, is considered poor practice. It makes separation of content and layout more difficult and can be a real mess to maintain if you change the layout. I think this might be even more of an issue with an ebook, because of widely varying screen sizes.
Yes, if we just want to make it work, tables will do the job. If trying to use the recommended standards of today and looking ahead, it's best to do the layout with CSS. I'm trying to break old habits myself and do things the "correct" way. |
![]() |
![]() |
![]() |
#85 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use tables with % specification of widths. That takes care of screen size independence. If you must use CSS use hanging indents to accomplish this. See the demo file in the html2lrf thread. Though the tables based solution is actually more robust against font size changes.
Having a multi-column layout is what tables are supposed to do. EDIT: Using tables for layout is not considered poor practice when you're trying to create a multi column layout. Indeed they are the best way to create a multi column layout. Last edited by kovidgoyal; 10-30-2007 at 04:13 PM. |
![]() |
![]() |
![]() |
#86 |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
I hadn't thought of using an outdent for this purpose, but it does seem to work in FF. I'll have to try it in DE. As the code fragments below illustrate, you need to compensate in the body style for the outdent in the paragraphs (at least on the left side). These values can be adjusted to suit, of course.
body { margin-left: 2.3em; margin-right: 2.3em; } p { text-indent: -2.3em; } <p>1.1 Now is the time for all good men As usual, there is more than one way to skin a cat. Thanks for the suggestion. Edit: I won't argue the use of tables for layout, as like any programming practice, there are proponents for both sides of the issue. Last edited by jbenny; 10-30-2007 at 04:17 PM. |
![]() |
![]() |
![]() |
#87 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The problem with that is you're stuck with using fixed space based indents in your actual paragraphs, which is really inelegant.
I really don't see how this can be solved elegantly with block level positioning, unless there's a way to force a float to have the same height as its parent. |
![]() |
![]() |
![]() |
#88 |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
Although I don't particularly like doing it with an outdent, I just tried it in DE and it does work ok. Using ems does make this scale correctly with font size.
Did you look at the epub I posted? What I was trying to do there was this: p { margin-left: 4em; } span.pnum { float:left; width:4em; } <div> This works just fine in FF, but DE inserts a newline after the span. I assume that it is a bug in DE, unless I'm missing something obvious.
<span class="pnum">1.1</span> <p>Now is the time for all good men...</p> </div> |
![]() |
![]() |
![]() |
#89 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is a bug in DE. The problem with that solution is that the second line of the paragraph will be below the number, so it wont really be a margin note. That would work only if CSS would allow a float's height to be specified as 100% of the parent's height. Unfortunately, that doesn't seem to be possible as setting height=100% has no effect.
|
![]() |
![]() |
![]() |
#90 | |
Addict
![]() ![]() ![]() ![]() Posts: 323
Karma: 358
Join Date: May 2007
Device: Tablet PC and Nokia N800
|
Quote:
BTW, I fixed the bad behaviour of DE by adding "margin-top: 0" to the paragraph style. It also works the same in FF and IE 6. Shouldn't be necessary, but it works. EDIT: attached is a cropped screenshot of how it looks in DE. Last edited by jbenny; 10-30-2007 at 04:56 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-600 Mixed feelings | ziegl027 | Sony Reader | 6 | 04-13-2010 03:47 PM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |