06-30-2010, 12:02 AM | #91 | |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Quote:
The other problem, the validation, is my first and last problem. The zip routine, at the moment, has problems to zip files in the right order and moreover I don't have any idea about to add the mimetype file to the package without compress it. Until I can't solve this problem the macro will be in the beta stage Can you send to me all the files that cause errors? I send to you my mail in a PM. Thanks for your help MZ |
|
06-30-2010, 03:31 PM | #92 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Yes, all it took to fix the file that crashed was to remove the hyperlinks in the text. Then it ran just fine.
As to zipping the files, here is what I do using Linux zip program from the commandline: cd to the directory created by your macro. issue the following commands... zip -X0 ../ebookname.epub mimetype zip -Xgr ../ebookname.epub META-INF zip -Xgr ../ebookname.epub OEBPS that should do it, creating the file "ebookname.epub" in the directory above the working directory. Note that the -X0 (that is -X zero) is needed for zipping the "mimetype" file correctly. It should be 20 bytes long. Looks like you're doing the file compression with java, so I don't know what the corresponding parameters should be. |
Advert | |
|
07-06-2010, 06:26 AM | #93 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi,
This time I processed three odt files/books. The progress are continuous. The main points are these ones: - One file with no structure failed to display on my Sony PRS-505 because no splitting was initially done, and none automatically performed with the extension. - One file with 45 text chunks was very nicely reordered. - The two TOCs were nicely processed - This time, I did not have images to process From this, my conclusion is: 1. The mysterious "reordering problem" seems to be definitely gone. 2. Splitting is not performed when it could be. So, in these cases, the user needs to either correct its original file or correct the epub file with Sigil. For your information, it was a 283k file, so it would seem that the automatic splitting process should occur lower, maybe as low as 150k to be on the safe side. Meta-data are well processed without use of Sigil if we take care of using your naming convention. (Author - Work) Personal wish. As 6 inches readers have only a small real estate screen space, I really would like to see smaller margins. On the AWP thread, Charleski proposed recently a nice and simple way to deal with margins. So, now looks like the goal will very soon be reached. Congratulations. |
07-06-2010, 07:48 AM | #94 | ||
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Thanks Thanks Thanks
Quote:
Quote:
Now the file (TOC, contents, zip) are all reordered before processing. A note about the images. There are a lot of problems in the last versions. I wish to use a "traverse processing" to avoid to touch in any way the original file. Unfortunately seems that the routines I wish to use doesn't recognises the images "anchored to page" and sometimes the exported image are empty (0 kB). So, if I can't solve this problems, I must come back to an hybrid magagement, that work so well… Luke |
||
07-06-2010, 08:15 PM | #95 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Keep up the great job. |
|
Advert | |
|
07-09-2010, 04:07 PM | #96 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
The odt file to process is "Use of Weapons" from Iain Banks It is 309 k (316 466 octets). I used the extension not calibre. The resulting epub file is 283,5 k and cannot be launched on my PRS-505 because it's not splitted. Sorry I can't post it here. But I maintain what I've seen. I think lowering the trigger level to 100 or 150 k will do no harm anyway and keep us on the safe side. Last edited by roger64; 07-09-2010 at 04:11 PM. |
|
07-10-2010, 05:16 PM | #97 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: airis dbook
|
Hi
First of all, thank you for this great tool to turn ODT to epub. I began to work with 0.30 version, without no problem. Some days ago, i see the new release, so i upgraded the extension. I saw it was a little more quick to do the conversion, but, in my case, the epub was not good. I'm from Spain, so my texts hav accented words. I don't know the reason, but this version, with no other changes in OO nor the PC, changes the accented vocal to a sign ?, also some other marks in the text (like ¡ or ¿). �Alto! -grit� el legado, al tiempo que levantaba el brazo con brusquedad. The correct text should be this: ―¡Alto! ―gritó el legado, al tiempo que levantaba el brazo con brusquedad. I noticed that opening the epub with winrar and triing to see the *.xhtml, Firefox is uncapable to do it. With 0.30 it has no problem doing the same. This is the error: Error de lectura XML: mal formado Ubicación: file:///C:/Users/HTPC/AppData/Local/Temp/7zOD8E7.tmp/content0027.xhtml Número de línea 11, columna 7:<p>Captulo XXII</p> ------^ I didn't try to uninstall and reinstall. If you think it could solve the problem, i'll do. Thanks for the great job. Best regards, Pablo. |
07-11-2010, 05:23 PM | #98 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Y yo soy Italiano… Y también in Italia tenemos las vocales accentadas
The problem is known. You probably are using Windows, and Windows cannot export the UTF8 charachter in the right order. All "special" charachters are two bytes long, but under windows the saving order is inverted. Until 0.3.0, I use a different process for text. Now the process is faster tan before, but I must solve the "endian" problem. I'm studying about this. About the split, I remember that the extension splits the file every "page break" encountered. If you put a page break before each chapter header, you'll obtain a perfectly splitted file. I use this method. After applying the "header" stile to all chapter titles, I modify the Header stile to add a break before the style itself. So I have a perfectly formatted epub. But if Roger prefer to leave the extension splitting automatically, I will add an "auto-split" function in the next release, so the epub will be spliteed every "x" bytes. Please note that doing so, you'll get a page break almost randomly along the text. The better is to insert a manual page break where you want a page break Thanks to all Luke |
07-11-2010, 06:27 PM | #99 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: airis dbook
|
Quote:
I know you're italian You are right, i'm using Seven 64 bits. While you solve the issue, is there any possibility to download again 0.30 version? Speed is not important for me right now. If not, i will wait until it works properly For split I do page break in the beginning of the chapter, and it works fine. Thanks a lot for your effort and your time. |
|
07-12-2010, 12:20 AM | #100 | |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Quote:
change the extension to .oxt Luke |
|
07-12-2010, 11:57 AM | #101 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: airis dbook
|
Thank you very much Luke. I will be waiting for new versions and testing them, while keep 0.30 version safe in case i need it again.
Best wishes, Pablo. |
07-18-2010, 06:57 AM | #102 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Apr 2009
Location: Malaga - Spain
Device: Kindle Touch, iPad, iPhone
|
I've downloaded the 0.3.5 version and I discover than now create TOC
But there is a problem that I resolve with Sigil. When I try to open the ePub file, Adobe Digital Editions crash when I try to open the file, and other readers like Barnes & Noble eReader tell me "File not found", and Lucidor open the ePub but don't show the TOC and the cover. When I open the ePub with Sigil, I don't see the cover. I see this: This is the bad code: <div><img width="51%;" alt="" src="../images/img0001.jpg" /></div> Now I delete the bad cover and insert it with Sigil. This is the code that Sigil insert (works fine): <div class="sgc-5"> <img src="../images/img0002.jpg" /><br /> </div> Sigil detect the TOC! There is not an important problem. Only affect to the cover and don't work with eReaders, but I report this for future fix. I've used a Test Book for this, and I upload it for your inspection (70 KB):
- I'm using OpenOffice 3.2.1 in Mac OS X Snow Leopard. Last edited by kiermel; 07-18-2010 at 07:03 AM. |
07-18-2010, 07:12 AM | #103 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
I know the "missing image" problem. If you try two or three times you can get the images in the epub.
Now I'm working to come back to the "old" image extraction method. The next version will not be available so soon, but I hope to release a final version that correct this and other bugs and will support a lot of new features… Luke |
07-18-2010, 07:23 AM | #104 | |
Enthusiast
Posts: 43
Karma: 10
Join Date: Apr 2009
Location: Malaga - Spain
Device: Kindle Touch, iPad, iPhone
|
Quote:
And, do you know why ADE crash? When I repair with Sigil, ADE show me the ePub correctly. Thanks a lot for your work |
|
07-18-2010, 07:32 AM | #105 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Apr 2009
Location: Malaga - Spain
Device: Kindle Touch, iPad, iPhone
|
Yes, I understand now. I save two times with writer2epub and ADE open the file, but not show the first image as cover. Thanks.
What can I do for writer2epub get the image as cover? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LaTeX and OpenOffice -> EPUB ? (Professional solution) | Randy11 | ePub | 22 | 11-10-2010 11:03 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 10:23 AM |
OpenOffice to Palm eReader export macro | poxi1023 | Other formats | 29 | 02-28-2009 05:49 PM |
OpenOffice PDF Import and Hybrid Export | wallcraft | Workshop | 0 | 06-06-2008 08:15 PM |
OpenBerg FireFox extension for ePub | wallcraft | Reading and Management | 20 | 10-05-2007 11:24 AM |