Colin Brough's Jpilot page

Updated 16th December 2007: added stuff about 'jpe'
Updated 10th January 2005: new page

Printing

If you are interested in printing things on paper from jpilot, go here. (Except envelopes - see below for that!)

Printing Envelopes and Dialing phone numbers

Below are links to some code I wrote for my own use for printing envelopes and dialing phone numbers through the modem from jpilot.

jpe - jpilot envelope printing program (and linked PostScript header file). Note this code doesn't produce proper DSC compliant PostScript, so you may need to run it through 'ps2ps' before you can send it to a printer...
jpd - jpilot dial progam source
dialer - dial a phone number using the modem
Library - compressed tar file containing source of a library of utilities used by the jpd and dialer programs

dialer takes a number on the command line and dials is using the modem. Note things like modem device are hard coded into the source.

jpd (jpilot dialer) is a small curses program that wraps round jpilot-dump; basically it greps the output from a query of the jpilot data done via jpilot-dump, and then presents a list of choices of numbers to dial via a curses interface. User selects the one they want to dial, and the 'dialer' program is called to do the actual dialling. Again, some things hard-coded into the source - like I tend to only store phone numbers in the "Work" field so can get away with only looking at the '%p1' field to jpilot-dump.

As I guess many of us have done, I've collected a few routines together that I found myself reusing time after time. They are in the Library.tar.gz file - this is what the '#include "cmb.h" ' line in the two C files refers too...

Just for clarity, I consider this stuff public domain - if you want to use it, go ahead. There is no copyright in the files themselves, mostly since I wrote them for my own use. Next time I tinker I'll sort that!