05-24-2011, 03:35 PM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Device: ematic eglide
|
Sigil adds spaces between HTML tags, creating strange characters
I love Sigil, but it regularly adds spaces between certain HTML tags. The result in many ereaders is either a question mark or some other strange character. This inevitably adds extra effort in proofing the result, since I have to go page by page through every document to catch these.
A similar problem happens when a space appears at the end of text just before a closing tag. Last edited by chezjim; 05-24-2011 at 03:41 PM. |
05-24-2011, 06:12 PM | #2 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
I don't think I've observed this. Can you post an example?
|
Advert | |
|
05-25-2011, 02:55 AM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
In my experience the question marks are the result of using codes which are not supported by either the reader or epub. I have not yet observed that Sigil adds spaces which results in invalid code.
|
05-25-2011, 06:08 AM | #4 |
Zealot
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
If it adds spaces, they would show up as spaces. A questionmark is an indicator of bad codepage implementation.
|
05-27-2011, 12:45 AM | #5 | |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Device: ematic eglide
|
Quote:
This is a very random problem. It can be as simple as a space between a close <font> tag and the next one opening after it: </font> <font>. But it is also random in the sense that it will suddenly appear after unrelated fixes to the overall file. Which makes me think it has to do with whatever Sigil does to "neaten up" code. If it were a codepage implementation, wouldn't it be uniform from the first time you open the HTML file? Or am I misunderstanding the concept? |
|
Advert | |
|
05-27-2011, 02:33 AM | #6 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You need to give better examples. The example you give would result into nothing but a blank space. However, the example is silly, since you can better remove the tags and just enter a space though...
|
05-27-2011, 11:34 AM | #7 | |
Well trained by Cats
Posts: 30,419
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
<font> ... </font> are deprecated. I don't see these tags commonly used in EPUB. (you may have found a soft spot in Tidy for an obsolete coed usage) these should probably be replaces with a <span class=... and appropriate stylesheet entry |
|
06-03-2011, 01:14 AM | #8 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Device: ematic eglide
|
Well, in fact, the only character that prompts this particular glitch is a space. And only a space in a particular set of tags.
Don't know about <font> being depreciated - typically I bring in an HTML file and convert it, so there's a certain number of artifacts I end up having to straighten out. |
06-03-2011, 03:15 PM | #9 |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Well, I admit it, now I'm completely confused. I thought that the problem was that Sigil was adding a space between certain (possibly deprecated) html tags...now you're saying that a space is adding a space?
Am I the only one who doesn't understand what the question is, here, much less the answer? Hitch |
06-10-2011, 12:44 AM | #10 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Device: ematic eglide
|
Maybe I misunderstood this:
"was the missing in font, wrong character used 'uniformly' throughout the document?" The only character that prompts this problem is a space, and then only a space used in particular circumstances, among them (but not necessarily uniquely) the font tag pair. But what appears in the ereader is not a space - rather it appears as a question mark or (depending on the ereader) whatever character is used to indicate a character that is not understood by the ereader. So yes, it is a space prompting this problem, but what one sees in the end result is not a space. And not all spaces create this problem. If it sounds quirky, it because it is. |
06-10-2011, 04:00 AM | #11 | |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Quote:
Is this the problem you are having? So, is it consistantly happening to any particular tags? and if so, what tags? Also, are there any tags that you don't see this problem with? Could you by any chance attach an epub here that has this problem? (If its copyrighted, just sanitise the content) This would help us to understand this issue. Last edited by ghostyjack; 06-10-2011 at 08:11 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extra spaces in Sigil | noteon | Sigil | 2 | 04-08-2011 02:42 PM |
Strange Characters â??s | mufc | Recipes | 2 | 12-24-2010 06:25 PM |
FBReader adds extra spaces for EPUB Book | pakiyabhai | PocketBook | 11 | 05-27-2010 05:58 PM |
strange characters | jomaweb | Calibre | 0 | 01-27-2010 06:10 AM |
Reader adds space after unicode characters... | bmfrosty | Astak EZReader | 2 | 07-16-2009 08:53 PM |