Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Apache Forrest + OOo = web site + PDF (minus headings)
Apache Forrest + OOo = web site + PDF (minus headings)
 
   NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support
View previous topic :: View next topic  
Author Message
the_webmaestro
Agent


Joined: Sep 16, 2004
Posts: 11

PostPosted: Mon Oct 04, 2004 4:00 pm    Post subject: Apache Forrest + OOo = web site + PDF (minus headings)

This may be an Apache Forrest http://forrest.apache.org/ problem.

I'm having problems with OpenOffice.org output, which I process with Apache Forrest to generate a documentation web site (the documentation's original format is SXW Smile). Normally if I follow the instructions on this page, I get Headings for levels 1-5:

http://forrest.apache.org/docs/oowriter.html

Unfortunately, I am not getting that now. It might be the result of a NeoOffice/J installation, although I don't think so.

Code:
<text:h text:style-name="P3" text:level="2">My Heading 2 text</text:h>


The above code does actually 'look' like an <H2/> when processed by Forrest. Unfortunately, the following code is now being output by OOo when I apply the Heading 2 style:

Code:
<text:p text:style-name="Heading 2">Running FOP with Barcode4J</text:p>


Interestingly enough, the above does not look like "Heading 2" but the the previous one does.

Any ideas?
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Mon Oct 04, 2004 10:13 pm    Post subject:

Hmm...both Neo/J (the 1.1 Alpha release) and OOo are writing out files that should be equivalent to OOo 1.1.2 on the other platforms. If you have Neo/J and OOo installed, one doesn't affect the other; the only potential "overlap" between the two installations would affect whether NeoJ or Start OOo is associated with various file extensions (the DefaultForType key in the plist file for the two apps). So that shouldn't affect the output format. The default set of styles in Stylist should also match OOo 1.1.2 on the other platforms for both OOo and for Neo/J.

If you're using NeoJ 0.8.4 (or earlier), it will write out in OOo 1.0.3 format. From the brief reading I did for the forrest links it would appear that the project is only targeting 1.1 format, not earlier.

I'm not sure if any of that information would be helpful for you in trying to trace down the issue.

ed
Back to top
the_webmaestro
Agent


Joined: Sep 16, 2004
Posts: 11

PostPosted: Tue Oct 05, 2004 7:35 am    Post subject:

I think that may be helpful, Ed. I installed NeoOffice/J 0.8.4 briefly (but I thought I removed it), and perhaps some of those files are still present. Do you know where I should look to eradicate those files? Should I delete NeoOffice/J as well? I can always reinstall (I agree with you that I don't think the N/J 1.1 Alpha and OOo1.1.2 are probably not adversely affecting each other, but perhaps older files from N/J 0.8.4 are...).

UPDATE: I got a reply[1] to a cross-post to the Forrest list that indicated a link discussing a similar problem[2]:

[1]
http://issues.apache.org/eyebrowse/ReadMsg?listName=user@forrest.apache.org&msgNo=701
[2]
http://issues.apache.org/eyebrowse/ReadMsg?listName=user@forrest.apache.org&msgNo=459
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue Oct 05, 2004 8:38 pm    Post subject:

The older Neo/J 0.8.4 shouldn't be a problem to leave around...but any .sxw files you saved with Neo/J 0.8.4 should probably be re-opened in either OOo 1.1.2 and Neo/J 1.1 Alpha and then re-saved. AFAIK there's no easy "batch converter" to do any updates to the file format. I don't think there would've been any major format changes, but I can't say for certain.

If you want to get rid of an old Neo/J installation, just grab the application bundle and throw it in the trash. Uninstalling OOo is a tad more complex. You can get rid of the "OpenOffice.org1.x" folder inside of /Applications. That will get rid of OOo, but only OOo. The other dependent applications (X11, ghostscript, fondu) will remain installed and you need to go through and remove all of those manually according to their own uninstall processes.

ed
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Oct 05, 2004 10:29 pm    Post subject:

OPENSTEP wrote:
The older Neo/J 0.8.4 shouldn't be a problem to leave around...but any .sxw files you saved with Neo/J 0.8.4 should probably be re-opened in either OOo 1.1.2 and Neo/J 1.1 Alpha and then re-saved. AFAIK there's no easy "batch converter" to do any updates to the file format. I don't think there would've been any major format changes, but I can't say for certain.


I've found two macros that do mass conversions in OOo/NeoJ:

http://sourceforge.net/project/showfiles.php?group_id=87718&package_id=95532
http://oooconv.free.fr/batchconv/BatchConv.sxw

The former comes from http://www.ooomacros.org, which has some neat things (but the anchors on the pages are all messed up).

Smokey
Back to top
the_webmaestro
Agent


Joined: Sep 16, 2004
Posts: 11

PostPosted: Wed Oct 06, 2004 2:21 pm    Post subject:

A Forrest JIRA issue[1] has been created, which covers this (apparently) OOo bug:

1 Create a new text file.
2 Create 20 lines of text, one of each style Heading 1-10, with a "default" format line between each.
3 Save this file (as "head.sxw" for example), unzip it and examine its content.xml. You will see that all of the headings are of the format:

<text:h text:style-name="Heading 5" text:level="5">Heading 5</text:h>

4 Copy head.sxw this to headless.sxw.
5 Open headless.sxw, delete the Heading 5 line, then save and close the file.
6 Reopen headless.sxw, and add a new line where the original Heading 5 line had been. Change the style of this new line to Heading 5.
7 Save this file, unzip it and examine its content.xml. The new line of style heading 5 is:

<text:p text:style-name="Heading 5">New heading 5</text:p>

[1]
http://issues.cocoondev.org/browse/FOR-311?watch=true
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.