![]() |
#16 |
Member
![]() Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
When opening Writer, you should find a new Toolbar with 3 icons. The one on the right, named Export to eReader, calls the macro you are looking for. You will find the same 3 icons as submenu under Tools - Add-Ons - odt2pml.
On the wizard's first page you will find some help buttons explaining odt2pml usage, direct calling of DropBook, etc. My idea when programming odt2pml was to make it as WYSIWYG as possible: What you see in OpenOffice Writer is what you get on your Palm (mostly, within PML limitations). That is why I don't use \x. If you want a page break before each chapter, just put it in your Header 1 (or 2, etc.) style in OOo. You will notice that it gets "translated" to \p before \X1 (or \X2, etc.). In the same way, if you want your chapter heading e. g. bold and centered, put bold and centered in your OOo chapter Header style. Last edited by poxi1023; 09-14-2008 at 10:39 PM. |
![]() |
![]() |
![]() |
#17 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
All right. I can't help thinking that's kind of silly, but then, I've done most of my PML markup up to this point by hand in emacs using search-and-replaces, and I prefer stuff to be as simple as possible. I can just search-and-replace X1 with x after I finish, I guess.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Member
![]() Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
|
![]()
New version just published
Version 4.0.0 comes with many new features: Extension help integrated into the OpenOffice.org help system. Added "Extract image" macro, configuration, extended footnote formatting, support for Polish characters and translations for ASCII Formatter. Thanks for all feedback, bug reports, enhancement requests, etc.! Rup.Xamqon will continue with odt2pml. Last edited by poxi1023; 10-20-2008 at 09:27 AM. |
![]() |
![]() |
![]() |
#19 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
Hi, everybody!
I took over odt2pml from poxi1023. Please notice that due to many major changes, the new version we published does not update automatically. You should uninstall manually any previous odt2pml version in your OpenOffice, and then install the new version 4.0.0. Any feedback is always welcome! |
![]() |
![]() |
![]() |
#20 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
![]()
New version published
odt2pml 4.1.0, with many new features: Improved Picture Converter and Extension Help (integrated into OpenOffice.org Help), added many PML features (sidebars, invisible chapter marks, horizontal rulers, flexible spacing, etc.) Almost all eReader formatting options are now handled by odt2pml. Dialogs and Help available in 5 languages: de, en, es, fr, it. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
I've installed OpenOffice and I see the toolbar in a "new document" but not in one that I open. Also, when I go to Tools, I don't see any option for "add-on". Finally, when I do click on a toolbar item in a new document, I get an error message:
A scripting Framework error occurred while running the Basic script vnd.sun.star.script ![]() Message: The following Basic script could not be found: library: 'odt2html' module: ExtractG' method:SubExtractWizard' location: application |
![]() |
![]() |
![]() |
#22 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
That seems to be a OpenOffice bug, I noticed it some time ago. After installing a new extension (sometimes even an upgrade), you have to shut down OpenOffice completely, including the Quickstarter. After loading OOo again, everything should work correctly.
Cfr.: http://www.openoffice.org/issues/show_bug.cgi?id=95779 |
![]() |
![]() |
![]() |
#23 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
Thanks. That took away the error message. Any explanation for why, when I open a new document (like an html file), I don't have the "add on" option?
|
![]() |
![]() |
![]() |
#24 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
Cfr. odt2pml help, "HTML files":
If you want to use a HTML file with odt2pml, you must open it with the OOo filter "HTML Document (OpenOffice.org Writer)". To access this command: Choose File – Open... – File type and select: HTML Document (OpenOffice.org Writer). Normally it would be opened as "Web page" in Writer/Web, where odt2pml doesn't work. |
![]() |
![]() |
![]() |
#25 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
Is there any chance that odt2pml could have a function added that would take the ' and " quotation marks and replace them with ‘ and ’ and “ and ” in the right places?
This would probably be harder for single quotes (given their use as apostrophes and at the start of truncated words like 'round and 'til) but I'd think it should still be possible at least to some extent. |
![]() |
![]() |
![]() |
#26 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
I think it might be possible to program what you asked for - but it is really not that easy, specially with different languages having different kinds of quotation marks (“Spanish”, „German“, « French », etc...)
Anyway, it is not needed, because this function is already included in OpenOffice Writer: 1. In Tools - AutoCorrect edit the tab Custom Quotes to your liking. 2. In Format - Autoformat click Apply. That will change all single and double quotation marks to the ones you defined in the first step - but only in paragraphs formatted with the Default paragraph style. odt2pml will translate each formatted quotation mark to the corresponding PML tag. Last edited by Rup.Xamqon; 12-24-2008 at 10:20 AM. Reason: Different languages |
![]() |
![]() |
![]() |
#27 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
All right, I tried that. And it did change the quotation marks beautifully.
However, it also reformatted everything in the document to "Default", including the headers which I would have liked to keep in place for the macro to make chapter titles out of. Any way around that? |
![]() |
![]() |
![]() |
#28 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
That is strange. It does not happen in my text (OOo 3 with Kubuntu Intrepid). It leaves all formatting (direct and styles) in place.
Are your chapter titles formatted with some "Heading" style? Are you using OOo 3? What OS? You might check Tools - AutoCorrect - Options tab, and change some settings there. |
![]() |
![]() |
![]() |
#29 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2009
Device: palm treo
|
Aha, so that's what it is!
I came to the forum to post that exact error message. So nice to see the answer here already.
![]() - Gypsy Jane Quote:
|
|
![]() |
![]() |
![]() |
#30 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Palm TX
|
New version published
odt2pml 4.2.1
Completely new Text Converter: Enhanced AutoCorrect, uppercase words to italic, _xxx_ to italic, first words in chapter to uppercase... New ConfigManager. More info (how many converted, time...). After re-reading Robotech_Master's request, I noticed I had overlooked "X0" (first heading, no indent). It's added now! ![]() |
![]() |
![]() |
![]() |
Tags |
ereader openoffice.org |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |