05-09-2013, 01:46 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
nbsp disappeared
Hi
I installed one week ago the latest Sigil 0.7.2 on LMDE 64 bits (Linux) from a deb made by DiapDealer. I always use the same converter (writer2xhtml) to produce the EPUB from an odt file. This time, using exactly the same settings as usual, I converted my odt file to produce an EPUB. On a first look, everything seemed OK. However, On opening it with Sigil, I realized something was missing: all the non breaking spaces (&-nbsp-; ) that I had placed on my odt file before converting to EPUB had disappeared on the target EPUB. Does somebody know if this new version of Sigil "cleans" intently all these entities? I have turned Pretty print off and it still happens. Still puzzled by what happened. Maybe Sigil has nothing to do with this. Last edited by roger64; 05-09-2013 at 02:07 AM. |
05-09-2013, 03:55 AM | #2 |
Addict
Posts: 314
Karma: 1002965
Join Date: Mar 2006
Location: UK
Device: ILiad. Gen 3, PocketBook 360, Kobo Aura HD, Kindle Oasis 2
|
Recently, I have this problem too but I don't think it is Sigil causing it. I use:
<div class="scenechange"> </div> for extra white space between scene changes but the disappears after putting the epub through calibre leaving <div class="scenechange"></div>. This causes the whitespace in epubs to be smaller than I wanted but they are okay in AZW3 files. If I increase the top and bottom margins in the scenechange class in the CSS file they display better in epubs but too large in AZW3. |
Advert | |
|
05-09-2013, 04:23 AM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Why put an ePUB through Calibre? You are lucky, because a lot of readers will ignore tags with no content and will for sure not display an empty line.
|
05-09-2013, 04:50 AM | #4 | |
Addict
Posts: 314
Karma: 1002965
Join Date: Mar 2006
Location: UK
Device: ILiad. Gen 3, PocketBook 360, Kobo Aura HD, Kindle Oasis 2
|
Quote:
|
|
05-09-2013, 09:43 AM | #5 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
If you are starting a new scene and you want a larger space from the preceding paragraph, give it its own class with a larger top margin... just like a FirstParagraph has its own treatment. Code:
p.newscene { margin-top: 200%; } |
|
Advert | |
|
05-09-2013, 05:13 PM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
It's recommended in French to pepper one's text with loads of non-breaking spaces. A 300 pages novel can have over two thousand of them... That's why I would be happy to know the reason why they all suddenly disappeared somewhere between OpenOffice and the opening of Sigil. I had let survive - my mistake - some few <p> </p>. Even them were stripped and reduced to : <p> </p>. Extermination. There is a serial killer somewhere... Last edited by roger64; 05-09-2013 at 05:16 PM. |
05-09-2013, 06:07 PM | #7 |
A curiosus lector!
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Are you really sure that Sigil is the culprit?
It's could be the new patch_149 for writer2xhtml. What kind of cleaning option is enabled in Sigil (PPT or HT)? Anyway, I use Sigil 0.7.2 since the first day and none of my " " have been ripped out. Last edited by Arios; 05-09-2013 at 08:08 PM. |
05-09-2013, 06:25 PM | #8 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
And are you really sure that the really is gone? I stopped using Sigil because too many of my — were transformed into the utf-8 sign of the mdash (—). They still were m-dashes and displayed as m-dashes on my reader, but the text was impossible to work with because I had to switch to book view to see if a — glyph was an mdash or an ndash. Could it be that Sigil has transformed the into the utf-8 code for the non-breaking space, making it indistinguishable from a real space?
Last edited by Iznogood; 05-09-2013 at 06:27 PM. |
05-10-2013, 01:04 AM | #9 |
A Hairy Wizard
Posts: 3,067
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Really?!?! That seems awfully strange. What purpose do they serve - other than to separate paragraphs? Are they to space out the words?? Sorry, I've never studied French, just German, Arabic, Korean, and some English and am curious.
|
05-10-2013, 01:38 AM | #10 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
This is a good enough French introduction of their use. Happily God invented Regexes... @Iznoggod It should not be a display problem. AFAIK, have never been hidden in Sigil, contrary to other entities like nnbsp. Once inserted again, they stay visible. But it could well be the explanation. My former seem to have been replaced by normal spaces. @Arios This happened - using OpenOffice and unpatched writer2xhtml to EPUB - using LibreOffice and 149_patched writer2xhtml to EPUB which make me suspect it could be a Sigil trick. For Sigil preferences, I keep PrettyPrint but I do not ask Sigil to check when opening and saving. |
|
05-10-2013, 03:23 AM | #11 | |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Things like "We met at 2_PM", "This is Mr._Smith", "That was April_1st", etc. benefit from a non-breaking space in the place of the underscore. It is much better with real typesetting, though, because the whole paragraph can be adjusted in order to avoid the linebreaks at those points, and you don't actually notice that it was done. With current HTML (and ePub) renderer, however, it can often result in very large whitespaces in the line, so it is sometimes preferable to have those odd linebreaks instead. |
|
05-10-2013, 03:34 AM | #12 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
So far I have not witnessed this behaviour at all. I use the sometimes, but it always work and never deleted.
To establish whether it is or isn't Sigil, you can do the following. Before opening the file in Sigil, check with a good HTML editor, Notepad++, or another program to your liking, if the  's are still there before opening in Sigil. |
05-10-2013, 10:43 AM | #13 |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
All my nbsp;'s are still there (even the ones I wished were regular spaces )
|
05-10-2013, 11:21 AM | #14 |
A curiosus lector!
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Roger,
Could you use an older Sigil version (that worked adequately) to see what happen? |
05-13-2013, 01:20 AM | #15 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
I created an EPUB file the usual way (LibreOffice - writer2xhtml). I opened it first with this above mentioned deprecated version of Sigil. The nbsp are here. I opened this file with Sigil 0.7.2(Linux 64 bits). The nbsp are gone. I must add that when the EPUB has been saved, it keeps its nbsp and does not play the same trick again. I will provide this thread with a small test EPUB so you can see if somebody can reproduce this. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of for spacing | Ripplinger | Sigil | 11 | 11-25-2012 04:36 AM |
iBooks does NOT LIKE | Erin | Apple Devices | 0 | 09-13-2011 11:17 AM |
txt to Epub - nbsp nbsp | cybmole | Calibre | 1 | 09-17-2010 09:05 AM |
Specify indent in css, not with   | James_Wilde | Calibre | 7 | 09-13-2010 09:48 PM |
Unwanted $nbsp; | Nathanael | Sigil | 10 | 09-07-2010 03:52 PM |