Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-24-2014, 02:09 PM   #1
kelemvor
Connoisseur
kelemvor began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2013
Device: Android
Any way to double the line returns in an ePub?

I have a couple epub books that don't have a large line return between paragraphs which makes it very hard to read. I prefer when there's a full blank line separating paragraphs. Is there any way I can run this file through something and have it double any line returns it finds so there will be the extra line?

Or are there any readers that I can set in options to show line returns double or anything like that?

Thanks.
kelemvor is offline   Reply With Quote
Old 06-24-2014, 02:24 PM   #2
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: 31,057
Karma: 60358908
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 kelemvor View Post
I have a couple epub books that don't have a large line return between paragraphs which makes it very hard to read. I prefer when there's a full blank line separating paragraphs. Is there any way I can run this file through something and have it double any line returns it finds so there will be the extra line?

Or are there any readers that I can set in options to show line returns double or anything like that?

Thanks.
You don't use returns to set gaps between paragraphs.

set margin-top: 2em (about 2 lines high) for the paragraph class in the line below the gap. (foo in this case)

Previous para</p>
<p class-"foo">

IMHO scene breaks should have their own class (for good control)
<p class="scenebreak">* * *</p>
theducks is offline   Reply With Quote
Advert
Old 06-24-2014, 02:29 PM   #3
kelemvor
Connoisseur
kelemvor began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2013
Device: Android
This isn't an epub I created, it's one I got from a friend of mine. What program can I use to make the changes? Can I just open it and do a huge find/replace?
kelemvor is offline   Reply With Quote
Old 06-24-2014, 02:43 PM   #4
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: 31,057
Karma: 60358908
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 kelemvor View Post
This isn't an epub I created, it's one I got from a friend of mine. What program can I use to make the changes? Can I just open it and do a huge find/replace?
Sigil or calibre-editor (part of Calibre) will do all the unpack and repackage for you. NB both have forums (above) here at MR

No huge S&R 1 (one) edit of the CSS might do it. All depends on the code.
theducks is offline   Reply With Quote
Old 06-24-2014, 05:19 PM   #5
kelemvor
Connoisseur
kelemvor began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2013
Device: Android
OK, I found all the paragraphs with this line between each:
<br class="calibre1"/>

When I checked the css file the calibre1 section didn't have anything in it. I tried adding margin-top:2em but it didn't seem to do anything. I'll keep playing when i have more time.
kelemvor is offline   Reply With Quote
Advert
Old 06-24-2014, 07:33 PM   #6
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: 31,057
Karma: 60358908
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 kelemvor View Post
OK, I found all the paragraphs with this line between each:
<br class="calibre1"/>

When I checked the css file the calibre1 section didn't have anything in it. I tried adding margin-top:2em but it didn't seem to do anything. I'll keep playing when i have more time.
I thought you wanted to ADD space

I just (today) answered how to do the S&R to remove this. do you have more than 1 thread going?
theducks is offline   Reply With Quote
Old 06-24-2014, 07:45 PM   #7
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: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
continued

1) clean up the mess and remove the </p><br... mess
this will give a consistent base to work with.

2) add or increase the margin-top: value for the <p class=

(note: you may have more than 1 class to change. first paragraphs, indented paragraphs are not unusual. you might also have a class for Blockquotes.)

That should now give you a cleaner base to fine tune. I use .5em for my standard top margin on indented paragraph books. I raise it to .85 for block paragraphs
NB I am stingy with space that does not add to readability (with my tired eyes ) OTOH I don't go for the 'stark' look. either
theducks is offline   Reply With Quote
Old 06-24-2014, 10:06 PM   #8
kelemvor
Connoisseur
kelemvor began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Jan 2013
Device: Android
It actually looks like nothign is formatted as an actual paragraph. Just linesof text with the <br stuff in the middle which just adds a line break. Maybe if I just replace the <br> tags with <p> tags that will do what I want. hmm

Otherwise I'l have to do a bunch of find/replace to swap the <br strings with regular <p> things and go from there I guess...
kelemvor is offline   Reply With Quote
Old 06-24-2014, 10:26 PM   #9
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: 31,057
Karma: 60358908
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 kelemvor View Post
It actually looks like nothign is formatted as an actual paragraph. Just linesof text with the <br stuff in the middle which just adds a line break. Maybe if I just replace the <br> tags with <p> tags that will do what I want. hmm

Otherwise I'l have to do a bunch of find/replace to swap the <br strings with regular <p> things and go from there I guess...
search: <br class="calibre1"/>
replace with: </p> <p class='your-class'>
theducks is offline   Reply With Quote
Old 06-25-2014, 04:11 AM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Give the book back to your friend and tell him to learn to create an e-book first. This sounds like a real, unnecessary mess to me.
Toxaris is offline   Reply With Quote
Old 07-01-2014, 01:27 AM   #11
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by kelemvor View Post
It actually looks like nothign is formatted as an actual paragraph. Just linesof text with the <br stuff in the middle which just adds a line break. Maybe if I just replace the <br> tags with <p> tags that will do what I want. hmm

Otherwise I'l have to do a bunch of find/replace to swap the <br strings with regular <p> things and go from there I guess...
This is what Calibre does when converting a not-well-formed word document, you see things like:
Quote:
<p>lalala<br class="calibre1"/>tatata<br class="calibre1"/>bababa</p>
Instead of dividing the 3 words into 3 paragraphs, I've seen seen happen quite often.

You could try editing CSS class:
Quote:
.calibre1
{
margin-top:2em;
}
or:
Quote:
.calibre1
{
line-height:1.5;
}
odedta is offline   Reply With Quote
Old 07-01-2014, 03:37 AM   #12
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: 79,756
Karma: 145864619
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 kelemvor View Post
I have a couple epub books that don't have a large line return between paragraphs which makes it very hard to read. I prefer when there's a full blank line separating paragraphs. Is there any way I can run this file through something and have it double any line returns it finds so there will be the extra line?

Or are there any readers that I can set in options to show line returns double or anything like that?

Thanks.
Actually, large paragraph spaces make books hard to read.

Question, before eBooks, printed books didn't have paragraph spaces. So how did you manage to read them if they were so hard to read?

I've never once heard anyone say (or saw anyone write) that paper books need paragraph spaces to make them easier to read. I've heard complains about some books having too small a font size, but never about anyone wanting paragraph spaces.
JSWolf is offline   Reply With Quote
Old 07-01-2014, 02:45 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
Actually, large paragraph spaces make books hard to read.
That is your opinion.

Quote:
Originally Posted by JSWolf View Post
Question, before eBooks, printed books didn't have paragraph spaces. So how did you manage to read them if they were so hard to read?
Sure they did. There are multiple different ways to separate paragraphs.

Here is a list of some of them:

https://www.fonts.com/content/learni...aph-formatting

And I just stumbled across a fantastic in-depth answer discussing paragraph spacing:

https://english.stackexchange.com/qu...hen-do-you-not

Also, it seems like lately I have been stressing ebooks for accessibility reasons. Here is one of the Accessibility Style Guides that was linked on Wikipedia (I recommend reading through it):

http://www.aph.org/edresearch/lpguide.htm

Quote:
APH encourages its writers to:
  • Indent 1 inch at margins
  • Justify left margin, unjustify right margin
  • Use a wide, san-serif font for ample kerning
  • Space 1.25 between lines, especially on forms where underscores and boxes are used to provide space for writing
  • Double space (30-34 pt) between paragraphs or other bodies of text
  • Use block paragraph style, no indents
Or http://www.bdadyslexia.org.uk/about-...le-guide.html:

Quote:
Layout.
  • Use left-justified with ragged right edge.
  • Avoid narrow columns (as used in newspapers).
  • Lines should not be too long: 60 to70 characters.
  • Avoid cramping material and using long, dense paragraphs: space it out.
  • Line spacing of 1.5 is preferable.
  • Avoid starting a sentence at the end of a line.
  • Use bullet points and numbering rather than continuous prose.
Now, while a lot of these Style Guides you find are aimed towards PRINT, there is no reason you can't commandeer some of the ideas and use them in ebooks as well.

Side Note: You may also want to look around for Web Design Style Guides (aimed towards accessibility). Those might also have many good ideas to bring over into ebooks.

Quote:
Originally Posted by JSWolf View Post
I've never once heard anyone say (or saw anyone write) that paper books need paragraph spaces to make them easier to read. I've heard complains about some books having too small a font size, but never about anyone wanting paragraph spaces.
I would recommend looking up a lot of the accessibility articles, and accessibility typography. And just because YOU don't prefer it that way, doesn't mean others can't prefer/need it differently. And this is one of the fantastic thing about ebooks, is that you CAN easily change this with the push of a few buttons on your device (IF the book is coded properly, and not mangled with hard returns).

Last edited by Tex2002ans; 07-01-2014 at 02:51 PM.
Tex2002ans is offline   Reply With Quote
Old 07-01-2014, 03:05 PM   #14
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: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have never heard (or read of) anyone complaining that a pBook needs paragraph spaces. A pBook (most of the time) uses indents instead of paragraph spaces.

A lot of those layout suggestions make for a lousy read as the formatting will then get in the way of the book. You want formatting that isn't obvious when you are reading.

But these people who do prefer to mangle the formatting of their eBooks, did they ever complain about pBooks needing all this excess space?


1.5em between lines with a 1.25em paragraph space is going to interfere with reading. You'll be focused on the poorly formatted book more so then the words. I have seen a number of eBooks these days formatted with a .3em line space and a 1.2em indent. personally, I'd remove the .3em paragraph space, but even so, .3em is not unreadable. The eye doesn't stop on a blank line because it's not a full blank line.

Using a sans-serif font is not all that wonderful for the body text. Sans-serif should be used for headers/titles/highlighting/offsetting text but not for the body text.

I will defend people's right to hypocritically mangle their eBooks if they want just as it's my right to point out how wrong it is.
JSWolf is offline   Reply With Quote
Old 07-01-2014, 07:05 PM   #15
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JSWolf View Post
I have never heard (or read of) anyone complaining that a pBook needs paragraph spaces. A pBook (most of the time) uses indents instead of paragraph spaces.
Well now you can say you HAVE READ it, because I linked you to multiple sources which state paragraph spacing is a perfectly valid style of typography.

Feel free to read lots of typography books/sources as well.

Hitch recommended this book to me, "The Elements of Typographic Style" by Robert Bringhurst. It is highly regarded in the typography world as one of the top "must have" books.

In typography, you typically settle on a text indent OR paragraph spacing, you don't really mix both because that would be "redundant" (although you could). (Bringhurst explained the idea/history behind it way better than I ever could).

The Style Guides that I linked to on APH + British Dyslexia Association were dedicated towards certain reading accessibility issues (APH publishes many books for the reading impaired (Large Print Editions, etc. etc.), the British Dyslexia Association is dedicated towards readers with Dyslexia).

I assume they did all of their research and found that THOSE layouts (larger line-height, space between paragraphs, left aligned, etc. etc.) are MORE READABLE for their market. Perhaps these styles are not to YOUR specific liking, and perhaps not as BEAUTIFUL as a normal book... but more READABLE.

Quote:
Originally Posted by JSWolf View Post
But these people who do prefer to mangle the formatting of their eBooks, did they ever complain about pBooks needing all this excess space?
I would talk to the people who purchase Large Print Editions, alternative printings, etc. etc. Feel free to go read up on DAISY's website + a lot of the other Web Design/Accessibility stuff + contacting/reading a lot of the information on these alternate publishers' sites.

And if you can't find anyone else complaining about the layout of physical books, then I can step up and be your first example (now you can say you have HEARD OF it as well). Nice to meet you!

Quote:
Originally Posted by JSWolf View Post
1.5em between lines with a 1.25em paragraph space is going to interfere with reading. You'll be focused on the poorly formatted book more so then the words. I have seen a number of eBooks these days formatted with a .3em line space and a 1.2em indent. personally, I'd remove the .3em paragraph space, but even so, .3em is not unreadable.
For example, here is a journal I am currently working on digitizing.

Here is a snapshot from the original PDF:

Click image for larger version

Name:	Original.png
Views:	198
Size:	49.7 KB
ID:	124833

(My personal preference/what I use)

Click image for larger version

Name:	1.2lineheight.png
Views:	221
Size:	57.4 KB
ID:	124835

Code:
p {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.2em;
	text-align: justify;
	text-indent: 2em;
}
Click image for larger version

Name:	.3paragraph.png
Views:	196
Size:	56.1 KB
ID:	124836

Code:
p {
	margin-top: .3em;
	margin-bottom: 0;
	line-height: 1.2em;
	text-align: justify;
	text-indent: 1.2em;
}
Click image for larger version

Name:	1.5lineheight.png
Views:	221
Size:	47.9 KB
ID:	124834

Code:
p {
	margin-top: 1em;
	margin-bottom: 0;
	line-height: 1.5em;
	text-align: justify;
	text-indent: 0;
}
Quote:
Originally Posted by JSWolf View Post
I will defend people's right to hypocritically mangle their eBooks if they want just as it's my right to point out how wrong it is.
But it is not necessarily MANGLED/WRONG, just DIFFERENT. "JSWolf's Design" is not the only way to do design on the block.

Some CSS errors are MUCH more egregious than others (forcing font sizes in px, forcing black text, etc. etc.). But having differing line-heights, text-indents, and paragraph spacing is not bad at all.

I would place it extremely low on my "must be destroyed" list. (#1 for me is probably the death of JPG (for artificial images)).
Tex2002ans is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Play Books on iPad Air - too big/double line spacing? pwjone1 Apple Devices 2 06-09-2014 11:20 AM
Validating epub returns warning writerkit Conversion 2 03-30-2013 02:35 AM
No double LL's-PDF to EPUB Pancho Harrera Workshop 7 08-13-2010 10:28 PM
ePub double spacing leebase Calibre 5 03-30-2010 03:42 PM
Stripping extra line returns jwhayn Sony Reader 3 02-27-2010 06:46 PM


All times are GMT -4. The time now is 06:46 AM.


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