07-16-2013, 02:04 AM | #1 |
Member
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. |
07-16-2013, 02:58 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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. |
Advert | |
|
07-16-2013, 04:46 AM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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.
|
07-16-2013, 05:45 AM | #4 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
You're not pasting into Book View are you?
|
07-16-2013, 06:13 AM | #5 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
|
Thanks!
|
Advert | |
|
07-16-2013, 06:36 AM | #6 | |
Imperfect Perfectionist
Posts: 473
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
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: https://www.mobileread.com/forums/att...1&d=1374007724 and definetely NOT like this: https://www.mobileread.com/forums/att...1&d=1374007724 Regards Kim Last edited by elibrarian; 07-16-2013 at 04:51 PM. Reason: Corrected samples screendumps |
|
07-16-2013, 06:44 AM | #7 |
Color me gone
Posts: 2,089
Karma: 1445295
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> </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 06:46 AM. |
07-16-2013, 07:15 AM | #8 |
Member
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 |
07-16-2013, 08:29 AM | #9 | |
frumious Bandersnatch
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
|
|
07-16-2013, 08:46 AM | #10 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
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. |
|
07-16-2013, 04:53 PM | #11 |
Imperfect Perfectionist
Posts: 473
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
|
07-16-2013, 08:37 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,463
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
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 |
|
07-17-2013, 05:26 AM | #13 |
Member
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! |
07-17-2013, 06:58 AM | #14 |
Color me gone
Posts: 2,089
Karma: 1445295
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. |
07-17-2013, 07:13 AM | #15 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: none
|
Thank you Mr Meikel - problem sol -VED! Yippee!!!
Good bless you from an atheist! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Paragraph Spacing changes from 'word' | Johneltin | General Discussions | 3 | 07-16-2013 06:58 AM |
Paragraph spacing | Banks | ePub | 2 | 08-09-2012 05:24 PM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |
Nook Paragraph Spacing | poppies | ePub | 3 | 04-21-2011 12:01 AM |
Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 12:14 AM |