Summary: | Generate Letters in odf format | ||
---|---|---|---|
Product: | [Applications] kaddressbook | Reporter: | Viktor Engelmann <Viktor.Engelmann> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | tokoe |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
bash-script that applies sed to the content of an odf file
bash-script that applies sed to the content of an odt file multiple times |
Description
Viktor Engelmann
2009-09-22 11:41:36 UTC
Created attachment 37110 [details]
bash-script that applies sed to the content of an odf file
it unzipps $1 to a temporary location, replaces $2 by $3 in the content.xml file (using sed) and zipps it to $4
Hej, the clean (and IMHO correct) solution would be to use the mailmerge feature of KWord to create such letters. I guess the current mailmerge version in KWord doesn't work with the new Akonadi based address books, but that is something else to fix. Nothing KAddressBook is responsible for. Ciao, Tobias I don't think you understood me right - I'm not talking about sending the same letter to multiple people, I mean you should be able to right-click on an address, select "send letter" (like you can select an email address and choose to create an email with the selected address as recipient) It should then open kword or oowriter or whatever is used to open odt files like email addresses open the mailclient with the selected address For one single letter, you really shouldn't have to start the wordprocessor manually and go through multiple dialogs just to get that one address out of the database... I mentioned the templates because you could have different kinds of letters (personal letters, business letters that have the company logo etc.) so you should have something like ~/Documents/OpenOfficeTemplates/en_EN/business_letter.odt (or is the file extension different for templates? like word had ".dot"?) Created attachment 37115 [details]
bash-script that applies sed to the content of an odt file multiple times
using this script you can replace all placeholders in just one call. e.g.
odt_sed.sh <templatefile> <destinationfile> "%name%" "John Doe" "%zipcode%" "1337" ...
|