Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2014, 09:17 AM   #1
Jozroz
Junior Member
Jozroz began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: TrekStor Liro Color
Post Spacing Issue

This issue has probably been posted countless times, however I would like to address another connecting issue. The basic problem is that every single paragraph is followed by a space. The solution to this is to convert the ebook with the "remove spacing" option checked. However, this also removes intentional spacing where there's a break in a scene. Is there any way to remove the unneccesary gaps and keep the original ones or will it be impossible to differentiate the two?
Jozroz is offline   Reply With Quote
Old 10-05-2014, 11:01 AM   #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: 29,779
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 Jozroz View Post
This issue has probably been posted countless times, however I would like to address another connecting issue. The basic problem is that every single paragraph is followed by a space. The solution to this is to convert the ebook with the "remove spacing" option checked. However, this also removes intentional spacing where there's a break in a scene. Is there any way to remove the unneccesary gaps and keep the original ones or will it be impossible to differentiate the two?
Show me some code (just a few paragraphs to avoid copyright issues) include the CSS sections that apply to the code

There are 60 bazillion ways a top/bottom MARGIN appearance can be created.
(OK, I exaggerate a bit )
Sometime Solutions just need to be done with an editor session.

IMHO margins are/should-be set in the style sheet. Scenebreakers should have their own style so the can be fine tuned (and found) later.
theducks is offline   Reply With Quote
Advert
Old 10-05-2014, 12:09 PM   #3
Jozroz
Junior Member
Jozroz began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: TrekStor Liro Color
Quote:
Originally Posted by theducks View Post
Show me some code (just a few paragraphs to avoid copyright issues) include the CSS sections that apply to the code
How should I extract this?
Jozroz is offline   Reply With Quote
Old 10-05-2014, 12:51 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: 29,779
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 Jozroz View Post
How should I extract this?
Use the Calibre Editor (T key). Use the Preview pane to locte the problem area. Click once on the problem line, now switch it the code editor, the code line# should be yellow near the problem. Normal Copy and paste into a [code] tag pair here , do the same for the CSS selectors

But your question points to a bigger issue: Your coding skills.
You need to learn the basics of HTML and CSS to do anything to clean/recode a mess.

It can be really simple or it can go the whole Zen Garden route.
Three Men in a Boat (here at MR) is another example of what can be done to make beautiful books.
theducks is offline   Reply With Quote
Old 10-05-2014, 01:22 PM   #5
Jozroz
Junior Member
Jozroz began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: TrekStor Liro Color
Quote:
Originally Posted by theducks View Post
Use the Calibre Editor (T key). Use the Preview pane to locte the problem area. Click once on the problem line, now switch it the code editor, the code line# should be yellow near the problem. Normal Copy and paste into a [code] tag pair here , do the same for the CSS selectors

But your question points to a bigger issue: Your coding skills.
You need to learn the basics of HTML and CSS to do anything to clean/recode a mess.

It can be really simple or it can go the whole Zen Garden route.
Three Men in a Boat (here at MR) is another example of what can be done to make beautiful books.

<p class="calibre1">Montag grinned the fierce grin of all men singed and driven back by flame.</p>

<p class="calibre1"> [...]It never went away, that smile, it never ever went away, as long as he remembered.</p>

<p class="calibre1"><br /></p>

<p class="calibre1">He hung up his black-beetle-coloured [...] </p>


"[...]" here denotes text I ommited to clarify the details I posted.
The paragraph after the description of the smile should not have a gap first.
"He hung up his [...]" should follow a gap.
Jozroz is offline   Reply With Quote
Advert
Old 10-05-2014, 03:07 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: 29,779
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 Jozroz View Post

<p class="calibre1">Montag grinned the fierce grin of all men singed and driven back by flame.</p>

<p class="calibre1"> [...]It never went away, that smile, it never ever went away, as long as he remembered.</p>

<p class="calibre1"><br /></p>

<p class="calibre1">He hung up his black-beetle-coloured [...] </p>


"[...]" here denotes text I ommited to clarify the details I posted.
The paragraph after the description of the smile should not have a gap first.
"He hung up his [...]" should follow a gap.
1) replace this:
Code:
<p class="calibre1"><br /></p>
with
Code:
<p class="scenebreak">&nbsp;</p>
this appears to be you scene break. This will separate it from the normal paragraph style (you will need to add a style .scenebreak section to your CSS.

once that has been done:
find the .calibre1 { section.: change margin-top and/or margin-bottom value to 0 (a zero). If you see the short form, margin: the values are set: Top Right Bottom Left: 0 0 0 0;

see how easy fixing a CSS is
theducks is offline   Reply With Quote
Old 10-05-2014, 03:47 PM   #7
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,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Jozroz View Post
This issue has probably been posted countless times, however I would like to address another connecting issue. The basic problem is that every single paragraph is followed by a space. The solution to this is to convert the ebook with the "remove spacing" option checked. However, this also removes intentional spacing where there's a break in a scene. Is there any way to remove the unneccesary gaps and keep the original ones or will it be impossible to differentiate the two?
@Jozroz - have you tried the options in Conversion->Heuristics. They may take care of the issue with a couple of mouse clicks. See ==>> Ebook Conversion — Heuristic Processing

Quote:
Delete blank lines between paragraphs

This option will cause calibre to analyze blank lines included within the document. If every paragraph is interleaved with a blank line, then calibre will remove all those blank paragraphs. Sequences of multiple blank lines will be considered scene breaks and retained as a single paragraph. This option differs from the ‘Remove Paragraph Spacing’ option under ‘Look and Feel’ in that it actually modifies the HTML content, while the other option modifies the document styles. This option can also remove paragraphs which were inserted using calibre‘s ‘Insert blank line’ option.

Ensure scene breaks are consistently formatted

With this option calibre will attempt to detect common scene-break markers and ensure that they are center aligned. ‘Soft’ scene break markers, i.e. scene breaks only defined by extra white space, are styled to ensure that they will not be displayed in conjunction with page breaks.

Replace scene breaks

If this option is configured then calibre will replace scene break markers it finds with the replacement text specified by the user. Please note that some ornamental characters may not be supported across all reading devices.

In general you should avoid using html tags, calibre will discard any tags and use pre-defined markup. <hr /> tags, i.e. horizontal rules, and <img> tags are exceptions. Horizontal rules can optionally be specified with styles, if you choose to add your own style be sure to include the ‘width’ setting, otherwise the style information will be discarded. Image tags can used, but calibre does not provide the ability to add the image during conversion, this must be done after the fact using the ‘Edit Book’ feature.

Example image tag (place the image within an ‘Images’ folder inside the epub after conversion):
Code:
<img style=”width:10%” src=”../Images/scenebreak.png” />
Example horizontal rule with styles:
Code:
<hr style=”width:20%;padding-top: 1px;border-top: 2px ridge black;border-bottom: 2px groove black;”/>
BR
BetterRed is online now   Reply With Quote
Reply

Tags
edit, editing, spaces, spacing


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph Spacing/Page Break Issue Flux84 Conversion 0 04-02-2014 08:17 AM
Weird line spacing issue PDF>MOBI>KFire gravatrax Conversion 1 03-04-2013 11:13 PM
Nook Simple Touch Glowlight - technological issue or quality-control issue? Dr. Drib Barnes & Noble NOOK 1 12-04-2012 01:32 PM
Epub to Mobi spacing issue jennefere Conversion 4 02-23-2012 11:38 AM
Line Spacing Issue after Conversion anleva Calibre 3 11-07-2011 12:32 AM


All times are GMT -4. The time now is 04:09 AM.


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