I've created a simple Perl script that splits a text file into 4KB parts to use within iPod Notes. Usage is pretty simple:
- Copy and paste the script (macosxhints mirror) into a plain text file named makenotes.pl on your system. Remember to make the script executable (chmod 755 makenotes.pl).
- Put the script and the text you want to split into a directory. For this example, assume the directory is named book and located in your user's home folder.
- Open up a Terminal and go to that directory: cd ~/book
- Run the script with the filename (or filenames) as arguments: ./makenotes.pl colourofmagic.txt
When run, the script will ask you to create a title for this book -- this title is used as a directory name and as a prefix for the parts. For instance, if I use the title
colour_of_magic, the script will create a directory named
colour_of_magic in the current directory, and put the parts into that folder, eg
colour_of_magic_1.txt,
colour_of_magic_2.txt,
colour_of_magic/colour_of_magic_3.txt, etc.
[
robg adds: I haven't tested this one.]