Tuesday, March 24, 2009

Automatic calendar creation by PCAL

There is a nice Linux program for automatic calendar creation - pcal. Here I'll give an example of Russian calendar creation.

The program will create the Russian fonts in KOI8-RU code page (post script file format) for current month. The command is:
pcal -E -P a4 -F 1 -Z -a ru -n Arial/10 -m -o cal2009.ps
You can convert post script file by ps2pdf util like this:
ps2pdf cal2009.ps
*Note: If we want to use .calendar configuration file with Russian letters inside we have to convert native Linux code page UTF-8 letters into KOI8-RU by command:
iconv -f UTF-8 -t KOI8-RU ~/.calendar4EDITinUTF -o ~/.calendar

No comments: