Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-14-2017, 11:29 AM   #1
Just some guy
Enthusiast
Just some guy began at the beginning.
 
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.
Just some guy is offline   Reply With Quote
Old 03-14-2017, 04:14 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Just some guy View Post
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.
@Just some guy - That's an unusual workflow. There are a number of commonly used tools to get from a Word DOCX to an ePub, and InDesign ain't one of them. Is there a particular reason you're using InDesign to generate the ePub? If all I wanted to do was to convert a DOCX to ePub, InDD wouldn't be my first choice.

FWIW- I convert up to a dozen documents a day from DOCX to ePub.

BR
BetterRed is offline   Reply With Quote
Old 03-16-2017, 12:42 PM   #3
sbin
Voracious reader
sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.sbin is less competitive than you.
 
sbin's Avatar
 
Posts: 56
Karma: 14644
Join Date: Oct 2009
Device: Kobo Aura One, Sony PRS T2, iPhone 6, Cybook Orizon, Cybook Gen3
Quote:
Originally Posted by Just some guy View Post
Is it possible to remove indentation from the first line in an ePub, while not changing the following ones (that should be indented)?
Regardless of your workflow, you should be able to accomplish that by modifying the css.
If you're able to manage a bit of code, here's your two possible scenarios:
  1. If the first paragraph has a different class than all the other paragraphs, it's easy: just set "text-indent: 0" for that class in the css.
  2. If the first paragraph is not different from all the others, you have to get a bit creative. Depending on how your html is formatted, you could target your first paragraph for example by using a selector like "h1 + .yourtextclass".
sbin is offline   Reply With Quote
Old 03-16-2017, 01:05 PM   #4
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,987
Karma: 128903378
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.
JSWolf is offline   Reply With Quote
Old 03-17-2017, 07:09 AM   #5
Just some guy
Enthusiast
Just some guy began at the beginning.
 
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...
Just some guy is offline   Reply With Quote
Old 03-17-2017, 07:25 PM   #6
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,987
Karma: 128903378
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.
JSWolf is offline   Reply With Quote
Old 03-24-2017, 11:21 AM   #7
Just some guy
Enthusiast
Just some guy began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
Quote:
Originally Posted by JSWolf View Post
InDesign? Oh heck no! That's just rubbish for making ePub. I've seen some really bad code come from InDesign.
What would be the problem? The books looks correct in Calibre and Adobe Digital editions now.
Just some guy is offline   Reply With Quote
Old 03-24-2017, 12:29 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Just some guy View Post
What would be the problem? The books looks correct in Calibre and Adobe Digital editions now.
None.
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 ).
theducks is offline   Reply With Quote
Old 03-24-2017, 12:34 PM   #9
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,987
Karma: 128903378
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 theducks View Post
None.
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 ).
Most eBooks are very easy to hand code. I've seen some of the ID code and can be almost as bad as FrontPage code.
JSWolf is offline   Reply With Quote
Old 03-24-2017, 01:03 PM   #10
Just some guy
Enthusiast
Just some guy began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
Quote:
Originally Posted by theducks View Post
None.
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 ).
Thank you! I have lots of respect for purists, but I think I'll stick with my current version then.
Just some guy is offline   Reply With Quote
Old 03-24-2017, 01:10 PM   #11
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,987
Karma: 128903378
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 Just some guy View Post
Thank you! I have lots of respect for purists, but I think I'll stick with my current version then.
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.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:59 PM.


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