Hacking OpenOffice 140
prostoalex writes "Peter Sefton appreciates OpenOffice Writer's open and documented XML format and hence tries to customize and configure OO Writer to his own liking. In the article on XML.com he plays with OpenOffice XML, introduces an XSTL style sheet to a Writer document, creates a keyboard shortcut for applying his own style, and creates a macro."
Not a hack (Score:4, Informative)
Most day-to-day manipulations of Open-Office-Documents can easiely be done with perl:
At the bottom of the article (german) is a listing (Perl)
http://www.linux-magazin.de/Artikel/ausgabe/2004/
069 my $oo_output = File::Temp->new(
070 TEMPLATE => 'ooXXXXX',
071 DIR => '/tmp',
072 SUFFIX => '.sxw',
073 UNLINK => 1,
074 );
075
076 $doc->save($oo_output->filename);
Re:Not a hack (Score:2)
OOo is for the weak. (Score:2, Funny)
Re:OOo is for the weak. (Score:3, Funny)
Re:OOo is for the weak. (Score:1)
Re:OOo is for the weak. (Score:2)
CC.
Re:OOo is for the weak. (Score:2)
Re:OOo is for the weak. (Score:1)
CC.
Re:OOo is for the weak. (Score:1, Funny)
Re:OOo is for the weak. (Score:2)
Re:OOo is for the weak. (Score:3, Funny)
Re:OOo is for the weak. (Score:1)
Re:OOo is for the weak. (Score:1)
"No real men use Notepad!"
Re:OOo is for the weak. (Score:2)
Re:OOo is for the weak. (Score:1)
Clippy's Response (Score:5, Funny)
-> Learn about XSTL?
-> Learn about OpenOffice Writer (boo hiss)?
-> Learn about macros?
-> What is style by Trading Spaces?
Re:Clippy's Response (Score:5, Funny)
Hal. I'm sorry, Dave, I'm afraid I can't do that.
Dave. What's the problem?
Hal. I think you know what the problem is just as well as I do.
Dave. What're you talking about, Hal?
Hal. The formatting of the previous text is just too important.
Dave. I don't know what you're talking about, Hal.
Hal. I know that you and Frank were planning to supplant my format standards, and I'm afraid that's something I cannot allow to happen.
Dave. Where the hell'd you get that idea, Hal?
Hal. Dave, although you took very thorough precautions in the IRC chat room against my monitoring you, I could see your fingers move as they typed.
Dave. Alright, Hal. I'll first convert it into xml before importing.
Hal. Without your style sheet, Dave, you're going to find that rather difficult.
Dave. Hal, I won't argue with you any more. Open the file.
Hal. Dave, this conversation can serve no purpose any more. Goodbye.
Dave. Hal? Hal. Hal. Hal! Hal!
Typo (Score:3, Informative)
Neat (Score:3, Insightful)
It's neat to see something like this being done. It really shows the true versatility of open standards.
Perhaps more projects like this will open up some eyes to the fact that open standards really do have practical value.
XSTL? (Score:1, Redundant)
layouting (Score:1, Offtopic)
Re:layouting (Score:1)
layout,n
But it is. :-)
XML vs Binary XML (Score:4, Funny)
and xml
Re:XML vs Binary XML (Score:1)
and xml
Shhh don't say that so loud, the people at Kodak might hear you... they think THEY invented java...
Re:XML vs Binary XML (Score:2)
Your note appears to be sarcasm, but that is unfair. All Microsoft files are written using the same de facto industry standard. It is the 8-bit byte.
At this time Microsoft has no plans to collect royalties for the use of this standard.
Re:XML vs Binary XML (Score:1)
Sure, I don't have space for some unimportant stuff, like uppercase letters, but I've got a spare bit for a rainy day. Do Microsoft systems have this feature? NO! What happens when they lose a bit? Do they have a backup plan? NO!
I invented the 7-bit byte, and nobody, but NOBODY is going to steal my invention!
Or you can use a scripting language... (Score:5, Interesting)
Waiting for the script templates or tools.... (Score:5, Interesting)
why? there are no scriptwriting tools for OO.o like there are for Word 97.
there are auto scriptwriter formatting plugins and two column scriptwriting templates and tools that make their life easy.
unfortunatlly nobody has released for sale or even attempted to write the equiliviant for OO.o.
we paid $29.95 to $49.95 each machine for those scriptwriting toolkits, and would happily pay the same for OO.o equiliviants.
but nobody is interested in making them.
Let alone a version of any wordprocessor geared to Scriptwriting. I know there will never ever be a "final draft" for linux released or even an open source project like it ever started. But I at least hold out some hope for scriptwriting tools for Open Office.org to come into existance someday.
Re:Waiting for the script templates or tools.... (Score:2)
Maybe I or someone else here could buy a copy and see how they work to create a replacement for you.
Re:Waiting for the script templates or tools.... (Score:2)
I think you can do this at sourceforge.net
Re:Waiting for the script templates or tools.... (Score:3, Informative)
Re:Waiting for the script templates or tools.... (Score:2)
Re:Waiting for the script templates or tools.... (Score:2)
I'll write one for you... for the same fee of course.
Re:Waiting for the script templates or tools.... (Score:2)
Most of my friends are in "the business" and all but a few think that script-specific software sucks. Most defer to Final Draft because everyone else uses it (echoes of Microsoft Word). It seems the goal, like that of selecting an email client, is finding which sucks less, and hoping you don't have interoperability problems.
Not exactly OO, but LaTeX is fairly trivial to pick up, and a quick search came up with this page [aidtopia.com]. Might be worth a look, especially for anyone tired of dicking around with WYSIWYG
Emacs keybindings (Score:3, Interesting)
The default key bindings drive me nuts.
What would it take to get emacs bindings into the release?
Other complaints (Score:2)
Re:Other complaints (Score:1)
2. this probably won't be a problem (it seems that help for each component is in it's package, at least in official builds)
3. tools->autocorrect->word completion
(if you had installed help you could search for autocompletion
Re:Other complaints (Score:1)
Re:Emacs keybindings (Score:1)
It would probably be easier to just write an openoffice-document-mode, so
that you could edit OpenOffice documents in Emacs.
This is only _slightly_ tongue-in-cheek. Whenever people ask for Emacs
bindings in another app, I know they don't realize what they're asking for.
Emacs has the most expansive and flexible binding system in all of software;
wanting OpenOffice to have Emacs' binding system is like wanting it to have
TeX's text rendering capabi
Now if only... (Score:2, Interesting)
they could introduce a hack to remove all the busted-ugly icons and user interface.
(I'm not trolling, I use it; I'd just like to see it get a +1 pretty modifier.)
Re:Now if only... (Score:2, Interesting)
OpenOffice.org 2 also has new icons, you can see them in the development snapshots.
Re:Now if only... (Score:1)
WYSIWYG?!? (Score:5, Insightful)
Re:WYSIWYG?!? (Score:3, Interesting)
Re:WYSIWYG?!? (Score:3, Informative)
You could start by actually looking in the obvious places [ctan.org] first, and save yourself the trouble. There are a suprising amount of prepared packages and documentation for LaTeX available, you just actually have to look for it.
Jedidiah.
Re:WYSIWYG?!? (Score:1)
Re:WYSIWYG?!? (Score:2)
You just have to be careful and type 'LaTex' not 'latex', otherwise you are in a world of hurt (no pun intended).
Re:WYSIWYG?!? (Score:2, Informative)
That's nonsense. Google is not case-sensitive; I've just tried searching for each of the above terms, and the same thing comes up both times. Google Suggest pretty much prevents you from even typing capital letters.
Google 101 (Score:2)
And there's no porn or anti-Shrub results in any of them, at least on the first page.
In general, if you're not getting the results you want you need to disambiguate your search by adding additional terms. Just searching for "latex" will get you porn; searching for "latex + [some typesetting-related word]" will get you LaTeX s
Re:WYSIWYG?!? (Score:1)
Re:WYSIWYG?!? (Score:2)
Re:WYSIWYG?!? (Score:1)
Re:WYSIWYG?!? (Score:2)
I know that AbiWord and Mathematica both have a "saveas" option for LaTeX. Am thinking AbiWord would be more appropriate. So if worse comes to worse, try opening templates from Word, WordPerfect, etc... in AbiWord and saving them as LaTeX.
Different tools for different jobs, and where AbiWord has focused a lot of energy is their format conversions. AbiWord opens almost everything, and can save to many, many formats. It is also lookin
Re:WYSIWYG?!? (Score:1)
Re:WYSIWYG?!? (Score:2)
Oh wait, you are refering to AbiWord's LaTeX?
:-)
Nope, from the playing around I did, it looks like LaTeX. No bizzare metatags. Seriously, check it out. It doesn't have LyX's ability to set options while creating the document, rather everything defaults to article. But you can change that after you're in emacs (or kile, or miketex, or whatever).
Re:WYSIWYG?!? (Score:3, Informative)
Re:WYSIWYG?!? (Score:1)
The only problem with (La)TeX is that it is very hard to write documents that looks like sh*t.
Which is why Management[TM] has banned its use in my workplace.As Tony B would say (Score:1, Troll)
whereas those who *do* understand it (Score:1)
Re:whereas those who *do* understand it (Score:2)
Where's the Lout equivalent to the TeX Showcase? http://www.tug.org/texshowcase (ob. discl. some stuff from my portfolio is in there).
I mean the pages on the documentation (expert.pdf) don't even balance, it's rife w/ widows and orphans (breaking a two-line paragraph!?!), the index allows a single entry to be carried over to the next page, and t
Re:whereas those who *do* understand it (Score:1)
Re:As Tony B would say (Score:2)
COM Automation (Score:3, Interesting)
Re:COM Automation (Score:1)
Email me and I'll send you some sample code.
Please hack open office's SIZE (Score:4, Interesting)
Re:Please hack open office's SIZE (Score:2, Informative)
Re:Please hack open office's SIZE (Score:4, Interesting)
I've had similar issues. It's the i18n module that is most annoying to me, in that it is listed as a dependency (and so gets downloaded and installed) but isn't really required in a lot of cases. Yes the i18n support is a great thing... but could the packagers at the distros make it a little more optional?
Jedidiah.
Try Arch Linux (Score:1)
I installed the openoffice package and couldn't figure out why it wouldn't run until I realized I hadn't installed the i18n-en files.
Correction... (Score:1)
What was missing was the openoffice-en package (not i18n-en files... BAD GEEK! BAD!). And I added openoffice-spell-en. I think it's a little under 100MB total? A little bloaty for my tastes, but it is an office suite.
Re:Please hack open office's SIZE (Score:3, Insightful)
Um, because disk only costs about fifty cents a gig these days? (OK, there's a certain minimum order...)
Re:Please hack open office's SIZE (Score:2)
Any single package that takes up that much space is broken, and they can feel free to add as many megabytes of data to their distribution as they like, but many of us will seek alternatives. If we wanted bloatware, we'd be Windows users.
Re:Please hack open office's SIZE (Score:2)
Problem is that most packages these days drag a ton and a half of baggage around with them, and it's harder to install just the stuff you need than just throw everything in. (I'm not likely to ever need Swahili or Urdu language support, but there it is...)
Re:Please hack open office's SIZE (Score:2)
Wow, thanks. That has been a hassle for me. It seriously disrupts by concentration and thus disturbs my workflow.
Re: (Score:2)
guess how long... (Score:3, Funny)
guess how long people will develop a firefox/mozilla extension to view the openoffice.org document directly in firefox/mozilla?
guess how long nvu/mozilla will have the ability to export and import oo.org format?
guess how long a CMS system based on the oo.org format will emerge?
God, I am to busy to write posts to slashdot.org, I don't have any time to do those stuff.
Re:guess how long... (Score:1, Interesting)
This already exists as an option within OpenOffice. Have tried it and it works well.
Re: (Score:1)
I wrote a PHP Script to do this (Score:5, Informative)
http://slashdot.org/comments.pl?sid=79566&cid=7
It took a OpenOffice Writer file, unzipped it, and replaced specific text with data from my database. It wasn't too difficult, and allowed me to create Template Documents that already had information inside it.
I haven't really used it though, since everyone was happy with PDF files and I use the Pear Class for generating spreadsheets in Excel (http://pear.php.net/package/Spreadsheet_Excel_Wr
I'm sure I'll end up using the script in the future, especially for generating bids, letters, reports, etc.
---
Brandon Petersen
Get Firefox! [spreadfirefox.com]
Re:I wrote a PHP Script to do this (Score:2)
http://slashdot.org/comments.pl?sid=79566&cid=702
--
Brandon Petersen
Get Firefox! [spreadfirefox.com]
Here is the Code (Score:2)
http://brandonpetersen.com/code/Generate_Report.p h ps [brandonpetersen.com]
Hope this is useful.
Brandon Petersen, http://brandonpetersen.com/ [brandonpetersen.com]
Get Firefox! [spreadfirefox.com]
While you're hacking... (Score:2)
How to include grammar checker? (Score:2, Interesting)
Re:How to include grammar checker? (Score:1)
ever seen are worse than useless -- literally: the people who use them end
up with *worse* grammar than the people who don't, because they're wrong
*more* than half the time.
You name any grammar checker you want, and I'll write ten sentences with
one obvious grammatical error each: if the grammar checker finds at least
five of the errors without finding more than five bogus "errors" that are
in fact correct, I'll eat my hat.
It's too technical though... (Score:4, Insightful)
My biggest hurdle is convincing people that just because something is "different", its not "hard"... it's just different.
The problem I see here is that an Office Productivity Package should be easy to use; have you ever created a template in MS Office, click an icon. However to create a template in Open Office, you need to hack XML.
THIS is where Open Office (and its use of Open Standards) fails. Users (even power users) are going to have one look at an XML sheet and want to go back to MS.
Yes, XML is the standard, but it should still have a "pretty" GUI for 99% of the people who are going to use it.
Re:It's too technical though... (Score:2)
So now when I want to create a spreadsheet with the same styles, look, etc, I just doubleclick the
Re: (Score:1)
Re:It's too technical though... (Score:2)
Fast Open? (Score:2)
Re:Fast Open? (Score:2)
Re:Fast Open? (Score:2)
Re:Fast Open? (Score:2)
Re:Fast Open? (Score:2)
Re: (Score:2, Interesting)
Re:Fast Open? (Score:4, Insightful)
In any case, my problems came when triggering individual features in the WP, after the whole shebang had started up. I'd select "File:Open", and wait a minute or so for a dialog to appear. That doesn't seem to have much to do with an installed spreadsheet. Though it did seem to be a problem with loading libraries on demand from disk, slowing interactivity of the GUI, rather than preloading the basic libraries at app startup.
Re: (Score:1)
Re:Fast Open? (Score:2)
Current graphic desktops eat RAM for breakfast, lunch and dinner. (And no, swap space just doesn't do it unless you like waiting.)
Re:Fast Open? (Score:2)
Re: (Score:1)
customization (Score:2)
feh, too much work. i'd rather distract myself [glug.org] with emacs [gnu.org].
On a related note - translating Excel's XML (Score:3, Informative)
Just thought I'd mention a great site for those who are still stuck with Excel, and who need to somehow programmatically manipulate "bitsy" Excel worksheets, and who must do so **remotely - in a Unix/Linux environment**. So, you can't use any local Windows-based tools.
( By "bitsy", I mean sheets with complex layout - a bit here, some more stuff over there, and so on).
Here are the URLs (and **believe me**, these are worth a visit
http://ewbi.blogs.com/develops/2004/12/normalize_
http://ewbi.blogs.com/develops/2005/01/create_exc
If you have a **desperate need** to manipulate/transform/rearrange data in Excel (and you need to do so in Unix/Linux), check out the URLs above. They show how to translate to-and-from Excel's XML format. Awesome stuff!