02-04-2017, 01:00 PM | #16 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
In short, Mend on Open is being done but it does not fix enough without a valid DOCTYPE at the top before fixing.
|
02-04-2017, 01:17 PM | #17 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
I have a lot of pictures inside and original Word document is 5 MB.
|
Advert | |
|
02-04-2017, 01:21 PM | #18 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
No, I saved docx file as Filtered HTML and select all suggested settings. It didn't work.
|
02-04-2017, 01:23 PM | #19 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
02-04-2017, 01:30 PM | #20 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
Advert | |
|
02-04-2017, 01:33 PM | #21 |
Grand Sorcerer
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
02-04-2017, 01:34 PM | #22 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
Hi All,
I have just pushed a bit of a "hackish" fix for this to master. I will rework this to something better when I get a chance. @apoiata For Now, you can fix all of this by adding the following line to the very top of the huge html file using any text editor before importing into Sigil. Code:
<!DOCTYPE html> And please let us know if that does the trick or not! |
02-04-2017, 01:58 PM | #23 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
02-04-2017, 02:17 PM | #24 | |
Enthusiast
Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
Quote:
"!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"" |
|
02-04-2017, 02:45 PM | #25 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
That's great. The DOCTYPE was changed to reflect this was an epub2 epub and not an epub3. It would have stayed the same if Sigil was set to create epub3s.
Glad to hear it is now working. A good fix will appear in the next release of Sigil. In the meanwhile, if you run into other problems with adding html files, just check them to see if a doctype is present and if not add one. Sigil is smart enough to correct them based on epub version. KevinH |
02-04-2017, 03:15 PM | #26 | |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
You are welcome.
Quote:
Shortened to <!DOCTYPE html> as suggested by KevinH the file will be processed. But it is up to me that I'm still using 0.9.1, and your are right, this doesn't happen in the most recent build (which I should have checked). So never mind. |
|
02-04-2017, 04:04 PM | #27 |
Grand Sorcerer
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No problem. The examples helped a lot. I just wanted be sure that I was interpreting your results correctly.
|
02-05-2017, 04:52 AM | #28 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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. This is very strange. Tables are not an issue for the conversion at all.
|
02-05-2017, 05:31 AM | #29 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Maybe apoiata is taking about:
PI Index #7 DOCXImport Import DOCX document into Sigil as epubs. https://www.mobileread.com/forums/sh...d.php?t=273966 |
02-05-2017, 07:48 AM | #30 |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Tox, he tried the Diap's Mammoth wrapper, but I don't think he had Mend on Open set, which caused problems. The table related problem may be to do with images in tables, see third image in post #13, it's a skinny one liner, so it's hard to see it's even there.
But I think he may have gone back to the filtered HTML. BR |
Thread Tools | Search this Thread |
|
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 |