01-03-2011, 06:28 AM | #31 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
But chapter breaking doesn't normally change the formatting. It merely copies everything after the break into a new file, duplicating the <head> section (ok, it's a little bit more complicated than that, but in a nutshell, this is what happens). Your CSS should transfer just fine. |
|
01-03-2011, 08:03 AM | #32 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
It happens repeatedly whereby when i place the cursor after the full stop of a paragraph then click the Chapter Break icon, the chapter break is created, the text preceding the break point is in one file (and has the problem of now being all aligned left and seemingly unchangeable, at least it's alignment) and the text following the Chapter Break point is brought into a new file which has all the correct formatting still in place. In this book, which is almost 250 pages, this seems to happen every Chapter Break I make as I try to edit and format the book to look decent in ePub.
It'll take some time to follow the guidelines at the link you've provided as this has consumed so much time out of my present projects as it is, but I'll do my best when I'm able to. In the meantime, I'll juts go ahead with formatted version without chapter breaks - that seems to work okay and retain formatting as desired, though not ideal result. Thanks. |
01-03-2011, 12:18 PM | #33 |
Evangelist
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
|
Hmmm that's really strange. A page should not change at all (beyond losing the text after the cursor when you hit Ch break) and the new page you made with Chapter break should retain all formatting from the page it used to be part of.
Can you provide a screenshot of the preceding page or copy/paste the text here of the code particularly from the beginning of the page, before and after the chapter break. Everything from the <body...> and above. maybe we can narrow down the problem. |
01-03-2011, 05:50 PM | #34 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
Quote:
======= BEFORE ADDING CHAPTER BREAK: ------ <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>OTLePUB2010RTxx.xhtml</title> <link href="../Styles/template.css" rel="stylesheet" type="text/css" /> </head> <body style=""> ======= AFTER ADDING CHAPTER BREAK in preceding paragraph/chapter ------- <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>OTLePUB2010RTxx.xhtml</title> <link href="../Styles/template.css" rel="stylesheet" type="text/css" /> </head> <body style=""> =========== AFTER ADDING CHAPTER BREAK in following paragraph/chapter -------- <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>OTLePUB2010RTxx.xhtml</title> <link href="../Styles/template.css" rel="stylesheet" type="text/css" /> </head> <body style=""> ============ To get these pieces of code, I created a fresh new file of the basic text of the project, then started afresh by making the first chapter break when the problem begins. Btw, I'm using Sigil 0.3.2 on MacBook Pro 15"/ 3.06GHz/ 500GB - 7200/ 4GB/ OSX 10.6.5 Thanks for your help. Last edited by panda6855; 01-03-2011 at 05:54 PM. |
|
01-04-2011, 05:06 AM | #35 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
NEW DEVELOPMENT OF ISSUE:
I now realise that this issue does not happen when adding chapter breaks into the main body of the book, only in the tile page, publishing details and copyright page, and dedication page. After that, the chapters start and they seem to render fine. So... by using the same action - clicking to add Chapter Break where text ends on a page - throughout the document, the first 3 pages end up having the left-alignment-impossible-to-center-again issue, whereas all the rest seem to be fine. I've now tried files from a variety of sources including several different settings variations when creating the basic ePub file out of IDCS5. Stranger and stranger it is becoming... |
01-04-2011, 06:08 PM | #36 | |
Bookmaker & Cat Slave
Posts: 11,445
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Is your understanding of the alignment of these specific pages based solely on the iPad? I ask this because, as I have noted elsewhere on MR in threads, iBooks has notorious problems with centering, as it ignores "text-align:center" unless you have that specific element wrapped with a second element. In other words, you have to have something like a <span> inside a <p> for text-align:center to work; or another element. FWIW, iBooks also ignores all the page-break: element controls, or widows or orphans. Does this help you, because what you posted as the CodeView isn't that helpful, you didn't include any of the misaligned body text elements for us to look at. Hitch |
|
01-04-2011, 08:41 PM | #37 | |||
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
Thanks Hitch. Very enlightening and clarifying for me - big AHA!.
Quote:
Quote:
Quote:
(Btw, I just posted what I understood I was asked to post.) Many thanks for help. Last edited by panda6855; 01-04-2011 at 08:46 PM. |
|||
01-05-2011, 12:59 AM | #38 | |
Bookmaker & Cat Slave
Posts: 11,445
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
You'll have to learn about CSS: Go here: http://www.w3schools.com/ and learn how inline styles, internal stylesheets and external stylesheets work, and how to use them. Because what you're asking isn't a one-solution problem, because you will have numerous elements on any given "page" or "chapter," and to center them will take an equal number of solutions, that is, what centers a heading mightn't work for something else, or mightn't be needed for something else. In general, to center a paragraph in iBooks, you'll have to create a class of paragraphs, something like: p.center {text-align:center; text-indent:0px} Which you'll include EITHER in the internal or external stylesheet, and then, in the actual code in the codeview page, you will have something like <p class="center"><span>SOME TEXT GOES HERE</span></p> BUT, this will only work on the paragraphs that have this precise coding, and it won't solve your problem with headers and images, so, as I said, I'm afraid you're going to have to learn a little CSS first in order to apply what you need to apply. Don't fear--it won't be a LOT of CSS, but you'll need to learn a little. Hitch |
|
01-05-2011, 05:15 AM | #39 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
Thanks Hitch, I think I understand what you're saying. I'm off to w3schools for a while I guess.
I want to get through this and get great results, and the route to that is obviously so varied and complex that nobody but me can take it now. I'm still open to any help and suggestions along my journey... from anyone who is willing and able. Many thanks to those who have been so helpful so far. I'm still listening... |
01-12-2011, 02:53 AM | #40 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
BUT ePUB file doesn't validate...
Now, having got an ePub file as I'm happy with it in Sigil and how it reads in ADE and iPad, I tired to validate the ePub file but I get the following error message:
----- WARNING: .../title.pub: item (iTunesMetadata.plist) exists in the zip file, but is not declared in the OPF file ----- I get that message in both ways: (1) using epubcheck1.1 in Terminal and (2) double-checking on threepress. What does this Error actually mean and how can I repair it? I opened the file in Calibre and opened the OPF file in TextWrangler, but... I can't see where this issue is. Can anybody help me with this? Many thanks in advance for any help offered. |
01-12-2011, 07:31 AM | #41 |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Are you trying to validate a file after uploading it to iTunes Connect? That error message is saying that the EPUB file you are trying to validate contains a file "iTunesMetadata.plist" which isn't listed in the .opf file. As far as I know, the "iTunesMetadata.plist" file is added to the EPUB file by the iTunes Connect software (I assume it contains metadata used by the iTunes Connect system).
What I'd suggest: Make a copy of your EPUB file. Working on the copy, change the extension to .zip. Open the zip file and remove the "iTunesMetadata.plist" file from the zip archive. Change the file extension back to .epub. Now run that file through epubcheck. The file should now pass epubcheck. |
01-12-2011, 08:16 AM | #42 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
Quote:
|
|
01-13-2011, 12:21 PM | #43 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2011
Location: Athens, Greece
Device: iPad
|
Quote:
|
|
01-13-2011, 06:37 PM | #44 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
|
Yes I did. Thanks for the pointer. I understand now. Maybe I should duplicate the ePUB before testing it on iPad and only test the duplicate and keep the originals clean.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
erm, simple question , hope for simple answer! | al zymers | Amazon Kindle | 5 | 09-25-2010 01:01 PM |
Code needed so OI will mark chapters? | PKFFW | Sigil | 4 | 07-05-2010 06:34 PM |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 12:26 PM |
Simple question for a simple mind :) | PKFFW | OpenInkpot | 6 | 08-27-2009 09:00 PM |
would someone kindly explain this formatting code | Book | IMP | 2 | 07-03-2009 10:53 PM |