Over the last couple of years while using Linux, I've slowly become better at what could loosely be described as "hacking".
I mainly focus on stuff that is Palm related, mainly trying to integrate some of the command line tools available for Linux->Palm connectivity with some well known Linux applications.
Nautilus Scripts
Once while fiddling with the Linux download of WordSmith, I found that it contained a command line tool called wsconv that converts .RTF files (say created in OpenOffice) to WordSmith compatible .PDB's (& vice versa - keeping all the RTF formatting).
"Cool" I thought!
Upon further investigation I found some smart cookie had hacked together a couple of nautilus/shell scripts that automated this conversion to a degree by allowing a user to right click on a .RTF/.PDB and do the appropriate conversion. Neat!
So of course it got me thinking..."Hmmmmmm - how does it do that?..."
So straight into a bash terminal I go & into vim to see how these nautilus scripts things work!!! Ahhh, the beauty of open source software! :-)
Anyway to make a long story short, here are my versions of the above mentioned scripts that do a similar thing to the above, but convert .TXT files to and from standard Palm DOC .PDB's. You need to download and compile txt2pdbdoc making sure that txt2pdbdoc is located somewhere in your path (/usr/local/bin for example). Once set-up, simply copy these 2 files to your ~/.gnome2/nautilus-scripts/ folder (or .gnome) making sure the right permissions are set (try chmod +x). For my own needs I have the "Convert TXT to PDB" script installing the resultant .PDB to J-Pilot . If you don't want it doing that then modify to your own needs! The "Convert PDB to TXT" script copies any Palm DOC .PDB into a ~/txt directory. Again modify this if that is not what you want.
| Back |
Thats all folks at the moment! If I come up with anything else I'II post it here.