04-10-2010, 03:06 AM | #46 |
Reading...Since 1970
Posts: 610
Karma: 7819
Join Date: Jan 2010
Device: Nova Air C, Nova Pro, LifebookMars, BoyueT62+ Glowlight, NST, PB360
|
I use this quite often. Doesn't seem to be much development lately though. Which is to bad.
|
04-10-2010, 03:35 AM | #47 | |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
New version 0.1.11
Quote:
look at http://luke.simplicissimus.it/writer2epub and you will find a new version 0.1.11 News: - Working image export - new code for future styles export - new code for TOC generation (not yet working). The ePub generated is readable by most readers and softwares, but is not yet validated. To validate it (and to create the TOC and metadata) just open the epub with Sigil, and save it without modifications. Instead, the xsl version has temporarely stopped (0.2.x) and is removed from download. Any help about developement is appreciated! Luke |
|
Advert | |
|
04-10-2010, 11:44 AM | #48 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I tried the 0.1.11 and I have seen great progress.
I could nicely process text files. The extension requires the .odt suffix to be present if not it refuses to work. It's pretty quick and precise for the text. You present an external stylesheet which is quite clean (uncluttered) and easy to modify which is quite useful. It's still incomplete though (some styles are missing). As you said I've got no results for images. Your proposal to complement it with Sigil for the time being makes a lot of sense. Sigil is excellent for inserting images, building TOC and filling up some meta-data, so... Congratulations for your progresses. I think that, due to the existence of Sigil, the priority should be to focus on the missing "text-related" features, like footnotes, links and identification of some special styles like quotations, poetry, horizontal lines,.. I forgot to say that the automatic splitting and the creation of an external style sheet provided by your extension saves later a lot of time because these features do not exist yet in Sigil and have otherwise to be processed "manually". As far as styles are concerned, I think a reasonable middle ground would be to provide first full support for what OpenOffice.org calls "html styles". To go further, the user must be warned that he has to exercise some discipline and restraint before committing himself to produce an EPUB. Very often the multiplication of "automatic styles" comes from a user's bad practice (like using "select all" to modify text attributes) instead of strictly committing himself to the use of Stylist. Very nice work. Last edited by roger64; 04-10-2010 at 09:24 PM. Reason: complementary information |
04-10-2010, 03:23 PM | #49 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Thanks, Roger, for your testing.
There are a lot of work to do in this extension, the next step will be (probably): - TOC creation - Metadata editor (in advanced stage) - Full styles support - Full image and objects (tables?) support In a couple of week I will release a new version Luke |
04-13-2010, 05:53 PM | #50 |
Wizard
Posts: 1,454
Karma: 37243
Join Date: Dec 2009
Location: Europe
Device: pocketbook 360, kindle 4
|
eBookLuke, thank you for myTXTcleaner, it just saved me a lot of trouble! A very useful little tool.
From your description, myTXTcleaner "removes all of the paragraph marks following lowercase letters, commas and semicolons". I think it might be a good idea to add numbers to this list. I just used it on a text with a lot of times and sums, and paragraph marks following numbers were not deleted. Other than in mathematical texts, I don't think there are a lot of instances where a paragraph can end in a number. Thank you for your work! |
Advert | |
|
04-19-2010, 04:05 PM | #51 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Apr 2009
Location: Malaga - Spain
Device: Kindle Touch, iPad, iPhone
|
Wow! Thank you very much Luke
When the TOC works, will be almost perfect for me |
04-19-2010, 05:23 PM | #52 | |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Quote:
Chapter 2 Chapter 3 … this is because I choose do not include the numbers in the list. I can make even a selection in the start dialog to choose or not to remove paragraph marks after the number, can be useful? Luke |
|
04-19-2010, 07:44 PM | #53 | |
Wizard
Posts: 1,454
Karma: 37243
Join Date: Dec 2009
Location: Europe
Device: pocketbook 360, kindle 4
|
Quote:
But yes, a selection might be useful, if you could do it. Even with chapter headings ending with numbers, it might be easier to do a search and replace afterwards to replace the erased paragraph marks, than to search through the whole text for all the other paragraph marks that remained. |
|
04-20-2010, 01:32 AM | #54 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
tonight I think about a different approach:
a paragraph mark must be removed if: the fisrt charachter of the NEXT line is lowercase THEN the last charachter of the PREVIOUS line in lowercase, comma, semicolon, colon doing so I can remove: in the last 5 years… but not: Chapter 5 Was a stormy night… What do you think about? Luke |
04-20-2010, 01:45 AM | #55 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
There is a limitation in this extention.
MyTXTcleaner works only with pure text documents! If you open a document with images, frames, tables or other object, the macro can stop, as you noted. I don't have enought time to find a solution to avoid this, but I will study the problem when possible. But, because the main scope of this extension is to clean .txt files or text copied from a .pdf, this problem is not so important, because in these cases there is only text. Luke |
04-20-2010, 07:08 AM | #56 | |
Wizard
Posts: 1,454
Karma: 37243
Join Date: Dec 2009
Location: Europe
Device: pocketbook 360, kindle 4
|
Quote:
It would maybe cause problems for things like poetry and other special cases, but these need special treatment anyway. |
|
04-20-2010, 03:15 PM | #57 | |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
Quote:
Maybe I can set a minimum paragraph lenght, to prevent poetry shrinking. Other suggestion or potential problems? Luke |
|
04-25-2010, 02:07 PM | #58 |
Writer2ePub creator
Posts: 354
Karma: 121129
Join Date: Sep 2009
Location: Genova, Italy
Device: Cybook Bebook iLiad Kindle HanlinV2 Readius SonyPRS500 SonyPRS700 etc
|
New version 0.1.12
Hi all,
a new version of writer2epub is available on my blog Luke's Macros This version can handle the footnotes. Luke Last edited by eBookLuke; 04-25-2010 at 02:11 PM. |
04-25-2010, 05:22 PM | #59 |
Member
Posts: 17
Karma: 22
Join Date: Apr 2010
Location: New York, NY
Device: nook
|
Hi, I came across your macro the same time I did Atlantis 'save to epub'. As an OOo user I would love to see this wysiwyg feature fully developed for the writer. I was wondering if the developers of Open Office are being of any assistance to you, and if there is anything that can be done to get them on board.
|
04-26-2010, 02:25 AM | #60 | |
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 right way to esport (and maybe import) an epub, is a xsl filter. I can't write this kind of filter, I'm not a programmer, and my extension is based on other people's code. My goal is not to make a 100% wisiwig converter, but a a tool to create a good epub even from a not-so-clean text. So, I use a pre-write CSS, instead to build the CSS based on the real styles present along the text. Why I chose this way? Based on my experience, most of the text to convert are very dirty, full of styles similar each other, but meaningless. Even the scanned text suffers of this dirtyness. Converting a such text, generate a dirty ePub, difficult to read and to correct, and in worst cases the CSS dimension is 2 to 10 times bigger than the text itself! To convert a file to ePub, Calibre makes a wonderful works. To edit an ePub, there is Sigil that promises to be a big tool. But for the rest of us, everyone wants to create a well readeble ePub with minimum effort, I write my extension… Thanks for your support Luke |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LaTeX and OpenOffice -> EPUB ? (Professional solution) | Randy11 | ePub | 22 | 11-11-2010 12:03 AM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 11:23 AM |
OpenOffice to Palm eReader export macro | poxi1023 | Other formats | 29 | 02-28-2009 06:49 PM |
OpenOffice PDF Import and Hybrid Export | wallcraft | Workshop | 0 | 06-06-2008 09:15 PM |
OpenBerg FireFox extension for ePub | wallcraft | Reading and Management | 20 | 10-05-2007 12:24 PM |