12-03-2010, 01:00 PM | #1 |
idiot
Posts: 91
Karma: 16
Join Date: Nov 2008
Location: Grand Cayman
Device: Sony 505, 300, and 650
|
Removing spacing between paragraphs, not between sections
Let me see if I can explain what I'm trying to accomplish...
When converting ePub to ePub for my custom font CSS, I select the option to "remove spacing between paragraphs", as I like the way I can now see more words per page turn (and the look in general). Oftentimes, books have sections within chapters which are generally separated by more than a single blank line, e.g., when the story jumps from one time-frame to another. When selecting "remove spacing between paragraphs", the double/triple spaces are removed too. I can usually re-orient myself by the context of the story, but it would be easier if that "section" had a blank line separating it from the previous section. (There is probably a proper name for "section", so please excuse my ignorance) Is there a way to set Calibre to retain the spacing between sections, and still remove the default spacing between paragraphs? I am semi-familiar with Sigil, but I'm grasping for automatic! It's asking a lot I know, but I've gotten pretty spoiled by this wonderful program. |
12-03-2010, 04:45 PM | #2 | |||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Quote:
Since you are familiar with Sigil you can identify the section breaks and replace those breaks with a string like Quote:
|
|||
Advert | |
|
12-03-2010, 08:40 PM | #3 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
All the options under look and feel only manipulate css, they don't actually change html.
If the section break is actually a blank paragraph then the 'remove spacing between paragraphs' option will not delete the blank paragraph. All that option does is manipulate the CSS, it doesn't actually delete blank lines. On the other hand if it's just a div then you could lose the softbreak, but there will still be a div there, so you could easily find it in Sigil and fix its css. Now if you're also enabling preprocessing under structure detection then the behavior is different. Preprocessing does change the html. One thing it looks for is if there is an empty paragraph between every full paragraph. If there is, and the user has enabled 'remove paragraph spacing' under look and feel, then it will delete all the blank lines - otherwise the remove paragraph spacing option wouldn't actually work. I haven't looked into solving the softbreak problem here - though now that I think about it it's probably doable. However without knowing what options you've enabled and the way softbreaks are implemented in your doc I don't know whether any of that applies. |
12-03-2010, 10:29 PM | #4 |
idiot
Posts: 91
Karma: 16
Join Date: Nov 2008
Location: Grand Cayman
Device: Sony 505, 300, and 650
|
I don't think you know how much that helped. I was thinking backwards. I was wondering how to identify the section breaks after "processing" with Calibre. Following your advice, I first did the conversion from ePub to ePub without the "remove spacing between paragraphs" selected and opened that file in Sigil. It was easy to manually scan the text for breaks, insert ***** and center it, then save the file. I then did a second Epub to Epub conversion in Calibre with the "remove spacing between paragraphs" selected and the final product is perfect! I learned a little about Sigil to boot. Keyboard shortcuts make formatting much quicker. Good formatting makes a book read easier and even more enjoyable to me. Thanks again!
|
12-03-2010, 10:41 PM | #5 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
removing spacing between paragraphs WITHOUT touching indent? | ferossan | Calibre | 2 | 12-24-2009 02:12 PM |
Remove spacing between paragraphs - what about div tags ? | NASCARaddicted | Calibre | 5 | 11-07-2009 05:47 AM |
Removing blank lines between paragraphs? | corroonb | Workshop | 3 | 08-13-2009 04:23 PM |
Removing Returns, Preserving Paragraphs | Gideon | Workshop | 41 | 06-19-2009 05:07 AM |
Remove spacing between paragraphs doesn't. | Djehuty | Calibre | 6 | 04-28-2009 04:53 AM |