![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2012
Device: iPad
|
Streamlining Blank Lines in InDesign
Hello! Apologies if this has been answered somewhere else, but I have a novel I'm turning into an EPUB in InDesign, and some paragraphs need a blank line between them while some don't. I know I can use CSS to add space before/after paragraphs, but the problem is that not all paragraphs require a blank line space between them so I'm not sure what is the easiest way to do this without individually finding each paragraph and signifying whether it should have a blank line after it (and with almost 700 pages this isn't really the best option). I do have [blankline] marked for the blank lines so if there would be a way to do some sort of GREP or Find/Replace that would be helpful, I just can't wrap my head around the most efficient way to do this. Thanks for your help!
|
![]() |
![]() |
![]() |
#2 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Quote:
I am not sure to understand correctly your problem (a piece of the text code will help), but why don't you just define in your CSS a default margin for <p>'s, and a new <p> class "bigSkipBefore", and you S&R your "[blankline]" marker with <p class="bigSkipBefore"> ? Last edited by AlPe; 08-24-2012 at 12:45 PM. |
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,258
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
Rework your InDesign styles so that there is no need for blank paragraphs and remove them.
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
|
InDesign is the best option for me to create epubs. It creates very clean code if used correctly. Not sure what AIPe's problem is with it. Maybe he/she could elaborate.
There is definitely a way to do the search/replace with GREP for this but I'm not even sure you need GREP since you've marked it so well. Just replace all instances of [blank line] with a nonbreaking space (and a hard return before or after to put it on it's own line if it isn't already). Use the special character drop-down to the right of the Change To field. All paragraphs that contain a nonbreaking space are valid in epub and show as a blank line. That would be the easiest way. If you don't want to use nonbreaking spaces, another way would be to use a script that looks for a style and then changes the style for the paragraph after it based on your input in a dialog box. To use this, you would change all the blank line paragraphs to a "blank line" style. Then use the script to find all of that style and change the one after it to a new style that includes some extra space before. The script is here. It costs $39. There's a free one out there that does the same thing but the site where I got it is giving a warning message about malware so I don't want recommend it right now. Also, www.indesignsecrets.com is a great source for using InDesign to make epubs. They have an epub forum and there are quite a few experts there who have helpful advice. One of the sites creators did a great InDesign to ePub video on Lynda.com. Her name is Anne-Marie Concepcion. She posts here occasionally. |
![]() |
![]() |
![]() |
#5 | |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
My apologies in advance for the off-topic.
Quote:
But I agree that anyone should maximize her or his own objective function, and, you know, studying is harder and requires much more time* than just paying Adobe. * In my opinion, InDesign is not really a time-saver, because one should also count the time spent looking for the "hacks" needed to make InDesign produce what you want... Last edited by AlPe; 08-26-2012 at 02:28 PM. |
|
![]() |
![]() |
![]() |
#6 |
Enthusiast
![]() Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
|
I also apologize for the off-topic post. This is in response to the post above:
Maybe what makes InDesign so ideal for me is that I (a) already have it so it doesn't cost me "hundreds of dollars" and (b) must do a print edition of almost every book I do anyway so I need to set them up in a page layout program to get the professional level typography I need. I don't "hack" InDesign to get it to do what I want but I do use a text editor when I'm all done to tweak the code. InDesign gets me 90% of the way there. It really speeds up the process. You do not need to pay for scripts to do regex S&R. InDesign has it built in. Not sure what you are talking about there. I've never bought a script for InDesign. There are hundreds of free ones out there and new ones popping up all the time to automate various processes. There are even a few people on forums that write custom ones for other users. It's a great community out there. Last edited by amyg; 08-26-2012 at 08:02 PM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2012
Device: Kindle for Mac 1.10.1
|
Thanks for thread. I have InDesign, and recently acquired Calibre as translation device for Kindle, which I downloaded as a test reader for things I write. So far "translation" is a murky sea, and I'd love success stories (if indeed such there be) as to inexpensive authoring software that makes layout less of a shoot-in-the-dark. My stuff is heavily dependent on precise placement of graphics and page breaks, which must be as carefully timed as the words I use.
|
![]() |
![]() |
![]() |
#8 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Quote:
Note that Kindle, except the Kindle Fire, does not support ePub at all and Kindle mobi format has less control. Kindle Fire uses an ePub and then compiles it into KF8. PDF is still your best bet, but for Kindle you need to create a custom size page in indesign so it will look ok. Dale Last edited by DaleDe; 08-29-2012 at 06:07 PM. |
||
![]() |
![]() |
![]() |
#9 | |
Booklegger
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2012
Device: iPad
|
Thanks for the feedback, everyone! The reason I needed additional 'blank lines' is because the novelist marked certain passages with additional space between them, and I was trying to preserve that (obviously line breaks are non-functioning, but I made progress with paragraph styles).
|
![]() |
![]() |
![]() |
#11 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.spacebreak { margin-top: 2em; margin-bottom: 0; text-indent: 0 } Code:
<p class="spacebreak">The start of the next section</p> |
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 40
Karma: 56
Join Date: Sep 2011
Location: Los Angeles, CA
Device: Nook simple touch, iPad
|
It should be pointed out that simply having blank space between paragraphs on an ebook will not sufficiently signify to the reader that there is a scene break if it happens to fall on a page break. You might consider having some characters there to indicate this instead of just blank space. Take a look at some professionally-published books to see how they've accomplished this. Sometimes it's 3 asterisks or bullets or tildes. The reason for this is that you can never know where the pages will break.
Also, realize that in novels, the paragraph after the blank space should not have the first line indented. JSWolf's example has it right (text-indent: 0). |
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
[QUOTE=amyg;2204668]It should be pointed out that simply having blank space between paragraphs on an ebook will not sufficiently signify to the reader that there is a scene break if it happens to fall on a page break.[quote]
It is, if the space is done with margin-top instead of margin-bottom. At least if the reader is compliant and does not throw away margins after a soft pagebreak... Otherwise, it can be done with a fixed-height <div> and page-break-after: avoid. Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But, in a pBook, they use a marker t show the section break (other then space) if the section break is at the end of the page. You cannot do that for an eBook. so the non-indented paragraph is what works.
|
![]() |
![]() |
![]() |
Tags |
blank line, epub, indesign |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exporting epub with InDesign: I lose blank lines! | tibiafry | ePub | 67 | 11-13-2023 08:57 AM |
Blank Lines in MOBI-Conversion | ulrichbi | Conversion | 3 | 01-19-2012 04:50 AM |
Blank Lines | jreidu | Workshop | 2 | 07-20-2011 05:11 AM |
Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
Blank Lines | vivaldirules | Upload Help | 55 | 03-02-2009 03:17 PM |