Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2014, 11:19 AM   #31
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by odedta View Post
Actually, he can use 60% as well and the image is still aligned to center on iBooks, I tested my code before I posted it and it works on iBooks :/

I'm not sure about iPad 1 iBooks version though. (iOS 5.1.1)
Well, I'm not sure if there's a misunderstanding here, but the issue wasn't being able to center horizontally, but vertically -- I just couldn't seem to get the top/bottom margins to be equidistant when using that image in the poems (specifically), although for whatever reason I managed to do it when using the same image as a section break in the main text.

(And if you're wondering, I was supposed to be gone from here hours ago, but this ebooking stuff is far too absorbing -- and fun! -- sometimes! I better get going soon, though...)
Psymon is offline   Reply With Quote
Old 08-18-2014, 02:14 PM   #32
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by odedta View Post
Actually, he can use 60% as well and the image is still aligned to center on iBooks, I tested my code before I posted it and it works on iBooks :/

I'm not sure about iPad 1 iBooks version though. (iOS 5.1.1)
I don't recall, off the top of my head, what the problem is with that, but there is one. To make it work across the board, including first-gen iBooks, it's the image wrapped in a p wrapped in a div solution, and you can't size the image directly, not at all. Hell, even Liz talked about it in ePUB:STTP.

Hitch
Hitch is offline   Reply With Quote
Advert
Old 08-18-2014, 05:00 PM   #33
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
As far as the vertical centering (or anything else) have you looked at the epub in Sigil or calibre editor where they show what CSS is acting on the text in question?
mrmikel is offline   Reply With Quote
Old 08-18-2014, 05:10 PM   #34
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: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Psymon View Post
Okay! To heck with the stupid graphical ornament for the breaks in the poems. It's really weird that I was able to get the ornament in the section breaks in the main text to center vertically okay, but not in the poems, but at this point I give up, and decided to go with what one of the print editions of this book uses, which is a row of three asterisks. This looked nice, and served the purpose, but naturally one might think that there would still be the issue of the top/bottom margins of that row of asterisks not looking equal, because asterisks are inherently "superscript"-like characters, of course.
Since you seem to be able to do what you want by using a font character, why not embed a font that has ornaments and pick one of them to use for the section breaks.
JSWolf is online now   Reply With Quote
Old 08-18-2014, 07:07 PM   #35
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by mrmikel View Post
As far as the vertical centering (or anything else) have you looked at the epub in Sigil or calibre editor where they show what CSS is acting on the text in question?
Um, I'm designing the whole thing in Sigil, so it's kinda hard to avoid seeing what code affects what (especially since I'm the one that put it all in there)!

Also, JSWolf wrote...

Quote:
Originally Posted by ;2900053
Since you seem to be able to do what you want by using a font character, why not embed a font that has ornaments and pick one of them to use for the section breaks.
I actually did that before, with the first ebook I designed (remember the one with all "ye olde fonts")? In the process of doing that, I discovered that the problem with using an ornament(al) font in that way is that if people turn off the publisher's font -- or their device just doesn't support embedded fonts at all -- then you end up with a stupid letter (or whatever other character) where the ornament is supposed to be. When I first designed that other, first book of mine, with fonts turned off you ended up with a BIG letter "d" underneath all the chapter headings (where I'd used a font ornament in the same way I used the graphical one for this current one). To try to accommodate for that, what I did was edit the font, put the ornament I wanted to use in the em-dash slot, and so if people did turn off the embedded font then at least they'd have what looked like a small underline (at a large font size) underneath the chapter headings.

In other words... yeah, that was definitely something I considered! But for this current context, with my needing that "poem break" in only two places in the 500-odd page book, I figured this asterisk thing would work out okay (and it looks okay, too).
Psymon is offline   Reply With Quote
Advert
Old 08-18-2014, 07:58 PM   #36
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I thought there was a live CSS function in Sigil too. There is one in the calibre editor. It shows what CSS is active at any given point.

You might use the calibre editor to look at the css.
mrmikel is offline   Reply With Quote
Old 08-18-2014, 08:46 PM   #37
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by mrmikel View Post
I thought there was a live CSS function in Sigil too. There is one in the calibre editor. It shows what CSS is active at any given point.

You might use the calibre editor to look at the css.
I guess I don't understand what you mean -- if I'm looking at a paragraph (or whatever else), in Sigil I can see both the code and the preview at the same time, so how could I not know what CSS is "active" for what I'm looking at?
Psymon is offline   Reply With Quote
Old 08-19-2014, 01:24 AM   #38
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Psymon View Post
I guess I don't understand what you mean -- if I'm looking at a paragraph (or whatever else), in Sigil I can see both the code and the preview at the same time, so how could I not know what CSS is "active" for what I'm looking at?
Because it could be getting inherited from another element, and CSS tends to be based in stylesheets which you aren't in the middle of viewing, and the rules start getting tricky?

Unless you have a very good memory for all the CSS you put in...

The Live CSS view in calibre editor (Sigil does NOT have such a tool) is designed to simplify for you which classes, elements, and ids they possess or inherit from, (what rules from where affect each element,) and links to the locations where those rules can be edited.

http://manual.calibre-ebook.com/edit...live-css-panel
eschwartz is offline   Reply With Quote
Old 08-19-2014, 04:46 AM   #39
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
In Sigil and in Calibre the width of the cover.jpg is defined in the <img> tag, not in the stylesheet.
In Sigil it is simply width="100%", in Calibre it is like style="width: 100%" (actually it is height).

You could try the same with your ornament.

in HTML
<p class="img"><img alt="verse break" width="38%" src="../Images/ornament-black.jpg" /></p>

in CSS
p.img {
text-indent: 0;
text-align: center;
margin-top: 0.38em;
margin-bottom: 0.38em;
}

As to: "the top margin invariably ended up bigger than the bottom margin"

I think, it has nothing to do with margins, but with the size of the ornament. Probably the height is less than that of the font-size. Because the orientation of the graphic is at the basis of a line, you will get more space above than below. See it in the sample with some text to make it clearer.
You could use the same ornament but in a higher image with some more space at the bottom and less at the top, in other words: lifting it a little bit within the picture. That would compensate the too big margin to the preceeding paragraph.

George
Attached Thumbnails
Click image for larger version

Name:	margins.jpg
Views:	143
Size:	9.2 KB
ID:	127050  
GMcG is offline   Reply With Quote
Old 08-19-2014, 05:22 AM   #40
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by mrmikel View Post
I thought there was a live CSS function in Sigil too. There is one in the calibre editor. It shows what CSS is active at any given point.

You might use the calibre editor to look at the css.
View-->Preview has a Console for previewing elements, and you can view the CSS and metrics from there in Sigil. FWIW.

Hitch
Hitch is offline   Reply With Quote
Old 08-20-2014, 11:03 AM   #41
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Wow, thanks -- once again! -- for all these helpful replies, everyone! But y'know what? I think that at this end of things, I'll just stick with that asterisks way of separating the breaks in the poems (which is also reminiscent of how various print versions have done it, too), if only because it's just so much simpler and less problematic.

And re those "preview consoles" in both Sigil and Calibre, I took a look at both (it took a while for me to find the one in the latter!) and yikes, I think that's complicating things too much for me! "TMI", as the kids say (ha ha), and I seem to manage okay just working on things as I do.

I suppose I'm pretty much done now with my query here -- and it has indeed been very fruitful and informative for me, and I hope it has been (or will be) for others, too).

I do have one other quick question (which I presume has a simple answer) related to this Walden ebook that I've been working on, which I hope I can just toss in here without starting a new thread -- if I should do so, though, please just let me know.

When I started this current ebook, it was just going to be Thoreau's "Walden" and nothing more, but now that I've been working on it for a while, it would appear that it's becoming more like "Walden & Other Writings", with various essays and excerpts from his other books, plus some biographical stuff, etc., too.

Right now I have "Walden" all done (along with his "Civil Disobedience" essay), which in landscape mode takes 576 page, and in portrait 312. I'm just guessing, but by the time I add in all the other additional stuff, I could easily see that pretty much doubling the book in size/length.

Is that getting "too big" for an ebook? I do realize that the bigger an ebook is, the longer it takes to load/render. Surely there are other HUGE books that have been published in ebook format, though (James Joyce's "Ulysses", or "Moby Dick", or collections of Shakespeare's plays or whatever else)?

Thanks again, everyone!
Psymon is offline   Reply With Quote
Old 08-20-2014, 01:18 PM   #42
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I think the render speed has more to do with the size of the chunks that make it up. There are so pretty big books on here, including the Bible. They will take a while to load, but once loaded, not such a big deal as far as I'm concerned.
mrmikel is offline   Reply With Quote
Old 08-20-2014, 01:31 PM   #43
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
"The complete Malazan Book of the Fallen" opens without problems on my aura. And that are 10 Books with 1000 pages minimum each.
dickloraine is offline   Reply With Quote
Old 08-20-2014, 01:50 PM   #44
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by dickloraine View Post
"The complete Malazan Book of the Fallen" opens without problems on my aura. And that are 10 Books with 1000 pages minimum each.
Yes, but most probably each book is divided in separate chapters and files.
Toxaris is offline   Reply With Quote
Old 08-20-2014, 02:26 PM   #45
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
Of course. I just wanted to support mrmikel. If a book is properly build, its size doesn't matter for most of the readers. Maybe there is some outliner somewhere that renders the whole book, but then I would blame the software.
dickloraine is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share your favourite Holiday ornament or decoration 5thWiggle Lounge 2 12-22-2013 12:40 PM
PRS-650 What is 'ornament assy' ? Witty Username Sony Reader 7 08-27-2011 05:43 PM
Other Non-Fiction Holmes, William H.: Form and Ornament in Ceramic Art, v.1, 30 Dec 2008 vivaldirules IMP Books 0 12-30-2008 08:47 AM
Other Non-Fiction Holmes, William H.: Form and Ornament in Ceramic Art, v.1, 30 Dec 2008 vivaldirules Kindle Books 0 12-30-2008 08:46 AM
Other Non-Fiction Holmes, William H.: Form and Ornament in Ceramic Art, v.1, 30 Dec 2008 vivaldirules BBeB/LRF Books 0 12-30-2008 08:45 AM


All times are GMT -4. The time now is 05:50 AM.


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