![]() |
#16 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,597
Karma: 5703586
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.
|
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#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.
|
![]() |
![]() |
![]() |
#19 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
![]() |
![]() |
![]() |
#20 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#22 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,597
Karma: 5703586
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! |
![]() |
![]() |
![]() |
#23 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Feb 2017
Device: none
|
|
![]() |
![]() |
![]() |
#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"" |
|
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,597
Karma: 5703586
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 |
![]() |
![]() |
![]() |
#26 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 852
Karma: 314486
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. |
|
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,505
Karma: 204127028
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.
|
![]() |
![]() |
![]() |
#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.
|
![]() |
![]() |
![]() |
#29 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 852
Karma: 314486
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 |
![]() |
![]() |
![]() |
#30 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
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 | 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 |