03-14-2017, 11:29 AM | #1 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
First line in ePub is indented, but shouldn't be :) EDIT: This was due to user error!
Hi again,
Is it possible to remove indentation from the first line in an ePub, while not changing the following ones (that should be indented)? My text is based on a Word paragraph style that looks correct in Word as well as InDesign, while the ePub has these indentations... EDIT: My apologies; the problem is not related to ePub; it occurs during conversion from Word to InDesign. Sorry. Last edited by Just some guy; 03-14-2017 at 01:11 PM. |
03-14-2017, 04:14 PM | #2 | |
null operator (he/him)
Posts: 20,942
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
FWIW- I convert up to a dozen documents a day from DOCX to ePub. BR |
|
Advert | |
|
03-16-2017, 12:42 PM | #3 | |
Voracious reader
Posts: 56
Karma: 14644
Join Date: Oct 2009
Device: Kobo Aura One, Sony PRS T2, iPhone 6, Cybook Orizon, Cybook Gen3
|
Quote:
If you're able to manage a bit of code, here's your two possible scenarios:
|
|
03-16-2017, 01:05 PM | #4 |
Resident Curmudgeon
Posts: 75,958
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just create a class for your paragraph. I use .noindent as the name in CSS. <p class="noindent">
.noindent { text-indent: 0 } Done. |
03-17-2017, 07:09 AM | #5 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Thank you all! I'm sorry, I just got mails right now that there were replies to my question.
And no, I'm afraid that I literally don't have a clue about code and css -- I'm only doing this one-time project -- so I solved the problem in InDesign by changing the first lines manually (a couple of hundred times, haha). I'm sure InDesign isn't meant to do this but I'm happy with the result; it just took a while to get there... |
Advert | |
|
03-17-2017, 07:25 PM | #6 |
Resident Curmudgeon
Posts: 75,958
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
InDesign? Oh heck no! That's just rubbish for making ePub. I've seen some really bad code come from InDesign. Please find someone who knows CSS/HTML and get him/her to look at the code and fix the mess.
|
03-24-2017, 11:21 AM | #7 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
|
03-24-2017, 12:29 PM | #8 | |
Well trained by Cats
Posts: 30,386
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Jon is an over the top purist (inside the code). Many tools for Paper books, create 'excess' markup within an e-pub, unless the user is very sophisticated. If it 'works' on its intended target... It is fine (for now. It may not survive later improvements ). |
|
03-24-2017, 12:34 PM | #9 | |
Resident Curmudgeon
Posts: 75,958
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-24-2017, 01:03 PM | #10 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Quote:
|
|
03-24-2017, 01:10 PM | #11 |
Resident Curmudgeon
Posts: 75,958
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've read of a number of cases were these sorts of eBooks with messy/bloated code has caused problems. I've even taken some of these problem eBooks and cleaned up the code and then using the same Reader/program/app, the eBook is able to be read no problem. So no, it's not being a purist. It's making the code clean so it works better. One thing I've never understood is why there can be more then 100 unused CSS entries in the CSs and HTML. What good does that do? It does no good at all. There are tools for removing unused classes, subset fonts, and remove crud from graphics (makes them smaller without the crud). Yes the publishers do not use these tools and prefer to make eBooks that are less than optimal.
Last edited by JSWolf; 03-24-2017 at 01:13 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why are subsequent chapters indented? | Maurice Osborn | Writers' Corner | 6 | 05-22-2013 08:28 AM |
Paragraphs are indented in Aldiko | jhsrennie | Conversion | 6 | 10-12-2011 01:43 PM |
Problem with non-indented paragraph | Soxendom | ePub | 2 | 05-16-2011 06:30 AM |
.epub hyperlinks, centered and non indented text. | Xabache | ePub | 2 | 09-13-2010 01:11 PM |
Indented bookmarks and LRF | pimpoum | LRF | 0 | 07-10-2010 11:55 AM |