MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Strange Blanks in words in .epub in Sigil (https://www.mobileread.com/forums/showthread.php?t=61953)

FraPe 11-12-2009 06:39 AM

Strange Blanks in words in .epub in Sigil
 
2 Attachment(s)
Hello,

I am new with creating .epub Documents. I create .epub Documents with
calibre 0.6.20 out from .rtf Documents. This works fine but it needs some
manual corrections.

I tried to do this with sigil but I get strange results. Opening the .epub with
the sony library software seems to be okay but with sigil I get a lot of blanks
into the words of the file. If I save the document then the blanks are included
in the document.

I think the problem is the scaling of the font size - I get the same problem
with calibre if I use the fontscaling there.

Is there a possibility to switch off the scaling of the font size in sigil?
What else can I do?

Enclosed you can find screenshots showing my problem.

Thanks a lot in advance,
Regards, Franz Peter.

pdurrant 11-12-2009 08:04 AM

It sounds to me like there are some odd invisible characters in your source document.

Posting the pre and post-sigl ePubs would allow a diagnosis, by looking at the code.

Or you could look at the code yourself in Sigil.

Quote:

Originally Posted by FraPe (Post 654640)
Hello,

I am new with creating .epub Documents. I create .epub Documents with
calibre 0.6.20 out from .rtf Documents. This works fine but it needs some
manual corrections.

I tried to do this with sigil but I get strange results. Opening the .epub with
the sony library software seems to be okay but with sigil I get a lot of blanks
into the words of the file. If I save the document then the blanks are included
in the document.

I think the problem is the scaling of the font size - I get the same problem
with calibre if I use the fontscaling there.

Is there a possibility to switch off the scaling of the font size in sigil?
What else can I do?

Enclosed you can find screenshots showing my problem.

Thanks a lot in advance,
Regards, Franz Peter.


Valloric 11-12-2009 09:16 AM

Quote:

Originally Posted by FraPe (Post 654640)
Enclosed you can find screenshots showing my problem.

Screenshots are nice for illustrating the problem, but they don't help with debugging it. You need to attach the epub files that are causing this so I can take a look at them.

FraPe 11-12-2009 10:27 AM

Thank you for your response
 
3 Attachment(s)
Hello,

thank you for your answers - enclosed you can find three files:

.) The original .rtf file
.) The .epub file created with calibre
.) The .epub file created with Sigil
(saving the .epub calibre created file without any changes)

The same problem is with all files I tried. I wrote the text (part
of a science fiction ebook) by myself with Word 2003. So I don't
understand why (and how!) invisible characters could be included here.

Thanks,
Regards, Franz Peter.

pdurrant 11-12-2009 11:25 AM

Well, that's interestingly weird.
In the RTF the line

Nur ein Traum.

is not one bit of text, but two - the N separate from the rest of the line, even though the formatting its identical.
Calibre translates this into two spans of the same class

<p class="calibre2"><span class="none2">N</span><span class="none2">ur ein Traum.</span></p>

And I suspect HTML Tidy in Sigil is then adding a space between the two spans, giving

<p class="calibre2"><span class="none2">N</span> <span class="none2">ur ein Traum.</span></p>

Unfortunately, adding a space between spans is significant - it actiually adds a space into the text.
So it does seem to be a Sigil bug.

Would you like to log the bug on the tracking system, or shall I make up a small test document and log it?

Quote:

Originally Posted by FraPe (Post 654766)
Hello,

thank you for your answers - enclosed you can find three files:

.) The original .rtf file
.) The .epub file created with calibre
.) The .epub file created with Sigil
(saving the .epub calibre created file without any changes)

The same problem is with all files I tried. I wrote the text (part
of a science fiction ebook) by myself with Word 2003. So I don't
understand why (and how!) invisible characters could be included here.

Thanks,
Regards, Franz Peter.


Josch91 11-12-2009 01:44 PM

Hi Valloric,

is it possible, that this is the same problem I mentioned here?

pdurrant 11-12-2009 02:32 PM

Yes, it's the same problem - HTML Tidy adding spaces between span elements.

Quote:

Originally Posted by Josch91 (Post 654938)
is it possible, that this is the same problem I mentioned here?


Valloric 11-12-2009 03:50 PM

Quote:

Originally Posted by Josch91 (Post 654938)
Hi Valloric,

is it possible, that this is the same problem I mentioned here?

Yes, it seems I spoke to soon when I said that was a specialized problem. But Tidy bugs... man I'm telling you those will be the death of me.

Tidy is a nightmare to debug.

FraPe 11-16-2009 08:45 AM

Thanks to all!!!
 
Hello again

and thanks to all for the very fast analysis!

Quote:

Would you like to log the bug on the tracking system, or shall I make up a small test document and log it?
@pdurrant: If you can do this for me this would be really great!!!!


Thanks a lot,
Regards,
Franz Peter.

pdurrant 11-16-2009 10:57 AM

It seems that this issue has already been reported, with a sample file.

http://code.google.com/p/sigil/issues/detail?id=139

Quote:

Originally Posted by FraPe (Post 658555)


@pdurrant: If you can do this for me this would be really great!!!!



FraPe 11-16-2009 02:21 PM

Thank you
 
I see.

Regards, Franz Peter.


All times are GMT -4. The time now is 06:43 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.