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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2013, 03:04 AM   #1
Johneltin
Member
Johneltin began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
Paragraph Spacing changes from 'word'

After pasting my work to Sigil I spend hours having to delete the extra space between EVERY paragraph.

The original paragraphs in 'word 2007' only had a single space. My naughty Sigil adds the extra space.

Any advice appreciated - and no HTML please! thanks.
Johneltin is offline   Reply With Quote
Old 07-16-2013, 03:58 AM   #2
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: 3,101
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I am a bit lost here. What is the problem? In code view there will always be a space between paragraphs, but that is not an issue. That is purely cosmetic and will not show.
If you have it in the bookview, than you need to change your stylesheet. If you come from Word, I think it is likely you use the HTML export function of Word (filtered or not). That is not a good source... That code is awful and can cause a lot of issues.

Sigil does not add spaces out of thin air.

If you want to fix these kind of things in Sigil, you need to have at least the basic grasp of HTML and CSS. If you don't want to, look for something else than Sigil. You will not have the same level of flexibility though.
Toxaris is offline   Reply With Quote
 
Advertisement
Old 07-16-2013, 05:46 AM   #3
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: 3,101
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You could try my Word add in. It will generate an ePUB with a standard stylesheet. It should give you a better base to start from.
Toxaris is offline   Reply With Quote
Old 07-16-2013, 06:45 AM   #4
exaltedwombat
Evangelist
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 456
Karma: 1703930
Join Date: Nov 2011
Device: none
You're not pasting into Book View are you?
exaltedwombat is offline   Reply With Quote
Old 07-16-2013, 07:13 AM   #5
Johneltin
Member
Johneltin began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
Thanks!

Quote:
Originally Posted by exaltedwombat View Post
You're not pasting into Book View are you?
Yes - exactly - I am highlighting in 'Word' - copy - paste into Sigil. It all works fine except for the extra line space.
Johneltin is offline   Reply With Quote
Old 07-16-2013, 07:36 AM   #6
elibrarian
Connoisseur
elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.
 
elibrarian's Avatar
 
Posts: 99
Karma: 59964
Join Date: Dec 2011
Location: ělstykke, Denmark
Device: Sony PRS-T1, iPad
Quote:
Originally Posted by Johneltin View Post
Yes - exactly - I am highlighting in 'Word' - copy - paste into Sigil. It all works fine except for the extra line space.
Are you making spaces between paragraphs in Word using an extra paragraph instead of setting the paragraph spacing in the style?

If so, the extra paragraph will (of course) show up in the copied text in Sigil.

In Word (with the "Show/Hide formatting marks" set to "Show") the Word source should look like this:
http://www.mobileread.com/forums/att...1&d=1374007724

and definetely NOT like this:
http://www.mobileread.com/forums/att...1&d=1374007724

Regards

Kim
Attached Thumbnails
Click image for larger version

Name:	wrong-word.jpg
Views:	54
Size:	49.3 KB
ID:	108303   Click image for larger version

Name:	right-word.jpg
Views:	54
Size:	49.7 KB
ID:	108304  

Last edited by elibrarian; 07-16-2013 at 05:51 PM. Reason: Corrected samples screendumps
elibrarian is offline   Reply With Quote
Old 07-16-2013, 07:44 AM   #7
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Switch over to code view and look at how paragraphs begin (and end.) Switch back to book view and do what you are doing to get rid of the extra space on one paragraph. Switch back to code view and see how your paragraph differs from all the others.

Then you can do a search and replace in code view to get rid of the extra element, probably a <p> &nbsp;</p>. Just replace the extra element with nothing, making sure to save a copy of your document beforehand in case your bright idea goes astray.

Copying into book view will nearly always introduce extra spaces and line breaks. The issue is whether is annoying enough to use a macro like Toxaris' to clean it up or whether it is easier to just search and replace.

If you are copying a pdf, doing this can be very useful, as it often will work when other methods won't, at the expense of some clean up.

Last edited by mrmikel; 07-16-2013 at 07:46 AM.
mrmikel is offline   Reply With Quote
Old 07-16-2013, 08:15 AM   #8
Johneltin
Member
Johneltin began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
I copy from my 'word' doc that has only ONE space and paste the chapters into Sigil - a blank html file in 'book view' - and get TWO spaces between paragraphs.

Thanks again - I will try your suggestions tomorrow - bedtime in South Australia. J
Johneltin is offline   Reply With Quote
Old 07-16-2013, 09:29 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,259
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by elibrarian View Post
In Word (with the "Show/Hide formatting marks" set to "Show") the Word source should look like this:
http://www.mobileread.com/forums/att...1&d=1373975430

and definetely NOT like this:
http://www.mobileread.com/forums/att...1&d=1373975430
I think you have those samples the other way around.
Jellby is offline   Reply With Quote
Old 07-16-2013, 09:46 AM   #10
exaltedwombat
Evangelist
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 456
Karma: 1703930
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by Johneltin View Post
I copy from my 'word' doc that has only ONE space and paste the chapters into Sigil - a blank html file in 'book view' - and get TWO spaces between paragraphs.
You should check in Code View that you aren't getting doubled-up </p><p> tags.
Also edit your stylesheet in Sigil so that a .p tag does what you want it to in terms of text-indent, margin-top etc.
exaltedwombat is offline   Reply With Quote
Old 07-16-2013, 05:53 PM   #11
elibrarian
Connoisseur
elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.elibrarian never is beset by a damp, drizzly November in his or her soul.
 
elibrarian's Avatar
 
Posts: 99
Karma: 59964
Join Date: Dec 2011
Location: ělstykke, Denmark
Device: Sony PRS-T1, iPad
Quote:
Originally Posted by Jellby View Post
I think you have those samples the other way around.
Oh c... - I think you're right - that they're wrong

I've corrected the blunder ...

Regards,

Kim
elibrarian is offline   Reply With Quote
Old 07-16-2013, 09:37 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,592
Karma: 14407089
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Johneltin View Post
I copy from my 'word' doc that has only ONE space and paste the chapters into Sigil - a blank html file in 'book view' - and get TWO spaces between paragraphs.

Thanks again - I will try your suggestions tomorrow - bedtime in South Australia. J
When you say you get "two spaces," do you mean two paragraphs? An "empty paragraph" that leads to a blank line, or do you mean that in BookView, you see an empty blank line between paragraphs?

You can try pasting directly from Word to BookView in Sigil, but it doesn't work that fabulously. What you will get are opening and closing Office namespace tags that look like this: <o> </o> in every single paragraph. If you used styles to create any italics, bold, etc., you'll also get spans inside the paragraphs. To manage all this, you'll need to work with CSS to get the look and feel you really want.

For example, if you only mean that in BookView you see a blank line, where you think one should not be, it likely means that Sigil is using the default paragraph styling, which gives the impression of a blank line between paragraphs, but is not really there. If you have the paragraph styles named, you can easily find the styling in the stylesheet and fix (either the top or bottom) margin for the paragraph, so that you no longer have that illusion. Do you understand what I mean?

Hitch
Hitch is offline   Reply With Quote
Old 07-17-2013, 06:26 AM   #13
Johneltin
Member
Johneltin began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
Wasted a whole day and still can't solve the extra space between paragraphs problem. Thanks for the advise on the HTML codes but the bit I deleted only changed that ONE paragraph - I want to find the magic button that will do all my 30 files and HUNDREDS of paragraphs. There is not even a mention of the word 'paragraph' in the Sigil format options.

The problem is not in my word file - when I deleted the SINGLE space between two paragraphs and pasted into Sigil book view I got my one desired space automatically. However, I want to keep my single spaces in 'word' and I'm buggered if I can work it out. IT SHOULD BE SIMPLE!!

I do not have time to learn all about HTML so any other advice would be appreciated please.

I think some people are misunderstanding my question anyway so here it is again: I copy my file from word, it has just one space - one blank line between paragraphs (with or without formatting) and when I paste into Sigil book view, Sigil ADDS an extra space. Then I have to go through the whole document and spend HOURS deleting the extra lines. HELP! I'm goin' blind from it!
Johneltin is offline   Reply With Quote
Old 07-17-2013, 07:58 AM   #14
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
That is why you use search and replace. Find the bad part, put in the find search area and in the replace part put nothing, then replace all, making sure it is set for all HTML files.

It should look something like this in code view:


....last few words of paragraph.</p>
<p>This is the start of a new paragraph. And it continues on.....

Anything else will add the extra line and should be deleted using search and replace.
mrmikel is offline   Reply With Quote
Old 07-17-2013, 08:13 AM   #15
Johneltin
Member
Johneltin began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
Thank you Mr Meikel - problem sol -VED! Yippee!!!
Good bless you from an atheist!
Johneltin 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
Paragraph Spacing changes from 'word' Johneltin General Discussions 3 07-16-2013 07:58 AM
Paragraph spacing Banks ePub 2 08-09-2012 06:24 PM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 01:43 AM
Nook Paragraph Spacing poppies ePub 3 04-21-2011 01:01 AM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 01:14 AM


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


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