03-13-2008, 08:00 PM | #1 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
OpenOffice to Palm eReader export macro
Hi all,
I'm quite new here, but I've read many posts here before. I just wanted to let you know that I have written "odt2pml", a macro to export an OpenOffice Writer document to Palm eReader. Quoting from my explanation: odt2pml exports a Writer document into a "Palm Markup Language" tagged plain text file, ready to be processed by DropBook for Palm eReader. You may find it as an easy to install OpenOffice extension here:odt2pml is WYSIWYG, within PML limitations: format your document as you like, and Palm eReader will show it mostly in a similar way. That includes character and paragraph styles, page breaks, chapter headings, footnotes, images and direct formatting (bold, italic, ...). Tables and text frames are not supported. You may enable direct calling of DropBook in order to get a .pdb file ready to be synced to your handheld. http://extensions.services.openoffic...roject/odt2pml I'll be happy to know if it is useful for you, and also if there are bugs or possible improvements! Cheers, Peter |
03-14-2008, 09:07 AM | #2 | |
Connoisseur
Posts: 58
Karma: 140
Join Date: Jan 2007
Location: Germany
Device: Dell Axim X50v
|
Quote:
I am not sure I understand. What is the difference to the "save as pdb" built in OpenOffice. Klaus |
|
Advert | |
|
03-14-2008, 09:37 AM | #3 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
Hi Klaus,
OpenOffice offers the possibility to save in "Aportis Doc (.pdb)" format. But you will notice that all special formatting (bold, italic, large, superscript, etc.) gets lost. No support either for images, footnotes, chapter index, links, etc. On Palm you will see only a plain text file - "Aportis Doc" limitation. PML (eReader) offers all these possibilities, and that is the reason for my macro. Cheers, Peter Last edited by poxi1023; 03-14-2008 at 05:11 PM. |
03-14-2008, 04:11 PM | #4 | |
Connoisseur
Posts: 58
Karma: 140
Join Date: Jan 2007
Location: Germany
Device: Dell Axim X50v
|
Quote:
I see - great idea! I never noticed that loss of formatting or maybe I just forgot - switched from Palm to PPC two years ago and didn't use pdb since then. I much prefer to read either rtf or html, now (using µBook). Coming to think about it, maybe the reason for preferring rtf is that my pdbs lost all the formatting in the conversion ... CU, Klaus |
|
03-14-2008, 05:05 PM | #5 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
Advert | |
|
03-24-2008, 08:38 AM | #6 |
Junior Member
Posts: 1
Karma: 13
Join Date: Mar 2008
Device: Ereader / Tungsten T5
|
Hi Peter
Great job, I was searching something like this for long. I tried your 3.1 macro with a fresh installation of OpenOffice (v2.3) under Windows and everythings worked well. I have done a little change in function fnExportParaStyle to suit my own taste in paragraph formatting, in the following line: Code:
if oPar.ParaFirstLineIndent > 100 then 'first line indented (more than 1 mm) 'sStr = "\a160\a160\a160\a160" & sStr '4 non-breaking spaces sStr = "\t \t" & sStr To be perfect, your macro need a little more thing: delete the \a160\a160\a160\a160 (or my \t \t) when there is nothing else behind it. Fred |
03-24-2008, 01:58 PM | #7 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
Hi, Fred,
thanks for trying out odt2pml! And thank you also for the suggestions. As soon as I find some time, I'll look into them. Cheers, Peter |
04-10-2008, 11:02 PM | #8 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
Hi, Fred,
finally I could look into your suggestions. I like your first line indent very much - I didn't know that was possible. I'll put it into the next version of odt2pml. I'm afraid I don't really see the point of your second suggestion. The end result, i. e. what you see on your Palm, is the same both ways - just an empty line. Thanks for your suggestions, all are welcome! Cheers, Peter |
05-01-2008, 02:18 PM | #9 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
Hi all,
I just published version 3.2 of odt2pml. It includes bugfixes and improvements suggested by FRDV and others. FRDV made a french translation, included in this version. Thanks to him and to all who suggested improvements, reported bugs and voted for this extension! I hope you will find it useful. Cheers, Peter |
05-03-2008, 04:58 PM | #10 |
eReader
Posts: 2,750
Karma: 4968470
Join Date: Aug 2007
Device: Note 5; PW3; Nook HD+; ChuWi Hi12; iPad
|
I really like your macro. It's the best thing I've found yet to build .pdb eBooks. The only problem I have is that I've a very large number of eBooks I've purchased from Baen that I want to convert using your macro but there doesn't seem to be any way to do them in bulk rather than one at a time.
Is it possible to get it to work for multiple files sequentially? (I am programming challenged or I would try to do it myself) |
05-04-2008, 01:42 PM | #11 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
Hi, Lemurion,
sorry, I have no idea about that. I am using my macro only to convert one single OOo document after another to .pdb, not multiple files in bulk. I don't know about Baen either; are those files in OOo format? |
05-04-2008, 02:03 PM | #12 |
eReader
Posts: 2,750
Karma: 4968470
Join Date: Aug 2007
Device: Note 5; PW3; Nook HD+; ChuWi Hi12; iPad
|
They are now-- they release them in .rtf and I was able to batch convert them to .odt pretty easily.
|
05-05-2008, 07:28 PM | #13 |
Member
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
I searched around on OOo's forum, the nearest I found is this thread:
http://www.oooforum.org/forum/viewtopic.phtml?t=11793. It requires some macro programming though... Hope it helps! |
09-14-2008, 02:32 AM | #14 |
Fanatic
Posts: 514
Karma: 2954711
Join Date: May 2006
|
Can someone tell me how I actually use this? I've installed it into my OOo, but I don't see any additional export or save options for PML markup. If I go into Macro Selector, it will only let me choose a single macro from the whole bundle, then says wrong number of parameters.
What am I doing wrong? |
09-14-2008, 01:00 PM | #15 |
Fanatic
Posts: 514
Karma: 2954711
Join Date: May 2006
|
OK, I figured out the wizard.
But can anyone tell me what kind of formatting I need to apply to render a plain vanilla chapter header? Header 1 renders \X1 and Header 2 renders \X2. What turns into just orginary \x (for a regular chapter header/page break)? |
Tags |
ereader openoffice.org |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenOffice to ePub export extension | eBookLuke | Writer2ePub | 206 | 12-18-2010 05:02 PM |
Word Formatting Macro (Stingo's Macro) | Stingo | Sony Reader | 75 | 08-24-2010 05:18 AM |
OpenOffice PDF Import and Hybrid Export | wallcraft | Workshop | 0 | 06-06-2008 08:15 PM |
eReader: Help.. Palm OS | RamRod | Reading and Management | 1 | 08-03-2006 04:53 AM |
eReader 2.61 for Palm OS released | Colin Dunstan | Reading and Management | 4 | 04-13-2005 07:05 PM |