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-24-2012, 03:08 AM   #1
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
InDesign CS6 export to EPUB problems

Hi there
I'm helping a client who will need to prepare their books on InDesign CS6, the idea is to create a workflow that will require the least possible editing in the EPUB stage.

But what I'm seeing is that this version of InDesign creates some problems -

For example, there are some alert-boxes in the book that need to be shown with a blue background. In CS5 I created an object style for that text-frame, and InDesign spat out an empty style rule with that name and inserted the correct class reference in the HTML so I could format the boxes by editing the style rule. Each text box has a heading inside it that is styled with the a paragraph style (bluebox_head) and that just got exported as normal - a style was created with the correct formatting. So all looked fine.

In CS6, on export there is no rule created for the object style in CSS, and what's more, the paragraph styles used inside that text frame are duplicated - a style is created for each instance of that heading in the HTML document, named incrementally.

So I've got all these duplicate styles in the CSS document - "bluebox-head-1" and "bluebox-head-2" and so on and on, each with identical rules.

Now - it may be possible to fix this with a find and replace in EPUB stage but what a mess!

Am I doing something wrong?
Klip is offline   Reply With Quote
Old 08-24-2012, 04:26 AM   #2
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
OK - I've figured out something more.

This problem does not occur when exporting from a single InDesign document - (at least, the CSS rule for the object style is still not created, but at least I'm not getting the duplicate rules)

But it does happen when exporting an InDesign book document - and I think the problem is because although the styles are defined in the document that is used as the style source, the actual objects that the styles are applied to, are only in later documents.
Klip is offline   Reply With Quote
Advert
Old 08-24-2012, 10:39 PM   #3
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,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Do you know that most readers are B/W and blue won't show as blue?
JSWolf is offline   Reply With Quote
Old 08-25-2012, 01:28 AM   #4
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
Hi
I should have mentioned
The book is a sort of in-company manual that is intended to be read on iPads or possibly Android phones - not a book that will be for sale on the open market.
Klip is offline   Reply With Quote
Old 08-26-2012, 08:25 PM   #5
amyg
Enthusiast
amyg is on a distinguished road
 
Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
InDesign does some messy stuff with creating css styles and the html tags that point to them. That's why I don't use its automatic tagging. You can bypass all this and create your own CSS sheet that you can give your client. The stylesheet can contain styling for all your paragraph styles (classes) and object styles (divs). On Epub export, there is an option to add your own stylesheet. Then create an export tag for blue box_head. The fly-out menu on the Paragraph Styles pallet has an option to edit all export tags at once. I think when you save the template for your client, all the epub export setting will be saved with it. You can just give your client the css sheet and the InDesign template.

Still though, I have not been able to make an epub from InDesign that requires no editing after it is in epub form. I always have to go in and tweak some things.
amyg is offline   Reply With Quote
Advert
Old 08-27-2012, 02:38 AM   #6
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
That's what I used to do, amyg - but it no longer works:
With this version of InDesign, it adds your CSS document to InDesign's automatically created CSS, instead of replacing it. So there are two .css documents, both linked to all the XHTML documents. It does this even if you click the option not to create styles - then it just creates a much shorter default style sheet with rules for body, div, and all images.

So if you are clever you can write the imported CSS in such a way that they overwrite the InDesign version but I cant always figure a way to do that.

But my problem is not really with the CSS generated - I can always replace that. It's with the class references in the XHTML document. Because they get duplicated in this way, unless I do a regular expression find and replace to change them all to the same class reference, I would have to write a style for each of these duplicated classes, that are actually the same

Possible to do, but it's so messy!
Klip is offline   Reply With Quote
Old 08-27-2012, 07:01 PM   #7
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
If the ePUB is intended to be read only in iBooks, on the iPad, you can use CSS to target all of these duplicated classes in one shot, like this:

Code:
p[class^="bluebox_head"] {
 /* your styles */
}
This does not work on eReaders that use Abobe RMSDK. Other than that, GREP is your best friend.
PageLab is offline   Reply With Quote
Old 08-27-2012, 07:57 PM   #8
amyg
Enthusiast
amyg is on a distinguished road
 
Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
I wonder what's creating your problem. You don't have this with other paragraph styles, do you? Just the ones in these boxes. Hmm, weird. So what is the different between these text frames and your other text frames? I want to try to recreate your problem but I don't think I have enough information.

PageLabs solution looks like a good one. Though I'm not sure if it will work on the Androids.

And yeah, I hate that InDesign CS6 forces a stylesheet on you. I definitely like CS5.5 better. This was a step backwards in my opinion.
amyg is offline   Reply With Quote
Old 08-28-2012, 12:58 AM   #9
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
PageLab - thanks for that - I'll have to find out if it will work for the client's reading device. I suspect they want it to work on Android as well. But at least it's a possible fix.

amyg - It does this for tables too, and for images in tables, for some reason. I think the reason it does this for the text boxes is because those are formatted with an object style and not a paragraph style. It is a bit of a mystery for me because it does not do this when there are several text-boxes in a single InDesign document, just when it is set up as an InDesign book document, with several InDesign documents combined.
Klip is offline   Reply With Quote
Old 08-28-2012, 01:00 AM   #10
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
I've just got a reply from Elizabeth Castro, who says she will forward my problem to "the folks at Adobe"

So maybe I'll get an answer from there.
Klip is offline   Reply With Quote
Old 08-28-2012, 12:25 PM   #11
amyg
Enthusiast
amyg is on a distinguished road
 
Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
Oh! You're using the book feature! InDesign's book feature sucks when it comes to epub output. I don't use it anymore. I do use object styles without this issue.

I hope Liz will help you get Adobe to fix it. That would be great and I think she may actually have the clout to do that. It would be nice sometimes to be able to use the book feature but for now, I will continue to avoid it.
amyg is offline   Reply With Quote
Old 08-29-2012, 02:09 AM   #12
Klip
Enthusiast
Klip began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Kindle
Yes - I tried to avoid using the book feature too, but the one thing it does do is create the correct (as far as this client is concerned!) IDs in the spine and manifest - based on individual file names. Apparently with this client's setup, that's essential. They are dealing with an enormous load of manuals and there's some kind of server-side processing that needs to happen, and having the correct IDs is important to them.
Klip is offline   Reply With Quote
Old 09-26-2012, 06:12 PM   #13
SusanM
Bemused by possibilities
SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.SusanM ought to be getting tired of karma fortunes by now.
 
SusanM's Avatar
 
Posts: 58
Karma: 480244
Join Date: Jul 2012
Device: iPad3, Kobo
Quote:
Originally Posted by Klip View Post
That's what I used to do, amyg - but it no longer works:
With this version of InDesign, it adds your CSS document to InDesign's automatically created CSS, instead of replacing it. So there are two .css documents, both linked to all the XHTML documents. It does this even if you click the option not to create styles - then it just creates a much shorter default style sheet with rules for body, div, and all images.

So if you are clever you can write the imported CSS in such a way that they overwrite the InDesign version but I cant always figure a way to do that.

But my problem is not really with the CSS generated - I can always replace that. It's with the class references in the XHTML document. Because they get duplicated in this way, unless I do a regular expression find and replace to change them all to the same class reference, I would have to write a style for each of these duplicated classes, that are actually the same

Possible to do, but it's so messy!
I noticed the same thing, but I ended up with two stylesheets - one generated by InDesign and my external stylesheet. I also found that my object style did not export so I ended up adding a top margin to the frame.

I thought object styles were supposed to export. Also, does the relative to page format work for iBooks? I haven't tested this out or do you have to select fixed for iBooks?
SusanM is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First thoughts on InDesign CS6 EPUB Chang ePub 7 07-19-2012 01:53 PM
Export to ePub from InDesign CS5 gardefjord ePub 42 10-29-2011 10:42 AM
InDesign CS 5.5 Epub Export Problems SamL ePub 1 09-16-2011 07:06 PM
InDesign export as ePub? Alda General Discussions 3 01-24-2011 12:59 PM
EPUB Expert Needed: Cant properly export epub from InDesign crottmann ePub 17 08-27-2010 10:23 AM


All times are GMT -4. The time now is 12:54 PM.


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