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 02-05-2017, 09:16 AM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
No,
The problem was a table inside a p tag. It is not allowed in xhtml 1.1 but is sometimes allowed under html under something called by browser developers as "quirks" mode. Sigil's gumbo follows that convention.

So if not provided with a doctype, Sigil's gumbo will enable "quirks" mode during clean on open which passes the table tag inside a p tag through. Sigil then adds the proper Doctype at the end. Unfortunately, when it is then checked for validity after cleaning, the error of the table inside a p is detected and Sigil refuses to accept it even with Mend on Open set.

Making sure there is a doctype as the first line of any html passed to Sigil will prevent this issue as the clean on open will then not be in quirks mode and will properly fix the table in p tag issue.

KevinH
KevinH is offline   Reply With Quote
Old 02-05-2017, 09:20 AM   #32
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Does Word's filtered html output seriously not have a doctype? This can't be the first time someone has tried to import filtered html produced by Word since gumbo became a part of Sigil.
DiapDealer is online now   Reply With Quote
Old 02-05-2017, 09:57 AM   #33
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
Does Word's filtered html output seriously not have a doctype? This can't be the first time someone has tried to import filtered html produced by Word since gumbo became a part of Sigil.
No, it doesn't. It is basic HTML file based on the 4.01 specs I believe. It starts with a basic <html> tag.
Toxaris is offline   Reply With Quote
Old 02-05-2017, 10:07 AM   #34
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
No, it doesn't. It is basic HTML file based on the 4.01 specs I believe. It starts with a basic <html> tag.
Ahh. Ok.

So it's the table inside a p element WITHOUT the doctype that's triggering this particular issue. That makes sense when import/opening with Sigil. Not a lot of tables in your typical fiction.

But it doesn't really make with your addon the OP said he tried about mid-way through the discussion, does it? Your tool has no problem creating a valid epub from Word docs with tables, right? Perhaps they just didn't understand the workflow (or how to use) your addon?
DiapDealer is online now   Reply With Quote
Old 02-05-2017, 12:20 PM   #35
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
Ahh. Ok.

So it's the table inside a p element WITHOUT the doctype that's triggering this particular issue. That makes sense when import/opening with Sigil. Not a lot of tables in your typical fiction.

But it doesn't really make with your addon the OP said he tried about mid-way through the discussion, does it? Your tool has no problem creating a valid epub from Word docs with tables, right? Perhaps they just didn't understand the workflow (or how to use) your addon?
No, it hasn't any issues with tables at all. In fact, unless I am very much mistaken, tables are not inside a <p> tag when you export a table from Word.

You choose whether or not to add a doctype to the files in the ePUB with the plugin. If you don't use a doctype, it will not use named entities.

**UPDATE** I just checked and Word does indeed not place a table in paragraph tags as I suspected. They are on their own and cells can contain paragraphs. So, nothing strange in itself.

Last edited by Toxaris; 02-05-2017 at 12:23 PM.
Toxaris is offline   Reply With Quote
Old 02-05-2017, 11:45 PM   #36
apoiata
Enthusiast
apoiata began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
Quote:
Originally Posted by Toxaris View Post
If this ePUB was generated by my add-in I would love to have both the ePUB and the Word document to figure out what goes wrong here.
Where I can upload it?
I prefer to do it in private.
apoiata is offline   Reply With Quote
Old 02-06-2017, 02:21 AM   #37
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by apoiata View Post
Where I can upload it?
I prefer to do it in private.
I sent you a message with my email address.
Toxaris is offline   Reply With Quote
Old 02-13-2017, 02:08 PM   #38
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
An update for who wants to know. I have not fully tested it, but apparently in some cases when you save a Word document as filtered HTML it can happen that it stores images inside a table inside a paragraph mark. One of those cases appears to be when there are captions attached to the image. Really strange indeed!
Toxaris is offline   Reply With Quote
Old 02-13-2017, 02:12 PM   #39
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks for the followup, Tox.
DiapDealer is online now   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
Sigil unable to open a file Andjety Sigil 39 03-20-2017 11:08 PM
Unable to open file Toreth Sigil 25 03-16-2015 06:36 PM
unable to open database file mihal.v Calibre 3 08-16-2014 09:44 AM
Unable to open database file JulieR Calibre 2 04-24-2009 04:40 AM
Unable to open file that is 8MB timyap Sony Reader 12 05-09-2008 09:51 AM


All times are GMT -4. The time now is 06:40 AM.


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