Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2020, 04:49 PM   #31
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
Quote:
Originally Posted by phillipgessert View Post
Thing that always gets me on InDesign cleanups is how often they use spans instead of em for italics. Really easy to forget that and accidentally wipe em out when cleaning up all the other cruft.
It's not easy to lose italic spans. I look at the CSS and if I see a class that specifies italic be it span.xxx or just .xxx, I;ll check and if it is a span, I'll change that to an <i> and be OK with it. I've never botched a span that was an italic, bold, or bold italic.

I've never seen anything difficult to fix up in an InDesign made ePub. That doesn't mean it isn't possible, but unlikely.
JSWolf is offline   Reply With Quote
Old 07-14-2020, 10:08 PM   #32
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I think what they are getting at is that some of the automated clean-up routines automatically remove spans (especially if they are empty spans with no class: <span>Something here</span>) and other tags. Of course people who are as experienced as you are wouldn't make those noob mistakes...
Turtle91 is offline   Reply With Quote
Advert
Old 07-15-2020, 06:40 AM   #33
najgori
Klak
najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'
 
najgori's Avatar
 
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
Probably 90% of my epub jobs was converting indesign files.
These indesign plugins helped a lot.
PerfectPrepText: A smart way to style local formatting
najgori is offline   Reply With Quote
Old 07-15-2020, 06:45 AM   #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,897
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 Turtle91 View Post
I think what they are getting at is that some of the automated clean-up routines automatically remove spans (especially if they are empty spans with no class: <span>Something here</span>) and other tags. Of course people who are as experienced as you are wouldn't make those noob mistakes...
What cleanup routines would remove non-empty spans?
JSWolf is offline   Reply With Quote
Old 07-15-2020, 09:03 AM   #35
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Sometimes I put em through pandoc to wipe out all the goofy classes, and that also clears out the italic spans. Then I realize my error and start over, changing the italic spans first in Sigil. Not a difficult thing, just something I notice I often forget.
phillipgessert is offline   Reply With Quote
Advert
Old 07-17-2020, 07:04 AM   #36
Dan_Smith
Junior Member
Dan_Smith began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2020
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
How does that get you an ePub?
It gets you a MOBI file which I then take into calibre and convert to whatever I need. It's just that 'exporting for Kindle' rather than 'export>epub' keeps the line spaces and other formatting better in my experience.
Dan_Smith is offline   Reply With Quote
Old 07-19-2020, 04:44 PM   #37
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
Quote:
Originally Posted by phillipgessert View Post
Sometimes I put em through pandoc to wipe out all the goofy classes, and that also clears out the italic spans. Then I realize my error and start over, changing the italic spans first in Sigil. Not a difficult thing, just something I notice I often forget.
Quote:
Originally Posted by Dan_Smith View Post
It gets you a MOBI file which I then take into calibre and convert to whatever I need. It's just that 'exporting for Kindle' rather than 'export>epub' keeps the line spaces and other formatting better in my experience.

Might be a better idea to export to ePub and use Calibre's editor and Sigil to edit the ePub.
JSWolf is offline   Reply With Quote
Old 07-20-2020, 09:19 AM   #38
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 Dan_Smith View Post
It gets you a MOBI file which I then take into calibre and convert to whatever I need. It's just that 'exporting for Kindle' rather than 'export>epub' keeps the line spaces and other formatting better in my experience.
What are you using, then, for your "lines"?

Hitch
Hitch is offline   Reply With Quote
Old 07-20-2020, 12:19 PM   #39
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by JSWolf View Post
Might be a better idea to export to ePub and use Calibre's editor and Sigil to edit the ePub.
I do, the pandoc step just makes that easier for me.
phillipgessert is offline   Reply With Quote
Old 07-20-2020, 02:34 PM   #40
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
Quote:
Originally Posted by phillipgessert View Post
I do, the pandoc step just makes that easier for me.
How is it easier since it loses some of your code? It's actually easier to learn CSS/HTML and edit the ePub that you get when you export from Indesign as ePub. Because once you know CSS/HTML, you can do a lot more then just let some program do the conversion and you not know how to check the code. I've seen too many automated setups create eBooks with really proo code that could maybe cause problems with some Readers/programs. The rule is to keep the code as simple as you can and to do that, you NEED to go into the code to make sure it's as simple as it can be. The sinpler it is, the less chance of a problem and the greater chance it will work in more situations.

Last edited by JSWolf; 07-20-2020 at 02:37 PM.
JSWolf is offline   Reply With Quote
Old 07-21-2020, 10:50 AM   #41
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I think our wires are getting crossed. When I have an InDesign cleanup task the first thing I do is raze it to the ground in order to rebuild it with semantic html and then style it with css. There is no avoidance of code happening here, just occasionally overzealous removal of InDesign cruft first.
phillipgessert is offline   Reply With Quote
Old 07-21-2020, 11:04 AM   #42
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
Quote:
Originally Posted by phillipgessert View Post
I think our wires are getting crossed. When I have an InDesign cleanup task the first thing I do is raze it to the ground in order to rebuild it with semantic html and then style it with css. There is no avoidance of code happening here, just occasionally overzealous removal of InDesign cruft first.
Exactly. Overzealous removal of code you actually want. That's why I say, take the ePub from InDesign and hand edit it from there. Then you don't get code removed that you want. And you are in control of how it gets edited.
JSWolf is offline   Reply With Quote
Old 07-21-2020, 11:17 AM   #43
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I do. I just run it through pandoc first. I think you’re kinda shadow boxing here, so I am going to clarify just one more time. I want to get rid of the code I don’t want. Sometimes I forget to first isolate the code I do. Context: author comes to me with an InDesign file from a designer that can’t be bothered to make the ebook. InDesign file is a mess, with lots of arbitrarily named paragraph and character styles, applied inconsistently and with lots of in-text overrides that mean nothing. Clean up the InDesign file within reason and export an ePub. Every paragraph has a class. Most mean nothing. Random spans everywhere. Most* mean nothing. I don’t like working with markup like that, and I’m sure you don’t either. Easiest way I know of to get a clean slate from that is to first run it through pandoc. InDesign > ePub > pandoc > epub > the actual work. We are actually in agreement.

*Save 3: bold, italic, and bolded italic; which I kick myself for having to redo by forgetting to isolate those first.
phillipgessert is offline   Reply With Quote
Old 07-21-2020, 11:23 AM   #44
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
Quote:
Originally Posted by phillipgessert View Post
I do. I just run it through pandoc first. I think you’re kinda shadow boxing here, so I am going to clarify just one more time. I want to get rid of the code I don’t want. Sometimes I forget to first isolate the code I do. Context: author comes to me with an InDesign file from a designer that can’t be bothered to make the ebook. InDesign file is a mess, with lots of arbitrarily named paragraph and character styles, applied inconsistently and with lots of in-text overrides that mean nothing. Clean up the InDesign file within reason and export an ePub. Every paragraph has a class. Most mean nothing. Random spans everywhere. Most* mean nothing. I don’t like working with markup like that, and I’m sure you don’t either. Easiest way I know of to get a clean slate from that is to first run it through pandoc. InDesign > ePub > pandoc > epub > the actual work. We are actually in agreement.

*Save 3: bold, italic, and bolded italic; which I kick myself for having to redo by forgetting to isolate those first.
Solution to the problem...

Take the ePub direct from InDesign and using Calibre's Editor or Sigil, replace the spans for bold, italic, and bold italic and then run through Pandoc. That should do it.
JSWolf is offline   Reply With Quote
Old 07-21-2020, 11:38 AM   #45
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by JSWolf View Post
Solution to the problem...

Take the ePub direct from InDesign and using Calibre's Editor or Sigil, replace the spans for bold, italic, and bold italic and then run through Pandoc. That should do it.
That’s what I meant by isolate them first. That’s exactly what I do. I think this is a situation where we talked about it so long that the context of my original comment got lost. The actual solution is to tie a ribbon around my finger, and my initial comment was made in case others need a ribbon too. It’s not actually that big a deal.
phillipgessert is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-alpha characters not exporting properly to ePub from InDesign forlor ePub 9 07-12-2013 02:02 AM
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) David Derrico Calibre 5 08-04-2010 12:13 AM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Insert Blank Lines Between Paragraphs Timoleon Calibre 14 03-22-2009 02:43 PM
Blank Lines vivaldirules Upload Help 55 03-02-2009 03:17 PM


All times are GMT -4. The time now is 06:28 PM.


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