From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Script: convert Tomboy/GNote XML to org-mode Date: Wed, 10 Aug 2011 14:01:37 -0300 Message-ID: <4e42b974.02aaec0a.244b.58da@mx.google.com> References: <4E36EF1D.7000307@stalphonsos.com> <4e397bcc.01a4960a.2edf.5e20@mx.google.com> <4E399D16.9030602@stalphonsos.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrCAD-0005dc-Nj for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 13:01:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrCA3-0006VW-En for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 13:01:53 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:41774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrCA3-0006VP-AJ for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 13:01:43 -0400 Received: by gyg10 with SMTP id 10so894291gyg.0 for ; Wed, 10 Aug 2011 10:01:42 -0700 (PDT) In-Reply-To: <4E399D16.9030602@stalphonsos.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: attila@stalphonsos.com Cc: emacs-orgmode@gnu.org Thanks for the instructions, and sorry for the late reply. I'm using Ubuntu 11.04 and I was able to run the script after installing libtext-format-perl as you have instructed. I have found one problem that prevents me from converting my notes correctly, though. In tomboy I have many notes where I use "*" as bullet item in the body starting in the first column. These bullet items are then interpreted as level-1 headings in the final notes.org file. This can be solved by indenting the body content of each converted note. Org-mode will then interpret the items as actual items instead of headlines. Also, tomboy doesn't really support tags. It only allows you to group notes. I think this maps better as the CATEGORY property in org-mode, instead of a TAGS property. But that's just my opinion. -- Darlan At Wed, 03 Aug 2011 14:10:14 -0500, attila wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA384 > > On 08/03/2011 11:48 AM, Darlan Cavalcante Moreira wrote: > > > > Thanks for sharing this. I've wanted to convert my tomboy notes to org-mode > > for some time. > > > > I downloaded the script and tried to run it with > > : ./tomboy2org.pl -help > > but I got the error message below > > --8<---------------cut here---------------start------------->8--- > > Can't locate Text/Format.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./tomboy2org.pl line 44. > > BEGIN failed--compilation aborted at ./tomboy2org.pl line 44. > > --8<---------------cut here---------------end--------------->8--- > > > > Maybe I need to install some library, but I know nothing about Perl to fix > > this myself. > > Hi, thanks for pointing this out. I should make the dependencies > explicit at least in the README, but to be clear they are: > > XML::Twig > Text::Format > > The other modules I depend on are (almost?) always installed by > default, at least in every Perl installation I've seen recently: > > Pod::Usage > Sys::Hostname; > IO::File; > POSIX; > > You don't say what platform you are using so I can't tell you exactly > how to get any missing modules installed for your situation, but here's > a stab at it: > > Debian names the packages for Perl modules something like > lib-perl > so Text::Format becomes libtext-format-perl. > > On Ubuntu Linux and other Debian-derived Linux distros you therefore > do something like this to get this package installed: > > $ sudo apt-get install libtext-format-perl > > If the above doesn't apply to you and your system has the cpan command > installed, you can also do this: > > $ sudo cpan -i Text::Format > > The second solution above will probably work on modern releases of > your favorite BSD Unix flavor; I just checked on OpenBSD and NetBSD > systems I have access to and they both have this command. > > If you are not much for Unix system administration, the "sudo" command > gives you temporary administrative powers for the purposes of a single > command; your mileage may vary depending on your situation. > > Finally, if all else fails Text::Format is available from CPAN here: > > > http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Text-Format-0.53.tar.gz > > The usual recipe (after you've downloaded that file however) is: > > $ tar zxvf /path/to/Text-Format-0.53.tar.gz > $ cd Text-Format-0.53 > $ perl Makefile.PL > $ make > $ make test > # assuming make test does not kick out any errors: > $ sudo make install > > > -- > > Darlan > > Hope this helps. > > Pax, --A > - -- > attila@stalphonsos.com | 0x4FFCBB9C | hack("free") or die; > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEAREJAAYFAk45nP8ACgkQr88iLU/8u5x/7gCfbhrB3eE9CkgBsD2c+3K3xMBG > EmAAnjK/TH3vNAjSum13eA1n02qKnjxW > =2cBx > -----END PGP SIGNATURE-----